Skip to content
A REST API for Libra blockchain
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
helpers
.editorconfig
.env.example
.eslintrc.js
.gitignore
.prettierrc.js
LICENSE
README.md
package-lock.json
package.json
start.js

README.md

Join the chat

Libra REST API

A REST API for Libra blockchain

API

Get account state

Get the latest state for an account.

/api/account/state/:address?

Try it
https://librascript.io/api/account/state/435fc8fc85510cf38a5b0cd6595cbb8fbb10aa7bb3fe9ad9820913ba867f79d4

Get account transaction

Get the committed transaction by account and sequence number.

/api/account/transaction/:address?/:sequenceNumber?/:fetchEvents?

Try it
https://librascript.io/api/account/transaction/435fc8fc85510cf38a5b0cd6595cbb8fbb10aa7bb3fe9ad9820913ba867f79d4/0/true

Get events

Get event by account and path.

/api/events/:address?/:startEventSeqNum?/:ascending?/:limit?

Try it
https://librascript.io/api/events/435fc8fc85510cf38a5b0cd6595cbb8fbb10aa7bb3fe9ad9820913ba867f79d4/0/true/10

Get transactions

Get the committed transaction by range

/api/transactions/:startVersion?/:limit?/:fetchEvents?

Try it
https://librascript.io/api/transactions/0/10/true

Parameters

Scope

You can scope the result to a specific path by adding the query parameter "scope".

Try it
https://librascript.io/api/transactions/0/10/true?scope=txn_list_with_proof.transactions[0].raw_txn

JSON-RPC 2

Libra API also support JSON-RPC 2, the base url is:

https://librascript.io/rpc

Getting help

If you believe you're experiencing a bug with or want to report incorrect documentation, open an issue on our issue tracker. For a more real-time avenue of communication, check out the Discord or Telegram servers. There you'll find community members who can help answer about development questions.

License

MIT.

You can’t perform that action at this time.