Global tips
Account instantiated
The API Resources Reference usage and example calls assume you have an account already instantiated. See the account reference on how to do so.
Asynchronous functions
Functions
All functions throughout the API have required arguments (if any needed) followed by an optional object of additional parameters to be used in the function call.
api_server
Any core channel node multi-address can be used as an api_server. You can find a list of core nodes here and their multi-address in their "info".
Example of one of the nodes multi-address that can be found on https://account.aleph.im/: /ip4/
65.21.141.116
/tcp/4025/p2p/QmSuf7N2753dAeiwXmXVPdNW1JBvzhb43t6wXVaR75w64S)
.
Api Server Url would look like this:
https://<ip-address>
or http://<ip-address>:4024
[Future Release] The Aleph will provide load-balancing in the future so the users don't have to pick an api_server.
Reasons for choosing a different api_server:
The latency decreases the closer the dApp is from the server
Some offer HTTPS others don't (yet).
Last updated