Block

post

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.

Query parameters
asyncstringOptional
forcestringOptional
chainstringOptional

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

Body
datastringRequiredPattern: ^([a-zA-Z0-9][a-zA-Z0-9])*$
Responses
200Success
application/json
Responseone of
stringOptional
or
post
POST /injection/block HTTP/1.1
Host: xtz.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "data": "text",
  "operations": [
    [
      {
        "branch": "text",
        "data": "text"
      }
    ]
  ]
}
text