Inspect A Tax Token

Overview

You can get the tax info of any tax token using the Tax Token Helper contract. Our website uses this contract to get tax info for tokens and show them to users:

Tax Token Helper

Chain
Tax Token Helper

BNB Mainnet

0x53841c73217735F37BC1775538b03b23feFD8346

BNB Testnet

0xD64441e5FcD02D342B8cf6eBA10Ef6E40d0dA90f

We can get all the tax info in the previous illustration by calling getTaxTokenInfo function of the TaxTokenHelper contract. It returns a TaxTokenInfo struct that contains all the relevant tax configuration and statistics for a given tax token.

Note that for V1 Tax token, the mktBps is 10000 (i.e 100% goes to the marketing wallet, or funds recipient wallet). The returned totalQuoteSentToMarketing field may be zero for old V1 Tax tokens. If you found that to be the case, we provide a backend to get the totalQuoteSentToMarketing for V1 Tax tokens:

Note: you only need this fallback when totalQuoteSentToMarketing returned by getTaxTokenInfo is zero for V1 Tax tokens. For V2 Tax tokens, the totalQuoteSentToMarketing is always accurate.

Last updated