Token transferer

[blockchain/ethereum/contracts/erc20/Token transferer]


Transfers ERC20 token to the target address. More: https://docs.openzeppelin.com/contracts/2.x/api/token/erc20#IERC20-Transfer-address-address-uint256-


Keywords: ethereum, blockchain, erc20, token transfer.

Input ports

  • token address: string

    Receives the address of the token contract from which the user wants to transfer. Example: "0xb794f5ea0ba39494ce839613fffba74279579268"

  • target address: string

    Receives recipient's address for the transaction. Example: "0xc794f5ea0ba39494ce839613fffba74279579269"

  • token amount: number

    Receives the number of tokens to be transferred. Example: 1

  • credentials: {"providerUrl": string, "privateKey": string}

    Recives the node provider URL and the wallet private key.

    {<br>
      "providerUrl": "https://eth-goerli.alchemyapi.io/v2/71n6GXE_ROLFP-1DELzRWrgsyqqWXXXXX",<br>
      "privateKey": "XXXXXXXXXXXXXXXXXXXXXX"<br>
    }<br>
    ```<br>

Output ports

  • result: any

    Sends the transaction receipt.

  • error: {"error": string}

    Sends the error, if any.

Last updated