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

getTaxTokenInfo vs getTaxTokenInfoV2

The contract exposes two query functions. Use the table below to decide which one to call.

getTaxTokenInfo

getTaxTokenInfoV2

Return type

TaxTokenInfo

TaxTokenInfoV2

Tax rate fields

Single taxRate

Separate buyTaxRate and sellTaxRate

Marketing address

marketingWallet (plain address)

vaultInfo.addr + full MarketingWalletInfo

Vault metadata

None

isVault, factory, riskLevel, isOfficialVault

AI oracle flag

None

isAIConsumer

Dividend reward token

Not available

dividendToken (address(0) = native gas token)

Recommended for

Legacy integrations

All new integrations

Using getTaxTokenInfo

getTaxTokenInfo is the original query function. Call it when you only need the core tax breakdown and cumulative statistics:

circle-info

For V1 tax tokens (TOKEN_TAXED), only marketBps (always 10000), taxRate, marketingWallet, quoteToken, and totalQuoteSentToMarketing are populated. All other fields are zero.

Using getTaxTokenInfoV2

getTaxTokenInfoV2 is the recommended function for all new integrations. It returns everything getTaxTokenInfo returns, plus richer metadata about the marketing wallet and dividend token.

Reading vault risk level

riskLevel maps to the IVaultPortalTypes.RiskLevel enum:

Value
Meaning

0

UNVERIFIED (default for non-vaults)

1

LOW_RISK

2

LOW_MEDIUM_RISK

3

MEDIUM_RISK

4

HIGH_RISK

Detecting AI-powered vaults

isAIConsumer is true when either:

  • The vault's category in VaultPortal is TYPE_AI_ORACLE_POWERED, or

  • The marketing wallet is a smart contract (not an EOA or EIP-7702 delegate) that has submitted at least one request through FlapAIProvider.

V1 tax token caveats

For V1 tax tokens (TOKEN_TAXED), both functions populate only a subset of fields: marketBps (always 10000, meaning 100% goes to the marketing/funds-recipient wallet), buyTaxRate/sellTaxRate (or taxRate), vaultInfo.addr/marketingWallet, quoteToken, and totalQuoteSentToMarketing.

The totalQuoteSentToMarketing field may be zero for older V1 tokens. If that is 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

When using getTaxTokenInfoV2, vault metadata is already included in the vaultInfo field of TaxTokenInfoV2 β€” no separate VaultPortal call is needed for the basic case.

For deeper, vault-type-specific data, you can still query VaultPortal directly. Use the VaultPortal tryGetVault method to get basic vault information; 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 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