sdk.erc20base.transfer
Home > @openformat/sdk > ERC20Base > transfer
ERC20Base.transfer() method
Transfers tokens from the current account to the provided account.
transfer
Signature:
transfer(params: ERC20TransferParams): Promise<ContractReceipt>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC20TransferParams |
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.