Injection

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

Authorizations
api-keystringRequired
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
chevron-right
200

Valid response

application/json
stringOptional
or
post
/injection/block

Injection operation

post

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.

Authorizations
api-keystringRequired
Query parameters
asyncstringOptional
chainstringOptional

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

Body
stringOptionalPattern: ^([a-zA-Z0-9][a-zA-Z0-9])*$
Responses
chevron-right
200

Valid response

application/json
stringOptional
or
post
/injection/operation

Injection protocol

post

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.

Authorizations
api-keystringRequired
Query parameters
asyncstringOptional
Body

The environment a protocol relies on and the components a protocol is made of.

expected_env_versioninteger · max: 65535Required
Responses
chevron-right
200

Valid response

application/json
stringOptional
or
post
/injection/protocol

Last updated