Skip to content

ilzheev/Factom-Open-API

 
 

Repository files navigation

Factom Open API

Factom Open API is a lightweight REST API for the Factom blockchain. It connects to an existing factomd node and has a built-in Factom wallet that will handle signing data before writing it to the Factom blockchain.

Main features

  • Instant start: use Open API immediately after installation
  • Write data to the blockchain
  • Users: user-based API access, counting usage, limits
  • Read all chain entries at once using a single request (no need to read all entry blocks of chain one by one)
  • Search chains & entries by tags (external IDs)
  • Pagination, sorting, filtering results with query params
  • Generic factomd interface: all factomd API requests are supported via special REST path

API Reference

Documentation

Methods

Installation guides

Entry Credits

Entry Credits (EC) purchase fixed amounts of data in the Factom network.
You need EC address filled with Entry Credits to write data on the Factom.

Design

Fetching updates

Factom Open API does not store all chains of the Factom blockchain in its local database. Instead, when you start working with a chain using any request (get entry of chain, get chain info, write entry into chain, etc...), the chain is fetched from Factom in the background.

All fetched chains are stored in the local DB, and new entries are added automatically in minute 0-1 of each block.

This allows Factom Open API to be used immediately after installing without a long syncing period with Factom blockchain. It is not designed for applications which require all chains, blocks and entries - e.g. a Factom Explorer.

User's chains

A great advantage of Factom Open API is binding chains to API users. This binding is stored locally in the Open API database. It's possible to show users their chains, including ones the user created and all chains that the user has worked with (write, read or search).

This way API users may search their specific chains by External ID(s) instead of searching the entire blockchain.

License

Factom Open API is released under the MIT License.

About

Open-source lightweight REST API for Factom blockchain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 73.3%
  • JavaScript 23.2%
  • HTML 1.1%
  • Other 2.4%