0

The following sub with filter is not resulting in an error and no messages are received for newly mined txns:

'{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["alchemy_minedTransactions", {"addresses": [{"to": "0xb87a436B93fFE9D75c5cFA7bAcFff96430b09868"}], "includeRemoved": false, "hashesOnly": false}]}'

The websocket seems to work fine (receiving messages) for non-filtered subscriptions:

{"jsonrpc":"2.0","id": 2, "method": "eth_subscribe", "params": ["alchemy_minedTransactions"]}

Using wscat -c wss://arb-mainnet.g.alchemy.com/v2/API_KEY to subscribe. API docs

Anyone else seeing this issues or any ideas how to solve? Am I missing something in the filtered sub message or have the docs changed? Thanks for any help.

1 Answer 1

1

All address chars need to be lowercase:

0xb87a436B93fFE9D75c5cFA7bAcFff96430b09868 should be 0xb87a436b93ffe9d75c5cfa7bacfff96430b09868

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.