junobuild_shared::ledger::icp

Function transfer_token

Source
pub async fn transfer_token(args: TransferArgs) -> CallResult<TransferResult>
Expand description

Initiates a transfer of ICP tokens using the provided arguments and “old” ICP account identifier.

§Arguments

  • args - A TransferArgs struct containing the details of the ICP transfer.

§Returns

A CallResult<TransferResult> indicating either the success or failure of the ICP token transfer.