Skip to main content

Multi Token Standard (NEP-245)

After a successful deposit, the Verifier contract manages tokens using the Multi Token Standard (NEP-245). This enables uniform handling of all supported token types.

Token ID format

Each token is identified by a string-based token ID, prefixed with its standard type.
Token TypePrefixExample
Fungible (NEP-141)nep141:nep141:wrap.near
Non-fungible (NEP-171)nep171:nep171:coolnfts.near:rock.near
Multi Token (NEP-245)nep245:nep245:mygame.near:shield.near

Checking your balance

After a successful deposit, query your balance using mt_balance_of, which adheres to the NEP-245 standard.
near contract call-function as-read-only intents.near mt_balance_of \
  json-args '{"account_id": "your-account.near", "token_id": "nep141:wrap.near"}' \
  network-config mainnet now
ParameterDescription
account_idThe NEAR account to check the balance of.
token_idThe token ID with its standard prefix (e.g., nep141:wrap.near). See Token ID format.

Batch balance query

To check multiple token balances at once, use mt_batch_balance_of:
near contract call-function as-read-only intents.near mt_batch_balance_of \
  json-args '{"account_id": "your-account.near", "token_ids": ["nep141:wrap.near", "nep141:usdt.tether-token.near"]}' \
  network-config mainnet now
Response:
[
  "3000004000004000006",
  "10"
]
Balances are returned in the smallest unit of each token (e.g., yoctoNEAR for wrapped NEAR).