SafeBatchTransferFrom

ERC1155 Action Plugin - SafeBatchTransferFrom

Description

Transfers values amount(s) of ids from the from address to the to address specified (with safety call).

Method

safeBatchTransferFrom(address, address, uint256[], uint256[])

Method Parameters

NamePlugin TypeDescription

from

FctAddress

to

FctAddress

NFT Receiver

ids

FctValueList

values

FctValueList

Example

Example with initParams

const safeBatchTransferFrom = new ERC1155.actions.SafeBatchTransferFrom({
 chainId: 1,
 initParams: {
   to: "0x495f947276749Ce646f68AC8c248420045cb7b5e" // OpenSea Shared Storefront
   methodParams: {
     from: "0x...",
     to: "0x...",
     ids: ["1", "2"],
     values: ["10", "20"]
   }
 }
})

Example without initParams

const safeBatchTransferFrom = new ERC1155.actions.SafeBatchTransferFrom({ chainId: 1 })

safeBatchTransferFrom.input.set({
   to: "0x495f947276749Ce646f68AC8c248420045cb7b5e" // OpenSea Shared Storefront
   methodParams: {
     from: "0x...",
     to: "0x...",
     ids: ["1", "2"],
     values: ["10", "20"]
   }
})

Learn more

Learn more about EIP1155 Multi Token standard here

Last updated