Returns information about the current supply.
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getSupply',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
{
"context": {
"slot": 1114
},
"value": {
"circulating": 16000,
"nonCirculating": 1000000,
"nonCirculatingAccounts": [
"FEy8pTbP5fEoqMuB44arCmQAMtERdqQDVvsRC8J3S006",
"9huDUZfxoJ7wGMTffUE7vh1xePqef7gyrLJu9NApncqA"
],
"total": 1016000
}
}