klaytn/caver-js

Issues in caver filters.

Closed this issue · 0 comments

import Caver from 'caver-js';
const caver = new Caver('http://58.65.160.225:8551/');

async function test() {
const fromBlock = caver.utils.toHex(85838460);
const filter = await caver.rpc.klay.newFilter({
fromBlock: fromBlock,
address: '0x87ac99835e67168d4f9a40580f8f5c33550ba88b'
});
const history = await caver.rpc.klay.getFilterLogs(filter);
// await caver.rpc.klay.getFilterChanges(filter);
console.log(history);
}
test();

output : [ ]
there are transactions in specified range but this method always return empty array. Both getFilterLogs, getFilterChanges return empty results.