Skip to content

Instantly share code, notes, and snippets.

@evanVtatum
evanVtatum / Lookup Cardano block by hash or height
Created July 27, 2021 09:33
Lookup Cardano block by hash or height
curl --request GET \
--url https://api-eu1.tatum.io/v3/ada/block/{hash} \
--header 'x-api-key: REPLACE_KEY_VALUE'
@evanVtatum
evanVtatum / Lookup Cardano block by hash or height response
Created July 27, 2021 09:34
Lookup Cardano block by hash or height response
{
"hash": "6178dda07b94becb118f67b21aa72f60d85c1029e9e9b8ae56a25d684de66078",
"number": 1234314,
"epochNo": 536870912,
"slotNo": "a3047a060e5d586a9b26779ebe62fc57ce7323745da8f28761ab755454d89c52",
"merkleRoot": "a1634a42a8e956a5fb5225d06c3af6207e7f6fe5a00fa45229edfd0ddfa587f0",
"forgedAt": "2020-10-20T08:21:50.107Z",
"fees": 503452237,
"slotInEpoch": 2278594841,
"transactions": [
@evanVtatum
evanVtatum / Lookup Cardano transactions by address
Created July 27, 2021 09:36
Lookup Cardano transactions by address
curl --request GET \
--url 'https://api-eu1.tatum.io/v3/ada/transaction/address/{address}?pageSize=10&offset=0' \
--header 'x-api-key: REPLACE_KEY_VALUE'
@evanVtatum
evanVtatum / Lookup Cardano transactions by address response
Created July 27, 2021 09:38
Lookup Cardano transactions by address response
[
{
"hash": "5f83d51c8d3054012cea3011fa626b85d89442788721afd60719ab1f9ab8f78a",
"fee": "0.00001682",
"block": 1233224,
"includedAt": "2020-10-20T08:21:50.107Z",
"inputs": [
{
"txHash": "0db5a2881f26f7dce20222f9c2538dc296ab562e134a72052596bdf4bb6913b4",
"sourceTxHash": "0db5a2881f26f7dce20222f9c2538dc296ab562e134a72052596bdf4bb6913b4",
@evanVtatum
evanVtatum / Send ADA to blockchain addresses
Created July 27, 2021 09:41
Send ADA to blockchain addresses
curl --request POST \
--url https://api-eu1.tatum.io/v3/ada/transaction \
--header 'content-type: application/json' \
--header 'x-api-key: REPLACE_KEY_VALUE' \
--data '{"fromAddress":[{"address":"2N9bBiH2qrTDrPCzrNhaFGdkNKS86PJAAAS","privateKey":"cVX7YtgL5muLTPncHFhP95oitV1mqUUA5VeSn8HeCRJbPqipzobf"}],"to":[{"address":"2MzNGwuKvMEvKMQogtgzSqJcH2UW3Tc5oc7","value":0.02969944}]}'
@evanVtatum
evanVtatum / Send ADA to blockchain addresses response
Created July 27, 2021 09:42
Send ADA to blockchain addresses response
{
"txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
"failed": false
}
@evanVtatum
evanVtatum / Deploy NFT Celo cURL
Created July 27, 2021 14:27
Deploy NFT Celo cURL
curl --request POST \
--url https://api-eu1.tatum.io/v3/nft/deploy \
--header 'content-type: application/json' \
--header 'x-api-key: REPLACE_KEY_VALUE' \
--data '{"chain":"CELO","name":"My ERC721","symbol":"ERC_SYMBOL","fromPrivateKey":"0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2","nonce":0,"feeCurrency":"CELO"}'
@evanVtatum
evanVtatum / Deploy NFT Celo cURL response
Created July 27, 2021 14:34
Deploy NFT Celo cURL respone
{
"txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9",
"failed": false
}
@evanVtatum
evanVtatum / Create custodial multi-wallet: full features
Last active October 27, 2021 15:24
Create custodial multi-wallet: full features
curl --request POST \
--url https://api-eu1.tatum.io/v3/blockchain/sc/custodial/batch \
--header 'content-type: application/json' \
--header 'x-api-key: REPLACE_KEY_VALUE' \
--data '{
"chain":"MATIC",
"fromPrivateKey":"0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2",
"batchCount":270,
"owner":"0x8cb76aed9c5e336ef961265c6079c14e9cd3d2ea",
"fee":{
@evanVtatum
evanVtatum / Custodial multi-wallet: Transfer ERC-20 on Polygon
Created July 29, 2021 12:41
Custodial multi-wallet: Transfer ERC-20 on Polygon
curl --location --request POST 'https://api-eu1.tatum.io/v3/blockchain/sc/custodial/transfer' \
--header 'Content-Type: application/json' \
--header 'x-api-key: testnet' \
--data-raw '{
"chain": "MATIC",
"contractType": 0,
"tokenAddress": "0x2d7882bedcbfddce29ba99965dd3cdf7fcb10a1e",
"custodialAddress": "0x4eC40a4A0dA042d46cC4529f918080957003b531",
"recipient": "0x8cb76aEd9C5e336ef961265c6079C14e9cD3D2eA",
"amount": "0.00006",