daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Eos = require("eosjs")
  2. const BigNumber = require("bignumber.js")
  3.  
  4. const accountName = 'myaccount'
  5. const encodedName = new
  6. BigNumber(Eos.modules.format.encodeName(accountName, false))
  7.    
  8. Eos.Localnet({}).getTableRows({
  9.   code: contractName.toString(),
  10.   json: json,
  11.   limit: limit,
  12.   lower_bound: encodedName.toString(),
  13.   scope: contractName.toString(),
  14.   table: tableName.toString(),
  15.   upper_bound: encodedName.plus(1).toString()
  16. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top