const response = await fetch('https://alephium.nownodes.io/contracts/multicall-contract', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"calls": [
{
"group": 0,
"worldStateBlockHash": "bdaf9dc514ce7d34b6474b8ca10a3dfb93ba997cb9d5ff1ea724ebe2af48abe5",
"txId": "503bfb16230888af4924aa8f8250d7d348b862e267d75d3147f1998050b6da69",
"address": "tgx7VNFoP9DJiFMFgXXtafQZkUvyEdDHT9ryamHJYrjq",
"methodIndex": 0,
"args": [
{
"type": "U256",
"value": "0"
}
],
"interestedContracts": [
"uomjgUz6D4tLejTkQtbNJMY8apAjTm1bgQf7em1wDV7S"
],
"inputAssets": [
{
"address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y",
"asset": {
"attoAlphAmount": "3000000000000000000",
"tokens": [
{
"id": "20aa1fcc865087d7788302d087e4bc76691218ce5d5013dd1cedaabfac19cca4",
"amount": "3000000000"
}
]
}
}
]
}
]
}),
});
const data = await response.json();