Bulk Transfer ERC1155

Use this method to transfer multiple ERC1155 tokens from the same collection

You are only able to transfer ERC1155 tokens, which is in your developer wallet and the collection use Altura services.

Usage in your script

const response = await altura.transferItems(
  COLLECTION_ADDRESS,
  TOKEN_IDS, //array 
  AMOUNTS, //array
  TO_ADDRESS
);

const txHash = response.txHash;

Parameters

ParameterTypeRequiredDescription

collection_address

String

Yes

The item's collection address

token_ids

number[]

Yes

An array of the token Id's you wish to transfer from the specified collection

amounts

number[]

Yes

An array of the amount of each tokenId you wish to transfer. This array must be the same length as the tokenIds array

to

String

Yes

The recipient's EVM-compatible address (0x...)

Last updated