Guest User

Untitled

a guest
Jun 13th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. })
Add Comment
Please, Sign In to add comment