pico.token-js
v1.0.0
Published
js module to interact and fetch data from pico.token smart contract
Downloads
3
Maintainers
Readme
pico.token-js
JS Library to interact and read data from pico.token smart contract.
Usage
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install picotoken
Initialize
Web library can be found in the [dist] folder
// standard import
const {RpcApi} = require("picotoken");
// ES6 import
import {RpcApi} from "picotoken"
## Documentation
* **RpcAPI**: uses only native nodeos calls
#### RpcActionGenerator
The RPC API has an `action` attribute which contains a helper class to construct contract actions
which can be pushed on chain with eosjs.
#### Types
These classes represent table rows of the contract and consist of getter methods
which return the deserialized data.
The method `toObject` returns a JavaScript object representation of the class.