Archives: Docs

Docs

Create Transactions

Login with NEARTo construct & process transactions you will need our API JavaScript library: near-api-js. There are many ways to create transactions but for this example we’ll show you two ways to create a simple token transfer transaction. HIGH LEVEL – easiest way to create a transaction LOW LEVEL – performs the exact same transaction …

Create Transactions Read More »

Exchange Integration

Login with NEARIntegration Reference Balance Changes Accounts Fungible Tokens Implicit Accounts Transaction Reference Links Basics Specifications Constructing Transactions Blocks and Finality Some important pieces of information regarding blocks and finality include: Expected block time is around 1s and expected time to finality is around 2s. The last final block can be queried by specifying {“finality”: …

Exchange Integration Read More »

Accounts

Login with NEARIntroduction Please see the documentation for accounts for basic information. For exchanges, NEAR supports implicit account creation which allows the creation of accounts without paying for transactions. You can create an implicit account by following the steps in this guide. Accounts must have enough tokens to cover its storage which currently costs 0.0001 …

Accounts Read More »

Balance changes

Login with NEARPrerequisites NEAR Account NEAR-CLI Credentials for sender account stored locally by running near login Native NEAR (Ⓝ) Balance changes on accounts can be tracked by using our changes RPC endpoint. You can test this out by sending tokens to an account using NEAR-CLI and then viewing the changes made. Send Tokens Send tokens …

Balance changes Read More »

Setup

Login with NEARIn order to use the RPC API you will need to setup the correct RPC endpoints. RPC Endpoint Setup POST for all methods JSON RPC 2.0 `- endpoint URL varies by network: mainnet https://rpc.mainnet.near.org testnet https://rpc.testnet.near.org betanet https://rpc.betanet.near.org (may be unstable) localnet http://localhost:3030 Limits Maximum number of requests per IP: 600 req/min Querying …

Setup Read More »

RPC Endpoints

Login with NEARThe RPC API enables you to send transactions and query their status. Send transaction Sends transaction. Returns the guaranteed execution status and the results the blockchain can provide at the moment. method: send_tx params: signed_tx_base64: SignedTransaction encoded in base64 [Optional] wait_until: the required minimal execution level. Read more here. The default value is …

RPC Endpoints Read More »

Protocol

Login with NEARThe RPC API enables you to retrieve the current genesis and protocol configuration. Genesis Config Returns current genesis configuration. method: EXPERIMENTAL_genesis_config params: none Example: “`json { “jsonrpc”: “2.0”, “id”: “dontcare”, “method”: “EXPERIMENTAL_genesis_config” } “` “`js const response = await near.connection.provider.experimental_genesisConfig(); “` “`bash http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare method=EXPERIMENTAL_genesis_config “` Example response: “`json { …

Protocol Read More »

RPC Providers

Login with NEARThere are multiple RPC providers from which you can choose from. These providers will work as intermediaries to help you interact with the NEAR network. You’ll experience different latency levels depending on the provider’s location. You can potentially use multiple providers for redundancy and balancing. tip If you want to use a custom …

RPC Providers Read More »

Maintenance Windows

Login with NEARThe RPC API enables you to query future maintenance windows for a specific validator in current epoch Maintenance windows The maintenance windows for a specific validator are future block height ranges in current epoch, in which the validator does not need produce block or chunk If the provided account is not a validator, …

Maintenance Windows Read More »

Scroll to Top