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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more