Linked Questions
10 questions linked to/from Is there a good indexer for substrate chains (like the graph)?
8
votes
2
answers
784
views
When does an off-chain worker get executed?
I have a scenario where I want to execute a scheduled call via the scheduler pallet at block number n. This call will change certain storage items of pallet.
So before this storage changes, I want to ...
6
votes
2
answers
270
views
Get account transactions using Substrate API
I think Substrate API is really messy and difficult to understand. How could I get all the transactions for an account? And getting account by address is also counterintuitive: you need to make a ...
4
votes
2
answers
361
views
How to get historical substrate (extrinsic, events, etc) data using polkaDotJS API
PolkaDotJS API docs show to get extrinsic, events, etc data for a particular block. Is there a way to get all the extrinsic, events, etc data for the substrate network without having to get for each ...
3
votes
1
answer
383
views
How to check the status of a transaction (after sending)
I'm aware of using a callback in signAndSend or sign to verify if a transaction is finalized (like here: https://polkadot.js.org/docs/api/start/api.tx.subs/). Is there a way to do this after the ...
2
votes
3
answers
144
views
How do I find the gas consumed by a contracts extrinsic?
I am querying extrinsic data and I am able to fetch gasLimit and gasPrice out of Extrinsic.method.args. But how do I fetch the amount of gas used from an extrinsic?
3
votes
1
answer
229
views
How to subscribe to contract events using RPC?
I'm looking to subscribe to events emitted from a contract.
I am currently creating a storage key for System Events, subscribing to it and filtering the events to get the one emitted by the contract I ...
3
votes
3
answers
106
views
Query node for full history of an account's extrinsic/transaction records
I'm trying to get transaction history (ie. transfers) using just the account id. From my understanding the only way this can be done is if you go through every single block and look up the transaction ...
1
vote
1
answer
64
views
What's the Substrate's equivalent of receipts in Ethereum?
I want to check if a given extrinsic is executed successfully or not from a light client inside the enclave (aka Intel SGX). I am importing new blocks, iterating over the extrinsics I am interested in,...
3
votes
1
answer
81
views
How to filter the subscribed contracts events with their topics?
I need to subscribe to my smart-contract events (#[ink(event)]). So I state_subscribeStorage to "System.Events" storage key. But then I get all system events of all smart contracts in my ...
1
vote
1
answer
75
views
Is there a JSON-RPC method similar to `eth_getLogs`?
I was wondering if there is a JSON-RPC method similar to eth_getLogs.
What I would like to accomplish is to query all the events that meet a certain criteria, and that happened after a certain block. ...