Home

Create protocol

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

Authorizations

ApiKeyAuthApiKeyAuth

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

application/json

Request payload.

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

expected_env_versioninteger[0, 65535]required

Expected env version value.

componentsArray<object>required

List of components.

Show child attributes
namestring | objectrequired

Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.

interfacestring | object

Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.

implementationstring | objectrequired

Either a plain UTF8 string, or a sequence of bytes for strings that contain invalid byte sequences.

Parameters

asyncstringquery

Async parameter.

Response

200OK

Successful response.

400Bad Request

Invalid request.

default

Error response.