Last active
June 10, 2019 10:42
-
-
Save qianbin/55da44fc2f654dcfd5458ae545a07604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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