Skip to main content

End Points version 1

/api/v1/[endpoint]

HiRPC endpoints

EndpointMethodContent typeResponse typeDescription
/hirpc/[nocache]POSTapplication/octet-streamapplication/octet-streamHiRPC request to be sent to the kernel as-is. Request should be of valid HiRPC receive method. If method is dartRead the cache may be used if it is enable in the shell and not nocachein path. Method submit is deprecated. Method faucet is a successor of the /invoice2pay endpoint.
/dart/[nocache]POSTAlias for /hirpc. Deprecated.
/contractPOSTAlias for /hirpc. Deprecated.
/invoice2payPOSTapplication/octet-streamapplication/octet-streamThis endpoint is for testing/presentation only. Expected the HiBON document with valid invoice to be instantly paid from the default wallet configured in the selected node. The signed contract is created and sent to kernel. Response HiBON is returned.

non-HiRPC endpoints

EndpointMethodContent typeResponse typeDescription
/versionGETtext/plainTagionshell version and build info.
/bullseye/[json|hibon]GETapplication/json
application/octet-stream
The DART bullseye in the JSON or HiBON (default) form.
/sysinfoGETapplication/jsonSystem info of the server where tagon shell is running. Also contains the shell options.
/lookup/[method]/[key]GETapplication/octet-streamSearch request for the database or record log. Valid method : dart,trt,transaction,record. Expect the key is base64URL string contains the valid public key or search index or whatever be used to create the HiRPC request. Key requirements by method context:
  • dart - Expect the "@....." query string to create the DART read request with DARTcrud. String should be base64URL encoded. (yes, twice base64 is not a bug)
  • trt - Expect the "#$Y:*:@....." query string to create the TRT read request with DARTcrud. String should be base64URL encoded.
  • transaction - not implemented yet
  • record - not implemented yet
/util/[subject]/[method]/[data]GET
POST
application/json
application/octet-stream
application/json
application/octet-stream
Several tools which does not affect the node kernel, just for formatting, conversion or validation. Implemented subjects and methods:
  • subject = hibon
    • method = fromjson - Expect the application/json POST data and perform HiBONJSON conversion and validation. Returns the binary serialized document.
    • - method = tojson - Expect the application/octet-stream POST data or base64URL GET data and perform Document validation. Returns the JSON serialized Document.
/subscribeGETWebSocket endpoint for UPGRADE request. Sends the JSON formatted data stream according to the subscription.
Control command format: "[subscribe|unsubscribe]\0[subject]"
Subjects: monitor,recorder,trt