Skip to content

Instantly share code, notes, and snippets.

@qianbin
Last active June 10, 2019 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qianbin/55da44fc2f654dcfd5458ae545a07604 to your computer and use it in GitHub Desktop.
Save qianbin/55da44fc2f654dcfd5458ae545a07604 to your computer and use it in GitHub Desktop.
const acc = connex.thor.account('0x0000000000000000000000000000456E65726779')
const ev = acc.event({
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
})
const filter = ev.filter([{from: '0xaaa...aaa'}]).order('desc')
await filter.apply(0,20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment