API ReferenceToken APIGet BurnsGet ERC20 token burnsVersion: 2.0Get ERC20 token burnsGEThttps://deep-index.moralis.io/api/v2/erc20/burnsGet ERC20 token burns, burned by one or many wallet addresses and/or contract addresses, ordered by block number in descending order. Supports advanced filtering to specifically include or exclude particular wallet addresses or contract addresses. Supports up to 100 inputs.DEPRECATED ENDPOINTThis API will be deprecated on 4th September 2023. Please subscribe to the Changelog page for further announcements.🔥Token BurnsThis endpoint retrieves information about token burns for a specific contract, where tokens have been burned by transferring them to a null address.Sending tokens to a null addressis a widely-used practice for decreasing the total supply of an ERC20 token. Tokens that have been burned cannot be utilized or accessed by anyone.QUERY PARAMSchainstringThe chain to queryeth0x1goerli0x5sepolia0xaa36a7polygon0x89mumbai0x13881bsc0x38bsc testnet0x61avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1from_blocknumberThe block number from which the burns will be returnedto_blocknumberThe block number to which the burns will be returnedlimitnumberThe desired page size of the result.contract_addressesarrayContract addresses to only include (max 100 addresses)+ ADDexclude_contractsarrayContract addresses to ignore (max 100 addresses)+ ADDwallet_addressesarrayWallet addresses to only include (max 100 addresses)+ ADDexclude_walletsarrayWallet addresses to ignore (max 100 addresses)+ ADDcursorstringThe cursor returned in the previous response (used to getting the next page).Responses200 objectAPI KEYTry ItNode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.EvmApi.token.getErc20Burns({ "chain": "0x1" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth"}result = evm_api.token.get_erc20_burns( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2/erc20/burns?chain=eth' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2/erc20/burns?chain=eth" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2/erc20/burns?chain=eth', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 { "result": { "token_name": "Tether USD", "token_symbol": "USDT", "token_logo": "https://assets.coingecko.com/coins/images/325/large/Tether-logo.png?1598003707", "token_decimals": "6", "contract_address": "0x3105d328c66d8d55092358cf595d54608178e9b5", "transaction_hash": "0xdd9006489e46670e0e85d1fb88823099e7f596b08aeaac023e9da0851f26fdd5", "transaction_index": 204, "log_index": 204, "block_timestamp": "2021-05-07T11:08:35.000Z", "block_number": 12386788, "block_hash": "0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171", "from_wallet": "0x3105d328c66d8d55092358cf595d54608178e9b5", "from_wallet_label": "Binance 1", "value": "57732989482831651", "value_decimal": "577329894.8283165", "possible_spam": "false", "verified_collection": "false" }}