Execute token transfer through RPC and print the response to STDOUT as JSON.
(client: FendermintClient, args: TransArgs, to: Address)
| 140 | |
| 141 | /// Execute token transfer through RPC and print the response to STDOUT as JSON. |
| 142 | async 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 | /// |
no test coverage detected