π’Simple API requests
Simple, one-line APIs. No rocket science
Last updated
Simple, one-line APIs. No rocket science
Last updated
All APIs that the KLY core contains are well documented and available in our Postman organization
Please, follow the link to test it on your own and check the useful example for each request βΊοΈ
Web1337 SDK has implementations for various languages ββsuch as JS(Node.js), Golang, Python and others!
In the initial stages, this documentation will provide an example of an API call for the JS SDK, but in other languages ββthe methods and their names have a similar meaning.
Also, don't forget to use the Postman documentation where you can learn about queries and data formats.
Here you just need to import the library to your project workspace and create the instance using this snippet:
chainID - 256-bit identifier of appropriate symbiote(something like chain id in EVM). On a technical level, this is the BLAKE3 manifest hash of the chain file which includes the genesis hash, the repository version hash and so on. For maximum security, it is recommended to include the manifest in several blockchains (hostchains) at once
workflowVersion - major version number of workflow of your symbiote to make sure you know the further logic in this version
nodeURL - the endpoint of node to interact with network. It might be your own node, Node-as-a-Service provider, etc.
proxyURL (optional) - the URL of proxy that will be used to interact with node. It might be HTTP(s) or SOCKS proxy(to allow connections over TOR/I2P or other SOCKS)
Only three first components are required for proper work
Once you create web1337 instance you have ability to call methods without manual request construction.
For example, to get block by ID, call:
For example, to get information about pool call
Or, to check the synchronization status of your node, call
Try playing and studying the methods available in the SDK. If necessary, as mentioned earlier, check Postman.