question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to get extrinsic status?

See original GitHub issue

Hi, currently I need to monitor the network for Dot deposit and withdrawal, the only way I know now is using the method getBlock (api.rpc.chain.getBlock) then loop through the extrinsic in the block, but the object does not include information such as feeUsed and status. For fee I think I can get from this method: api.rpc.payment.queryInfo(), but I don’t know to query the status information of the extrinsic. So how to get extrinsic status?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jacogrcommented, Sep 8, 2020

100%

1reaction
anhcao142commented, Sep 8, 2020

Nevermind @jacogr, I kinda managed how to query events by scanning through the code in Substrate Api Sidecar, it’s api.query.system.events.at(blockHash).

So to calculate the total fee, I just need to sum treasury.Deposit and balances.Deposit if any of them exist right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how can I read an extrinsic result status as fail or success
I am trying get this info for this transaction and I would like to catch this ... I updated the package but result...
Read more >
Extrinsic Motivation: Definition and Examples - Verywell Mind
Extrinsic motivation involves behaviors that are driven by the promise of an external reward. By contrast, intrinsic motivation comes from ...
Read more >
To get the extrinsic data from the extrinsic Hash
There are a couple ways you could work with that. If you have the extrinsic hash and the block number than you could...
Read more >
Intrinsic vs. Extrinsic Motivation, Explained - Forge - Medium
Extrinsic motivation relies on factors outside ourselves as incentives for action. Examples of extrinsic motivators include the pursuit of money, social status, ...
Read more >
Extrinsic Motivation: Why You Make Terrible Life Choices
Examples of extrinsic motivators include the pursuit of money, social status, praise, food, material wealth, or fame. Other examples of extrinsic motivators ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found