NEAR-API-JS logo

NEAR-API-JS

Published February 2022
   •    Updated June 2025

Plugin details

This plugin is designed for Bubble Developers who want to integrate their Bubble apps with NEAR protocol
Through this plugin, Bubble developers will be able to interact with NEAR Wallet, Deploy and interact with NEAR smart contracts, send and receive NEAR tokens from and into NEAR Wallet etc

We recommend you begin with checking out NEAR - Bubble Demo or Sandbox here.. https://near-bubble.bubbleapps.io/

Below details explain what each functions is and how to use the plugin.


Free

For everyone

stars   •   0 ratings
65 installs  
This plugin does not collect or track your personal data.

Other actions

Platform

Web & Native mobile

Contributor details

Timothy Mugendi logo
Timothy Mugendi
Joined 2016   •   4 Plugins
View contributor profile

Instructions

NEAR protocal has three parts: - NEAR Account
- NEAR Wallet
- NEAR Smart Contract


Near Wallet is a wallet used to store NEAR coins and NEP21 token standards supported on the Near blockchain platform. You can send and receive NEAR and NEP21 tokens as well as interact with applications on NEAR platform through the Near wallet. In particular, this wallet is owned by you, no one has the right to influence or use the wallet other than you.

Think of your NEAR account as a username that you can easily remember and type in without copy-pasting

NEAR Smart Contracts are the back-end of your application that runs code and stores data on the blockchain. You can read more about NEAR contracts here... https://docs.near.org/docs/develop/contracts/overview

##WALLET

1. Sign In -
//Redirects user to wallet to authorize your dApp
// This creates an access key that will be stored in the browser's local storage
// Access key can then be used to connect to NEAR and sign transactions via keyStore

NB: Sign In is not required if you are using an alternative key store to local storage or you are not signing transactions (using view call methods on a contract)

2. Check if Signed In

As the name suggest, this action checks if the current user is signed in to a NEAR account.


3. Get Authorized Account Id
//Returns account Id as string for the signed in user


4. Get Authorized Account Object
//Returns account as JSON ready  to for transaction signing


##ACCOUNT

5. Load Account
//loads account ready for subsequent account actions such as creating a new account, checking a count balance, Send Tokens etc

6. Create Account
// Creates a new sub-account using funds from the account used to create it

7. Delete Account
// deletes account found in the `account` object
// transfers remaining account balance to the beneficially accountId

8. Get Account Balance
// gets account balance

9. Get Account details
// gets account details in terms of authorized apps and transactions

10. Deploy a Contract
//Deploys a new contract in a given account. You have to provide a .wasm link for the contract you want to deploy

11. Send Tokens
// Sends NEAR tokens from sender account to receiver account.


12. State
// gets the state of the account


## CONTRACT

13. Deploy Contract
// deploys an existing .wasm contract file to a given near account. You have to provide a URL to the file. For the sake of this plugin, we have provided several .wasm contract URLs from NEAR documentation examples for test purposes

14. View Methods
//Think of view method as a read only interaction with contracts. E.g. view the last transaction made for a particular contract method.

15. Change Methods
// As the name suggests, change methods

Types

This plugin can be found under the following types:
Api   •   Action   •   Background Services   •   Element   •   Event

Categories

This plugin can be found under the following categories:
Small Business   •   Data (things)   •   Internationalization   •   Ecommerce   •   Payment   •   Visual Elements

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble