Hello everyone,
Excited to be here and happy to release our open API platform MoveOnLibra for Libra. This API can be used to develop Libra applications and smart contracts, aiming to make life as a Libra developer easier.
About Libra network and API server endpoint
There are three libra blockchain network supported by MoveOnLibra:
- Mainnet, the upcoming offical libra network, NOT avaliable currently
- Testnet, comprised of test validator nodes running Libra Core, the software which maintains the Libra cryptocurrency.
- Devnet, a specail version of testnet maintained by MoveOnLibra instead of Libra Association, support publish and execute custom move modules and scripts.
Network | API Host | Status |
---|---|---|
Mainnet | https://api.moveonLibra.com | NOT avaliable |
Testnet | https://apitest.moveonLibra.com | avaliable |
Devnet | https://devnet.apitest.moveonLibra.com | avaliable |
About Public API and Protected API
You can access the MoveOnLibra public API without any prerequisites, there are 3 groups of public API:
- Address, all address API is public available.
- Event, all events API is public available.
- Transaction, all GET method API under Transaction group is public available.
For example, get the first transaction on Libra testnet blockchain, just run following curl command under linux shell, or click the url to open it in your favorite browser:
$curl https://apitest.moveonLibra.com/v1/transactions/1
Following API need an auth key to access:
- Wallet, all wallet API need API token to access.
- Move, all move API need API token to access.
- Transaction, all POST method API under Transaction group need API token to access.
Even if you can access the public API without auth key, we still recommend that you use key to access public API. All API calls without key are throttled at high load.
Register a MoveOnLibra Account and Get Your API Auth Key
This step-by-step guide introduces you to the MoveOnLibra API.
-
- Register an account at MoveOnLibra website with your email and password.
-
- Confirm the email and activate your new account.
-
-
Create an App for your application. One App can only access one network. so an App created for
testnet
can’t accessdevnet
and vice vesa.
-
Create an App for your application. One App can only access one network. so an App created for
-
- Every App will have one auto generated
server key
. Use your server key to access the MoveOnLibra API with correct host.
- Every App will have one auto generated
-
- (Optional). If you need access API from client-side(like Android, IOS and H5), your need a
client key
. Client key can be generated by api call or by hand.
- (Optional). If you need access API from client-side(like Android, IOS and H5), your need a
NOTICE: if you want to develop a smart contract application, you need create a devnet
App, and the generated auth key for that app is bounded to devnet
, and the api host is https://devnet.apitest.moveonLibra.com
About Libra blockchain explorer
When you develop a Libra program, you may want to see the realtime data on the blockchain. We provoid a blockchain explorer for each network.
Network | Libra blockchain explorer | Status |
---|---|---|
Mainnet | - | NOT avaliable |
Testnet | http://explorer.moveonLibra.com | avaliable |
Devnet | http://devnet.explorer.moveonLibra.com | avaliable |
The API is still in beta, so do let me know if you run into issues, bugs or if you have any suggestions.
Thank you