Last active
July 29, 2021 13:11
-
-
Save evanVtatum/198ccef4f0a34ed695c200c8db1ed84a to your computer and use it in GitHub Desktop.
Custodial multi-wallet: Batch transfer of all tokens on Polygon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'https://api-eu1.tatum.io/v3/blockchain/sc/custodial/transfer/batch' \ | |
--header 'Content-Type: application/json' \ | |
--header 'x-api-key: YOUR_API_KEY' \ | |
--data-raw '{ | |
"chain": "MATIC", | |
"contractType": [0,1,2,3], | |
"tokenId": ["0","100","1","0"], | |
"amount": ["0.001","0","1","0.009"], | |
"tokenAddress": [ | |
"0x2d7882bedcbfddce29ba99965dd3cdf7fcb10a1e", | |
"0x6d8eae641416B8b79e0fB3a92b17448CfFf02b11", | |
"0x664F97470654e8f00E42433CFFC0d08a5f4f7BC7", | |
"0" | |
], | |
"custodialAddress": "0x4eC40a4A0dA042d46cC4529f918080957003b531", | |
"recipient": [ | |
"0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA", | |
"0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA", | |
"0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA", | |
"0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA" | |
], | |
"fromPrivateKey": "0x37b091fc4ce46a56da643f021254612551dbe0944679a6e09cb5724d3085c9ab" | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment