Skip to main content

sdk.constellation.transfer

Home > @openformat/sdk > Constellation > transfer

Constellation.transfer() method

Transfers tokens from the current account to the provided account.

transfer

Signature:

transfer(params: ERC20TransferParams): Promise<ContractReceipt>;

Parameters

ParameterTypeDescription
paramsERC20TransferParams

Returns:

Promise<ContractReceipt>

{Promise<ContractReceipt>} - A Promise that resolves to the transaction receipt object.

Exceptions

{Error} - If there is an error with the Ethereum transaction, a new Error object is thrown with a message containing the error details.