Docs Category: Near-api-js

Interacting with the Wallet

To Share and +4 nLEARNs NEAR Wallet import Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Wallet interaction is possible only in the browser, because NEAR’s Wallet is web-based. Most frequent action is Sign In. Your user is redirected to the Wallet page to authorize your application. Once the user has Signed In, an access key …

Interacting with the Wallet Read More »


To Share and +4 nLEARNs NEAR Wallet NEAR => yoctoNEAR // converts NEAR amount into yoctoNEAR (10^-24) const { utils } = nearAPI; const amountInYocto = utils.format.parseNearAmount(“1”); Function parseNearAmount YoctoNEAR => NEAR // converts yoctoNEAR (10^-24) amount into NEAR const { utils } = nearAPI; const amountInNEAR = utils.format.formatNearAmount(“1000000000000000000000000”); Function formatNearAmount


To Share and +4 nLEARNs NEAR Wallet When you instantiate an instance of Contract you need to specify the names of the functions you have on your smart contract. Then the new instance of Contract will have methods with the same names as your smart contract functions. For example if you deployed a contract with …

Contract Read More »


To Share and +4 nLEARNs NEAR Wallet You can interact with, create or delete NEAR accounts. Load Account This will return an Account object for you to interact with. const account = await nearConnection.account(“example-account.testnet”); Class Account Create Account // create a new account using funds from the account used to create it. const account = …

Account Read More »

Common Use Cases

To Share and +4 nLEARNs NEAR Wallet import Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; The repository contains many recipes that you can readily use to solve common case scenarios. Name Description ACCOUNTS Create Account Create NEAR accounts without using NEAR Wallet. Access Key Rotation Create and delete access keys for added security. TRANSACTIONS Get …

Common Use Cases Read More »

Scroll to Top
🕺New partnerships = cool giveaways! 5 lucky winners will get (L)Earners NFTs!🏆
This is default text for notification bar