Skip to main content

NEAR API REST Server

NEAR REST API Server is a project that allows you create your own simple REST API server that interacts with the NEAR blockchain.


Overview

Click on a route for more information and examples

RouteMethodDescription
CONTRACTS
/deployPOSTDeploys a smart contract on NEAR.
/viewPOSTPerforms a smart contract view call with no gas burnt.
/callPOSTPerforms a smart contract change call that burns gas.
UTILS
/initPOSTInitializes the master account and updates near-api-server-config.json
/create_userPOSTCreates a NEAR sub-account and stores credentials in /storage.
/parse_seed_phrasePOSTDisplays public and private key pair from a given seed phrase .
NFT EXAMPLE
/mint_nftPOSTMints an NFT for a given contract.
/transfer_nftPOSTTransfers NFT ownership to a specified account.
/view_nftPOSTReturns owner, metadata, and approved account IDs for a given token ID.

Video Presentation