Actions53
- Account Actions
- Block Actions
- Transaction Actions
- Contract Actions
- ERC20 Actions
- ERC721 Actions
- ERC1155 Actions
- Gas Actions
- Signature Actions
- Utils Actions
- Custom RPC Actions
ERC1155 → Safe Transfer From
AI-generatedSummary
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"