Home

Create block

POST
https://xtz.nownodes.io/injection/block

Authorizations

ApiKeyAuthApiKeyAuth

api-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.

Body

application/json

Request payload.

datastringrequired

Data.

operationsArray<Array<object>>required

List of operations.

Parameters

asyncstringquery

Async parameter.

forcestringquery

Force parameter.

chainstringquery

A chain identifier. This is either a chain hash in Base58Check notation or a one the predefined aliases: 'main', 'test'.

Response

200OK

Successful response.

400Bad Request

Invalid request.

default

Error response.