Do not send native NEAR directly to the Verifier contract.You must wrap your NEAR into wNEAR first as the contract does not accept native NEAR. See “Using NEAR Tokens” for more details.
Depositing fungible tokens (NEP-141)
The Verifier contract implements the FungibleTokenReceiver interface, part of the NEP-141 standard. To deposit tokens, callft_transfer_call (function signature) on the token contract, with an msg parameter specifying who will own the tokens.
Any NEP-141 token can be deposited. For a list of NEP-141 token contract addresses deposited into the Verifier contract, run:
How to deposit tokens
Replace<token-contract> with the token’s contract address and adjust the amount for the token’s decimal precision.
- NEAR CLI
- NEAR API JS
| Parameter | Description |
|---|---|
<token-contract> | The NEP-141 token contract you’re depositing from (e.g., wrap.near for wNEAR, eth.bridge.near for ETH). Any NEP-141 token can be deposited. |
receiver_id | Always intents.near (the Verifier contract). |
amount | The amount in the token’s smallest unit. Each token has different decimals (e.g., wNEAR has 24, USDC has 6). |
msg | Controls token ownership after deposit. See The msg parameter below. |
--deposit | 1 yoctoNEAR, required by the NEP-141 standard for ft_transfer_call. |
--gas | Depends on the msg content. Should be calculated to cover the cross-contract call to the Verifier contract plus any promises triggered by the deposit (e.g., execute_intents). 100 TGas is sufficient for a simple deposit. |
The msg parameter
The msg parameter supports three formats:
- Empty (default)
- Account ID string
- DepositMessage object
Leave
msg empty or omit it to assign ownership to the transaction sender.Real transaction examples
View these deposit transactions on NEAR mainnet:Depositing non-fungible tokens (NEP-171)
The Verifier contract implements the NonFungibleTokenReceiver interface (NEP-171 standard). To transfer NFTs to the Verifier, usenft_transfer_call with the same msg format rules as fungible tokens.
Depositing multi tokens (NEP-245)
The Verifier contract implements the MultiTokenReceiver interface (NEP-245 standard). To deposit multi tokens, usemt_batch_transfer_call with the same msg format rules as fungible tokens.