4

Array of topics in requests like logs / filter

  • Held for moderation
  • Open

Avatar
tcolonel

Make it possible to set an array for topic0 / topic1 / topic2 in the getlogsbyaddress API endpoint.

Instead of
const options = {
address: 'address',
chain: 'bsc',
topic0: 'address',
topic1: 'address',
topic2: 'address'
};

something like this:

const options = {
address:,
chain: 'bsc',
topic0: ['address', 'address', ...],
topic1: ['address', 'address', ...],
topic2: ['address', 'address', ...]
};

or

const options = {
address: 'address',
chain: 'bsc',
topics: [
'address',
['address', 'address', ...],
['address', 'address', ...]
};

Like in specification: eth.wiki/json-rpc/API#a-note-on-specifying-topic-filters


Thanks.

A

Activity Newest / Oldest

Avatar

tcolonel

>> Where are you requesting this functionality? In the event sync feature? Or in the API?

docs.moralis.io/moralis-server/web3-sdk/native#getlogsbyaddress-new


  • F
F

Filip Martinsson

Where are you requesting this functionality? In the event sync feature? Or in the API?


Avatar

tcolonel

>> Where are you requesting this functionality? In the event sync feature? Or in the API?

docs.moralis.io/moralis-server/web3-sdk/native#getlogsbyaddress-new


  • F