Trait subxt::tx::TxPayload

source ·
pub trait TxPayload {
    fn encode_call_data_to(
        &self,
        metadata: &Metadata,
        out: &mut Vec<u8>
    ) -> Result<(), Error>; fn encode_call_data(&self, metadata: &Metadata) -> Result<Vec<u8>, Error> { ... } fn validation_details(&self) -> Option<ValidationDetails<'_>> { ... } }
Expand description

This represents a transaction payload that can be submitted to a node.

Required Methods§

Encode call data to the provided output.

Provided Methods§

Encode call data and return the output. This is a convenience wrapper around TxPayload::encode_call_data_to.

Returns the details needed to validate the call, which include a statically generated hash, the pallet name, and the call name.

Implementors§