Docs Category: Api

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Sandbox heads up RPC endpoints in this section are ***only*** available on the local sandbox node. Patch State Patch account, access keys, contract code, or contract state. Only additions and mutations are supported. No deletions. Account, access keys, contract code, …

RPC Endpoints Read More »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Transactions Send transaction (async) Sends a transaction and immediately returns transaction hash. method: broadcast_tx_async params: [SignedTransaction encoded in base64] Example: “`json { “jsonrpc”: “2.0”, “id”: “dontcare”, “method”: “broadcast_tx_async”, “params”: [ “DgAAAHNlbmRlci50ZXN0bmV0AOrmAai64SZOv9e/naX4W15pJx0GAap35wTT1T/DwcbbDwAAAAAAAAAQAAAAcmVjZWl2ZXIudGVzdG5ldNMnL7URB1cxPOu3G8jTqlEwlcasagIbKlAJlF5ywVFLAQAAAAMAAACh7czOG8LTAAAAAAAAAGQcOG03xVSFQFjoagOb4NBBqWhERnnz45LY4+52JgZhm1iQKz7qAdPByrGFDQhQ2Mfga8RlbysuQ8D8LlA6bQE=” ] } “` “`bash http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare …

RPC Endpoints Read More »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Protocol 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 …

RPC Endpoints Read More »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Network Node Status Returns general status of a given node (sync status, nearcore node version, protocol version, etc), and the current set of validators. method: status params: [] Example: “`json { “jsonrpc”: “2.0”, “id”: “dontcare”, “method”: “status”, “params”: [] } …

RPC Endpoints Read More »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Gas Gas Price Returns gas price for a specific block_height or block_hash. Using [null] will return the most recent block’s gas price. method: gas_price params: [block_height], [“block_hash”], or [null] [block_height] “`json { “jsonrpc”: “2.0”, “id”: “dontcare”, “method”: “gas_price”, “params”: [17824600] …

RPC Endpoints Read More »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Block Block details Queries network and returns block for given height or hash. You can also use finality param to return latest block details. Note: You may choose to search by a specific block or finality, you can not choose …

RPC Endpoints Read More »

Scroll to Top
Report a bug👀