Skip to main content

encode_call_data

Function encode_call_data 

Source
pub fn encode_call_data(
    client: &OnlineClient<SubstrateConfig>,
    xt: &DynamicPayload,
) -> Result<String, Error>
Expand description

Encodes the call data for a given extrinsic into a hexadecimal string.

ยงArguments

  • client - The client used to interact with the chain.
  • xt - The extrinsic whose call data will be encoded and returned.