const axios = require("axios");
(() : {
const config = {
headers: {
"Content-Type": "application/json",
},
};
const data = {
"address_hash": "0x77300C71071eCa35Cb673a0b7571B2907dEB77C7",
"type": "ERC-20,ERC-721,ERC-1155",
"filter": "to | from",
"token": "0xb81afe27c103bcd42f4026cf719af6d802928765",
"chainId": 1
};
axios
.post(
"https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/763/rest/addresses/token-transfers",
data, config
)
.then(function (response) {
// handle success
console.log(response.data);
})
.catch((err) : {
// handle error
console.log(err);
});
})();
import requests
response = requests.post("https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/763/rest/addresses/token-transfers", json=request("{
"address_hash": "0x77300C71071eCa35Cb673a0b7571B2907dEB77C7",
"type": "ERC-20,ERC-721,ERC-1155",
"filter": "to | from",
"token": "0xb81afe27c103bcd42f4026cf719af6d802928765",
"chainId": 1
}")
parsed = parse(response.json())
if isinstance(parsed, Ok):
print(parsed.result)
else:
logging.error(parsed.message)
curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/763/rest/addresses/token-transfers \
-X POST \
-H 'Content-Type: application/json' \
--data '{
"address_hash": "0x77300C71071eCa35Cb673a0b7571B2907dEB77C7",
"type": "ERC-20,ERC-721,ERC-1155",
"filter": "to | from",
"token": "0xb81afe27c103bcd42f4026cf719af6d802928765",
"chainId": 1
}'