Docs Category: Rpc

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 »

RPC Endpoints

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Access Keys View access key Returns information about a single access key for given account. If permission of the key is FunctionCall, it will return more details such as the allowance, receiver_id, and method_names. method: query params: request_type: view_access_key finality …

RPC Endpoints Read More »

Scroll to Top
Report a bug👀