description |
---|
Smart contract for sending multiple ERC721 tokens at once to one or more recipients. |
{% hint style="success" %}
Contract Address: 0x2368dfED532842dB89b470fdE9Fd584d48D4F644
{% endhint %}
{% hint style="info" %} UI: https://ronin.axiedao.org/nft-batch/ {% endhint %}
- Function Selector:
0xf9fd92b9
- Signature:
safeBatchTransfer(address,uint256[],address)
- This method can be used to transfer multiple NFTs with the same contract to one recipient.
- Requirements:
msg.sender
has to call setApprovalForAll on_tokenContract
to authorize this contract.
- Function Selector:
0xd56ad454
- Signature:
safeBatchTransfer(address,uint256[],address[])
- This method can be used to transfer multiple NFTs with the same contract to multiple recipients.
- Requirements:
msg.sender
has to call setApprovalForAll on_tokenContract
to authorize this contract.
{% code title="ERC721Batch.json" %}
[
{
"inputs": [
{
"internalType": "contract IERC721",
"name": "_tokenContract",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "_ids",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "_recipients",
"type": "address[]"
}
],
"name": "safeBatchTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC721",
"name": "_tokenContract",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "_ids",
"type": "uint256[]"
},
{
"internalType": "address",
"name": "_recipient",
"type": "address"
}
],
"name": "safeBatchTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
{% endcode %}