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.
Query parameters
asyncstringOptional
Body
The environment a protocol relies on and the components a protocol is made of.
expected_env_versioninteger · max: 65535Required
Responses
200Success
application/json
Responseone of
stringOptional
default
application/json
post
POST /injection/protocol HTTP/1.1
Host: xtz.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"expected_env_version": 1,
"components": [
{
"name": "text",
"interface": "text",
"implementation": "text"
}
]
}
text