Ethereum icon

Ethereum

Interact with Ethereum blockchain

ERC1155 → Safe Transfer From

AI-generated

Summary

Execute a safe transfer of ERC1155 tokens from a sender to a recipient.

Inputs

  • contractAddress (required) — ERC1155 contract address
  • from (required) — From Address
  • to (required) — To Address
  • id (required) — Token ID
  • amount (required) — Amount
  • data — Data

Output shape

a transaction receipt

On success the node returns the transaction receipt; on failure an error is thrown. Fields may be omitted depending on the underlying implementation.

Examples

Example 1: Transfer a single token from Alice to Bob

contractAddress: 0xABC..., from: 0xAlice..., to: 0xBob..., id: 42, amount: 1, data: "0x"

Example 2: Batch transfer multiple tokens to multiple recipients

contractAddress: 0xABC..., from: 0xAlice..., to: [0xBob..., 0xCharlie...], id: 42, amount: 2, data: "0x"

Example 3: Invoke ERC1155 contract with custom data payload

contractAddress: 0xABC..., from: 0xAlice..., to: 0xBob..., id: 42, amount: 0, data: "0x1234"

Links

Discussion