transfer

transfer is a method on the ARIO class that transfers ARIO tokens from the authenticated wallet to another specified wallet address.

transfer requires authentication.

Examples

transfer

const { id: txId } = await ario.transfer({
    target: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
    quantity: 1000000000
});

Parameters

ParameterTypeDescriptionOptional
targetstring - WalletAddressThe wallet address to transfer tokens tofalse
quantitynumber

The amount of ARIO tokens to transfer (in smallest units)

false
tagsarray

An array of GQL tag objects to attach to the transfer AO message

true

Output

{
  id: 'Q44fpJLfq8wt-3RXA5a7ReiN7wmwkgxQA2jPYW51R-Q',
  result: 'You transferred 1000000000 to nszYSUJvtlFXssccPaQWZaVpkXgJHcVM7XhcP5NEt7w'
}

Was this page helpful?