Skip to main content

transfer

Description

Transfers tokens from the current account to the provided account.

Parameters

NameTypeDescription
tostringThe address of the account to receive the tokens.
amountnumberThe amount of tokens to transfer.
overrides?OverridesOptional overrides for the contract call.

Example

import { ContractType } from "@openformat/sdk";

const contract = sdk.getContract({
contractAddress: "0x123...",
type: ContractType.Token,
});

const params = {
to: "0x123...",
amount: 100,
};

await contract.transfer(params);