Octez RPC
v19.2 (54a1580334)https://xtz.nownodes.ioThe RPC API served by the Octez node.
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
Node
Chains
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists block hashes from '', up to the last checkpoint, sorted with decreasing fitness. Without arguments it returns the head of the chain. Optional arguments allow to return the list of predecessors of a given block or of a set of blocks.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
lengthstringqueryThe requested number of predecessors to return (per request; see next argument).
headstringqueryblock_hash (Base58Check-encoded) An empty argument requests blocks starting with the current head. A non empty list allows to request one or more specific fragments of the chain.
min_datestringqueryA date in seconds from epoch When min_date is provided, blocks with a timestamp before min_date are filtered out. However, if the length parameter is also provided, then up to that number of predecessors will be returned regardless of their date.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The chain unique identifier.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: use ../levels/{checkpoint, savepoint, caboose, history_mode} instead. The current checkpoint for this chain.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists blocks that have been declared invalid along with the errors that led to them being declared invalid.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The errors that appears during the block (in)validation.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
block_hashstringrequiredpathblock_hash (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The bootstrap status of a chain
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The current caboose for this chain.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The current checkpoint for this chain.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
The current savepoint for this chain.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Config
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Return the runtime node configuration (this takes into account the command-line arguments and the on-disk configuration file)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the history mode of the node's underlying storage.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Configuration for the DAL
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List of protocols which replace other protocols
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List of protocols to switch to at given levels
Response
Valid response
Errors
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Schema for all the RPC errors from the shell
Response
Valid response
Fetch_protocol
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Fetch a protocol from the network.
Parameters
Protocol_hashstringrequiredpathProtocol_hash (Base58Check-encoded)
Response
Valid response
Injection
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Inject a block in the node and broadcast it. The operations embedded in blockHeader might be pre-validated using a contextual RPCs from the latest block (e.g. '/blocks/head/context/preapply'). Returns the ID of the block. By default, the RPC will wait for the block to be validated before answering. If ?async is true, the function returns immediately. Otherwise, the block will be validated before the result is returned. If ?force is true, it will be injected even on non strictly increasing fitness. An optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.
Body
datastringrequiredoperationsArray<Array<operation>>requiredParameters
asyncstringqueryforcestringquerychainstringqueryA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Inject an operation in node and broadcast it. Returns the ID of the operation. The signedOperationContents should be constructed using contextual RPCs from the latest block and signed by the client. The injection of the operation will apply it on the current mempool context. This context may change at each operation injection or operation reception from peers. By default, the RPC will wait for the operation to be (pre-)validated before returning. However, if ?async is true, the function returns immediately. The optional ?chain parameter can be used to specify whether to inject on the test chain or the main chain.
Body
Parameters
asyncstringquerychainstringqueryA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Inject a protocol in node. Returns the ID of the protocol. If ?async is true, the function returns immediately. Otherwise, the protocol will be validated before the result is returned.
Body
The environment a protocol relies on and the components a protocol is made of.
expected_env_versionprotocol.environment_version[0, 65535]requiredcomponentsArray<object>requiredParameters
asyncstringqueryResponse
Valid response
Monitor
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor every chain creation and destruction. Currently active chains will be given as first elements
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor all blocks that are successfully applied and stored by the node, disregarding whether they were selected as the new head or not.
Parameters
protocolstringqueryProtocol_hash (Base58Check-encoded)
next_protocolstringqueryProtocol_hash (Base58Check-encoded)
chainstringqueryA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Wait for the node to have synchronized its chain with a few peers (configured by the node's administrator), streaming head updates that happen during the bootstrapping process, and closing the stream at the end. If the node was already bootstrapped, returns the current head immediately.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: use version instead.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor all blocks that are successfully validated and applied by the node and selected as the new head of the given chain.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
protocolstringqueryProtocol_hash (Base58Check-encoded)
next_protocolstringqueryProtocol_hash (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor all economic protocols that are retrieved and successfully loaded and compiled by the node.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor all blocks that were successfully validated by the node but are not applied nor stored yet, disregarding whether they are going to be selected as the new head or not.
Parameters
protocolstringqueryProtocol_hash (Base58Check-encoded)
next_protocolstringqueryProtocol_hash (Base58Check-encoded)
chainstringqueryA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Network
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List the running P2P connection.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Details about the current P2P connection to the given peer.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Clear all greylists tables. This will unban all addresses and peers automatically greylisted by the system. Use DELETE /network/greylist instead
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns an object that contains a list of IP and the field "not_reliable_since". If the field "not_reliable_since" is None then the list contains the currently greylisted IP addresses. If the field "not_reliable_since" Contains a date, this means that the greylist has been overflowed and it is no more possible to obtain the exact list of greylisted IPs. Since the greylist of IP addresses has been design to work whatever his size, there is no security issue related to this overflow. Reinitialize the ACL structure by calling "delete /network/greylist" to get back this list reliable.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List of the last greylisted peers.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Stream of all network events
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List the peers the node ever met.
Parameters
filterstringqueryResponse
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Details about a given peer.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Blacklist the given peer and remove it from the whitelist if present. Use PATCH network/peers/<peer_id> instead.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Check if a given peer is blacklisted or greylisted.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor network events related to a given peer.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
monitorstringqueryResponse
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Whitelist a given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can). Use PATCH network/peers/<peer_id> instead.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Remove the given peer from the blacklist. Use PATCH network/peers/<peer_id> instead.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Remove a given peer from the whitelist. Use PATCH network/peers/<peer_id> instead.
Parameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
List the pool of known IP:port used for establishing P2P connections.
Parameters
filterstringqueryResponse
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Details about a given IP:addr.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Blacklist the given address and remove it from the whitelist if present. Use PATCH /network/point/<point_id> instead.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Check if a given address is blacklisted or greylisted. Port component is unused.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Monitor network events related to an IP:addr.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
monitorstringqueryResponse
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Trust a given address permanently and remove it from the blacklist if present. Connections from this address can still be closed on authentication if the peer is greylisted. Use PATCH/network/point/<point_id> instead.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Remove an address from the blacklist. Use PATCH /network/point/<point_id> instead.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: Remove an address from the whitelist. Use PATCH /network/point/<point_id> instead.
Parameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Return the node's peer id
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Global network bandwidth statistics in B/s.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: use version instead.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
DEPRECATED: use version instead.
Response
Valid response
default
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Change the permissions of a given peer. With {acl: ban}: blacklist the given peer and remove it from the whitelist if present. With {acl: open}: removes the peer from the blacklist and whitelist. With {acl: trust}: trust the given peer permanently and remove it from the blacklist if present. The peer cannot be blocked (but its host IP still can).
Body
aclstringopentrustbanParameters
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Change the connectivity state of a given IP:addr. With {acl : ban}: blacklist the given address and remove it from the whitelist if present. With {acl: open}: removes an address from the blacklist and whitelist. With {acl: trust}: trust a given address permanently and remove it from the blacklist if present. With {peer_id: <id>} set the peerId of the point. Connections from this address can still be closed on authentication if the peer is greylisted.
Body
aclstringopentrustbanpeer_idstring | objectParameters
pointstringrequiredpathA network point (ipv4:port or [ipv6]:port).
Response
Valid response
Protocols
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
(no description)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
(no description)
Parameters
Protocol_hashstringrequiredpathProtocol_hash (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
(no description)
Parameters
Protocol_hashstringrequiredpathProtocol_hash (Base58Check-encoded)
Response
Valid response
Stats
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Gets stats from the OCaml Garbage Collector
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Gets memory usage stats
Response
Valid response
Version
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Get information on the node version
Response
Valid response
Workers
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Introspect the state of the block_validator worker.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists the chain validator workers and their status.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Introspect the state of a chain validator worker.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Introspect the state of the DDB attached to a chain validator worker.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists the peer validator workers and their status.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Introspect the state of a peer validator worker.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
peer_idstringrequiredpathA cryptographic node identity (Base58Check-encoded)
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists the Prevalidator workers and their status.
Response
Valid response
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Introspect the state of prevalidator workers.
Parameters
chain_idstringrequiredpathA chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.
Response
Valid response