EOS API module ( in CamelCase :camel:)
Application programming interface for using the EOS blockchain via the RPC API provided by Block Producer Nodes. This is for read-only API calls.
This project wraps the official eosio/eosjs-api to provide
camelcase output. It only works with await/async and promise code style, there's no support for the callback style.
It is a work in progress.
Contents
Getting Started
yarn add @eoscostarica/eosjs-camel-api # or npm install -S @eoscostarica/eosjs-camel-api
const eosCamelApi = require('eosjs-camel-api')
const api = eosCamelApi.getInstance(options)
const logInfo = async () => {
const info = await api.getInfo({})
console.log(info)
}
logInfo()
eosjs-camel-api functions receive both snakecase and camelcase arguments and always return camelcase objects.
It defaults to the Jungle Testnet via the https://jungle.eosio.cr endpoint.
Camel Namespace Functions
eosjs-camel-api exposes functions that not part of eosjs-api
in the camel
namespace. Eg
const eosCamelApi = require('eosjs-camel-api')
const jungleApi = eosCamelApi.getInstance()
const mainNetApi = eosCamelApi.getInstance({httpEndpoint: 'https://api.eosio.cr'})
console.log(jungleApi.camel.getConfig())
console.log(mainNetApi.camel.getConfig())
Contributing
We follow the open source collaborative ettiquete, the standardjs code style.
Read EOS Costa Rica's Open Source Contributing Guidelines for more detail
https://learn.eoscostarica.io/open-source/
Bug Reporting
Please report bugs big and small by opening an issue.
No possible bug report is too small.
Maintainers
About EOS Costa Rica
EOS Blockchain is aiming to become a decentralized operating system which can support large-scale decentralized applications.
EOS Costa Rica supports the EOS.io community by maintaining and contributing to open source initiatives, meetups and workshops.
We challenge ourselves to provide the EOS platform with a strong geographical and political diversity by running the most robust EOS Block Producer possible from Costa Rica; We pledge to leverage our talent, experience, and sustainable Internet resources to meet such an important challenge.
eoscostarica.io
License
MIT © EOS Costa Rica