pub struct SignAndSubmitRequest {
pub tx_json: Transaction,
pub secret: Option<String>,
pub seed: Option<String>,
pub seed_hex: Option<String>,
pub key_type: Option<KeyType>,
pub fail_hard: Option<bool>,
pub offline: Option<bool>,
pub build_path: Option<bool>,
pub fee_mult_max: Option<i64>,
pub fee_div_max: Option<u64>,
}
Fields§
§tx_json: Transaction
Transaction definition in JSON format, optionally omitting any auto-fillable fields.
secret: Option<String>
(Optional) Secret key of the account supplying the transaction, used to sign it. Do not send your secret to untrusted servers or through unsecured network connections. Cannot be used with key_type, seed, seed_hex, or passphrase.
seed: Option<String>
(Optional) Secret key of the account supplying the transaction, used to sign it. Must be in the XRP Ledger’s base58 format. If provided, you must also specify the key_type. Cannot be used with secret, seed_hex, or passphrase.
seed_hex: Option<String>
(Optional) Secret key of the account supplying the transaction, used to sign it. Must be in hexadecimal format. If provided, you must also specify the key_type. Cannot be used with secret, seed, or passphrase.
key_type: Option<KeyType>
(Optional) Type of cryptographic key provided in this request. Valid types are secp256k1 or ed25519. Defaults to secp256k1. Cannot be used with secret. Caution: Ed25519 support is experimental.
fail_hard: Option<bool>
(Optional, defaults to false) If true, and the transaction fails locally, do not retry or relay the transaction to other servers.
offline: Option<bool>
(Optional, defaults to false) If true, when constructing the transaction, do not try to automatically fill in or validate values.
build_path: Option<bool>
(Optional) If this field is provided, the server auto-fills the Paths field of a Payment transaction before signing. You must omit this field if the transaction is a direct XRP payment or if it is not a Payment-type transaction. Caution: The server looks for the presence or absence of this field, not its value. This behavior may change. (Issue #3272 )
fee_mult_max: Option<i64>
(Optional) Sign-and-submit fails with the error rpcHIGH_FEE if the auto-filled Fee value would be greater than the reference transaction cost × fee_mult_max ÷ fee_div_max. This field has no effect if you explicitly specify the Fee field of the transaction. The default is 10.
fee_div_max: Option<u64>
(Optional) Sign-and-submit fails with the error rpcHIGH_FEE if the auto-filled Fee value would be greater than the reference transaction cost × fee_mult_max ÷ fee_div_max. This field has no effect if you explicitly specify the Fee field of the transaction. The default is 1. New in: rippled 0.30.1
Trait Implementations§
Source§impl Debug for SignAndSubmitRequest
impl Debug for SignAndSubmitRequest
Source§impl Default for SignAndSubmitRequest
impl Default for SignAndSubmitRequest
Source§fn default() -> SignAndSubmitRequest
fn default() -> SignAndSubmitRequest
Source§impl<'de> Deserialize<'de> for SignAndSubmitRequest
impl<'de> Deserialize<'de> for SignAndSubmitRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SignAndSubmitRequest
impl PartialEq for SignAndSubmitRequest
Source§impl Serialize for SignAndSubmitRequest
impl Serialize for SignAndSubmitRequest
impl Eq for SignAndSubmitRequest
impl StructuralPartialEq for SignAndSubmitRequest
Auto Trait Implementations§
impl Freeze for SignAndSubmitRequest
impl RefUnwindSafe for SignAndSubmitRequest
impl Send for SignAndSubmitRequest
impl Sync for SignAndSubmitRequest
impl Unpin for SignAndSubmitRequest
impl UnwindSafe for SignAndSubmitRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.