0

I'm looking to collect Extrinsic transfers as images on https://polkadot.subscan.io/

Maybe use api sidecar or rpc to collect this data? Please help me!!!

Thank you so much!!!

enter image description here

1 Answer 1

1

In Substrate based chains, like Polkadot, when an extrinsic is included in a block, it emits certain events to notify external entities about changes or conditions in the runtime.

Polkadot-JS API supports a WebSocket subscription on runtime events, for your case, you are interested in events related to balances. In particular for fees in balance transfers, a Withdraw event will tell us the fee amount the sender account paid whereas Deposit events will tell us the amount of that fee that was deposited to the Treasury account and the amount that was deposited as tip to the block validator account.

You can have a look to this section in the Polkadot Integrations guide to learn about about how to query blocks with Sidecar and get the events related to fees paid by the extrinsics included in that block.

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.