@eosrio/node-abieos
v3.3.4-a9d3362
Published
Node Bindings for abieos: Binary <> JSON conversion using ABIs.
Downloads
288
Readme
node-abieos
Node.js native binding for abieos, with some improvements:
- Contracts can be directly updated on the map
- Added
abieos_delete_contract
Made with ♥ by EOS Rio
Only Linux is supported for now
- Typescript typings included
- Prebuilt binary included (Clang 18 required to build)
Install
npm i @eosrio/node-abieos --save
Usage
CommonJS
const nodeAbieos = require('@eosrio/node-abieos');
ES Modules
import {Abieos} from "@eosrio/node-abieos";
const abieos = Abieos.getInstance();
Check the /examples folder for implementation examples
Building
Make sure you have Clang installed on your system:
We recommend using Clang 18 to build the abieos
C++ library.
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
Clone and Build
git clone https://github.com/eosrio/node-abieos.git --recursive
cd node-abieos
npm install
npm run build:linux
npm run build