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: TransactionTransaction 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
sourceimpl Debug for SignAndSubmitRequest
impl Debug for SignAndSubmitRequest
sourceimpl Default for SignAndSubmitRequest
impl Default for SignAndSubmitRequest
sourcefn default() -> SignAndSubmitRequest
fn default() -> SignAndSubmitRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SignAndSubmitRequest
impl<'de> Deserialize<'de> for SignAndSubmitRequest
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SignAndSubmitRequest> for SignAndSubmitRequest
impl PartialEq<SignAndSubmitRequest> for SignAndSubmitRequest
sourcefn eq(&self, other: &SignAndSubmitRequest) -> bool
fn eq(&self, other: &SignAndSubmitRequest) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SignAndSubmitRequest) -> bool
fn ne(&self, other: &SignAndSubmitRequest) -> bool
This method tests for !=.
sourceimpl Serialize for SignAndSubmitRequest
impl Serialize for SignAndSubmitRequest
impl Eq for SignAndSubmitRequest
impl StructuralEq for SignAndSubmitRequest
impl StructuralPartialEq for SignAndSubmitRequest
Auto Trait Implementations
impl RefUnwindSafe for SignAndSubmitRequest
impl Send for SignAndSubmitRequest
impl Sync for SignAndSubmitRequest
impl Unpin for SignAndSubmitRequest
impl UnwindSafe for SignAndSubmitRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more