MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / transfer

Function transfer

fendermint/app/src/cmd/rpc.rs:142–152  ·  view source on GitHub ↗

Execute token transfer through RPC and print the response to STDOUT as JSON.

(client: FendermintClient, args: TransArgs, to: Address)

Source from the content-addressed store, hash-verified

140
141/// Execute token transfer through RPC and print the response to STDOUT as JSON.
142async fn transfer(client: FendermintClient, args: TransArgs, to: Address) -> anyhow::Result<()> {
143 broadcast_and_print(
144 client,
145 args,
146 |mut client, value, gas_params| {
147 Box::pin(async move { client.transfer(to, value, gas_params).await })
148 },
149 |_| serde_json::Value::Null,
150 )
151 .await
152}
153
154/// Execute a transaction through RPC and print the response to STDOUT as JSON.
155///

Callers 1

mainFunction · 0.85

Calls 2

broadcast_and_printFunction · 0.85
transferMethod · 0.45

Tested by

no test coverage detected