Skip to main content

TransactionCommands

Enum TransactionCommands 

Source
pub enum TransactionCommands {
    Transfer {
        asset: String,
        amount: String,
        originator: String,
        beneficiary: String,
        agents: Option<String>,
        memo: Option<String>,
        expiry: Option<String>,
        transaction_value: Option<String>,
    },
    Payment {
        amount: String,
        merchant: String,
        asset: Option<String>,
        currency: Option<String>,
        agents: Option<String>,
        memo: Option<String>,
        expiry: Option<String>,
        invoice_url: Option<String>,
        fallback_addresses: Option<Vec<String>>,
    },
    Connect {
        recipient: String,
        for_party: String,
        role: Option<String>,
        constraints: Option<String>,
        expiry: Option<String>,
        agreement: Option<String>,
    },
    Escrow {
        amount: String,
        originator: String,
        beneficiary: String,
        expiry: String,
        agents: String,
        asset: Option<String>,
        currency: Option<String>,
        agreement: Option<String>,
    },
    Capture {
        escrow_id: String,
        amount: Option<String>,
        settlement_address: Option<String>,
    },
    Exchange {
        from_assets: Vec<String>,
        to_assets: Vec<String>,
        from_amount: Option<String>,
        to_amount: Option<String>,
        requester: String,
        provider: Option<String>,
        agents: Option<String>,
    },
    Quote {
        exchange_id: String,
        from_asset: String,
        to_asset: String,
        from_amount: String,
        to_amount: String,
        provider: String,
        agents: Option<String>,
        expires: String,
    },
    List {
        agent_did: Option<String>,
        msg_type: Option<String>,
        thread_id: Option<String>,
        from: Option<String>,
        to: Option<String>,
        limit: u32,
        offset: u32,
    },
}

Variants§

§

Transfer

Create a new transfer transaction (TAIP-3)

Fields

§asset: String

CAIP-19 asset identifier (e.g., eip155:1/erc20:0x… or eip155:1/slip44:60)

§amount: String

Transfer amount

§originator: String

Originator DID (the sender)

§beneficiary: String

Beneficiary DID (the receiver)

§agents: Option<String>

Agents as JSON array of objects with @id, role, and for fields

§memo: Option<String>

Optional memo text

§expiry: Option<String>

Optional ISO 8601 expiry timestamp (e.g., 2026-12-31T23:59:59Z)

§transaction_value: Option<String>

Optional fiat equivalent value as “amount:currency” (e.g., “1000.00:USD”) for Travel Rule

§

Payment

Create a new payment request (TAIP-14)

Fields

§amount: String

Payment amount

§merchant: String

Merchant DID (payment recipient)

§asset: Option<String>

CAIP-19 asset identifier (mutually exclusive with –currency)

§currency: Option<String>

ISO 4217 currency code, e.g., USD, EUR (mutually exclusive with –asset)

§agents: Option<String>

Agents as JSON array

§memo: Option<String>

Optional memo text

§expiry: Option<String>

Optional ISO 8601 expiry timestamp (e.g., 2026-12-31T23:59:59Z)

§invoice_url: Option<String>

Optional invoice URL

§fallback_addresses: Option<Vec<String>>

Optional fallback settlement addresses (comma-separated CAIP-10)

§

Connect

Create a new connection request (TAIP-15)

Fields

§recipient: String

Recipient DID (the agent to connect with)

§for_party: String

Party DID this connection is for

§role: Option<String>

Role in the connection (e.g., SourceAgent, DestinationAgent)

§constraints: Option<String>

Connection constraints as JSON (e.g., max_amount, daily_limit, allowed_assets)

§expiry: Option<String>

Optional ISO 8601 expiry timestamp

§agreement: Option<String>

Optional URL to terms of service or agreement

§

Escrow

Create a new escrow request (TAIP-17)

Fields

§amount: String

Escrow amount

§originator: String

Originator DID

§beneficiary: String

Beneficiary DID

§expiry: String

Expiry timestamp (ISO 8601, e.g., 2026-12-31T23:59:59Z)

§agents: String

Agents as JSON array (must include one EscrowAgent)

§asset: Option<String>

CAIP-19 asset identifier (mutually exclusive with –currency)

§currency: Option<String>

ISO 4217 currency code (mutually exclusive with –asset)

§agreement: Option<String>

Agreement URL

§

Capture

Capture escrowed funds (TAIP-17)

Fields

§escrow_id: String

Escrow transaction ID to capture from

§amount: Option<String>

Amount to capture (for partial capture; omit for full capture)

§settlement_address: Option<String>

Settlement address (CAIP-10 format)

§

Exchange

Create a new exchange request (TAIP-18)

Fields

§from_assets: Vec<String>

Source asset identifiers (comma-separated CAIP-19, DTI, or ISO 4217)

§to_assets: Vec<String>

Target asset identifiers (comma-separated CAIP-19, DTI, or ISO 4217)

§from_amount: Option<String>

Amount of source asset to exchange

§to_amount: Option<String>

Amount of target asset desired

§requester: String

Requester DID

§provider: Option<String>

Provider DID (optional, omit to broadcast)

§agents: Option<String>

Agents as JSON array

§

Quote

Respond with a quote to an exchange request (TAIP-18)

Fields

§exchange_id: String

Exchange transaction ID to quote against

§from_asset: String

Source asset identifier

§to_asset: String

Target asset identifier

§from_amount: String

Amount of source asset

§to_amount: String

Amount of target asset

§provider: String

Provider DID

§agents: Option<String>

Agents as JSON array

§expires: String

ISO 8601 expiry timestamp

§

List

List transactions

Fields

§agent_did: Option<String>

Agent DID to list transactions for (defaults to –agent-did global flag)

§msg_type: Option<String>

Filter by message type (e.g., Transfer, Payment, Authorize, Reject)

§thread_id: Option<String>

Filter by thread ID

§from: Option<String>

Filter by sender DID

§to: Option<String>

Filter by recipient DID

§limit: u32

Maximum results

§offset: u32

Offset for pagination

Trait Implementations§

Source§

impl Debug for TransactionCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for TransactionCommands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for TransactionCommands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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