☘️BatchCall SDK

https://github.com/Move-Flow/sdk.js/blob/main/BatchCall.mdarrow-up-right

Getting Started

Create a project using this example:

yarn add @moveflow/sdk.js

Use SDK

const { batchcall } = new SDK(Network.TESTNET)

SDK Method

  1. batchTransfer: batchTransfer(input: batchTransferPayload)

Because tokens of type CoinType may be transferred to non-existing accounts, users need to first create a recipient account and register to be able to receive CoinType before transferring tokens

The parameters that need to be:

  • recipientAddrs: Receiver address for transferring tokens

  • depositAmounts: Amount of transferred tokens

  • coinType: The currency of the transfer token, the default is APT

  • isIngoreUnregisterRecipient: Whether to ignore unregistered receiver addresses, the default is true

  1. For example, airdrop Aptos tokens into two accounts:

Last updated