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.

how to inspect a tax token's vault

For a tax token, you can also inspect its vault via VaultPortal, which is the registry for vaults (see developers/vault-developers/flap-tax-vault.md). Use the VaultPortal tryGetVault method to get basic vault information, and the returned description gives a human-readable summary of the vault. For details on the fields returned by tryGetVault, refer to Get Vault Info.

If you want deeper, vault-type-specific data, compare the vaultFactory returned by tryGetVault against the known registered vault factories and then query the vault using its own interface. The list of registered vault factories and their interfaces is available at developers/token-launcher-developers/registered-vaults.md.

Last updated