wrap.near contract converts NEAR to wNEAR at a 1:1 ratio.
See wNEAR docs for a detailed reference guide.
Wrap and deposit
If you’re integrating directly with the Verifier contract, you must wrap your NEAR first before depositing:Wrap your NEAR
Call
near_deposit on the wrap.near contract, attaching the amount of NEAR you want to wrap. This example wraps 0.01 NEAR:- NEAR CLI
- NEAR API JS
Deposit wNEAR into the Verifier contract
Call See Deposits for details on the
ft_transfer_call on wrap.near to deposit your wNEAR. wNEAR has 24 decimals, so 0.01 wNEAR = 10000000000000000000000.- NEAR CLI
- NEAR API JS
In the Verifier contract, wrapped NEAR is identified as
nep141:wrap.near.msg parameter and other deposit options.