Links
💠

Transfer ERC1155

Use this method to transfer an ERC1155 Token.
You are only able to transfer ERC721 tokens, which is in your developer wallet and the collection use Altura services.

Usage in your script

JavaScript
TypeScript
const response = await altura.transferItem(
COLLECTION_ADDRESS,
TOKEN_ID,
AMOUNT,
TO_ADDRESS
);
​
const txHash = response.txHash;
const response: { txHash: string } = await altura.transferItem(
COLLECTION_ADDRESS,
TOKEN_ID,
AMOUNT,
TO_ADDRESS
);
​
const txHash = response.txHash;

Parameters

Parameter
Type
Required
Description
collection_addr
String
Yes
The item's collection address
token_id
number
Yes
The item's tokenId
amount
number
Yes
The quantity of this particular item you wish to transfer. This operation will fail if you try to transfer more than your balance
to_addr
String
Yes
The recipient's EVM-compatible address (0x...)
​