Transfer

ERC20 Action Plugin - Transfer

Description

Transfer ERC20 Tokens

Method

transfer(address, uint256)

Input Parameters

NamePlugin TypeDescription

to

FctAddress

ERC20 Contract Address

Method Parameters

NamePlugin TypeDescription

recipient

FctAddress

Receiver address

amount

FctValue

Amount of tokens

Returned Values

No value returned

Example

Example with initParams

const transfer = new ERC20.actions.Transfer({
 chainId: 1,
 initParams: {
   to: "0xB1191F691A355b43542Bea9B8847bc73e7Abb137" // KIRO Address
   methodParams: {
     recipient: "0x...",
     amount: "100000000"
   }
 }
})

Example without initParams

const transfer = new ERC20.actions.Transfer({ chainId: 1 })

transfer.input.set({
    to: "0xB1191F691A355b43542Bea9B8847bc73e7Abb137" // KIRO Address
    methodParams: {
        recipient: "0x...",
        amount: "100000000"
    }
})

Learn more

Learn more about EIP20 token standard here

Last updated