#eosio #blockchain #api-bindings

eosio-client-api

EOSIO API to communicate to EOSIO nodeos software

10 releases

0.2.5 Jun 21, 2021
0.2.3 Feb 26, 2021
0.2.2 Jul 22, 2020
0.1.5 Jun 25, 2020
0.1.2 May 26, 2020

#15 in #eosio

41 downloads per month
Used in eosio-client

Apache-2.0

3.5MB
73K SLoC

C++ 53K SLoC // 0.2% comments Python 8K SLoC // 0.3% comments Rust 4K SLoC // 0.1% comments TypeScript 3.5K SLoC // 0.1% comments Visual Studio Project 3K SLoC JavaScript 610 SLoC // 0.4% comments Bazel 525 SLoC // 0.2% comments Automake 422 SLoC // 0.2% comments C 336 SLoC // 0.0% comments Shell 303 SLoC // 0.5% comments M4 254 SLoC // 0.4% comments Visual Studio Solution 233 SLoC Xcode Config 32 SLoC // 0.7% comments INI 6 SLoC

EOSIO-API

The aim of this project is to allow rust apps the ability to talk to a nodeos server.

how to use

see tictactoe for a toy sample.

notes

  • it expects to be run with keosd --http-server-address 127.0.0.1:3888 for testing.
  • built against 2.0/2.1 nodeos.
  • uses abieos to do EOSIO serialization/de-serialization
  • currently uses 'push_transaction' to push actions.
  • you need to create the wallet, put the password in the .env file
  • do a search/replace of EOS7ctUUZhtCGHnxUnh4Rg5eethj3qNS5S9fijyLMKgRsBLh8eMBB and replace it with your public key for testing

warnings

canonical signing is done via keosd compatible wallet API.

it's probably not a good idea to pass private keys in here.

Dependencies

~22–35MB
~471K SLoC