Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add locate_transaction to the CLI #182

Open
thobson88 opened this issue Jun 8, 2024 · 0 comments
Open

Add locate_transaction to the CLI #182

thobson88 opened this issue Jun 8, 2024 · 0 comments

Comments

@thobson88
Copy link
Collaborator

thobson88 commented Jun 8, 2024

Given a DID, it's sometimes useful to be able to identify the corresponding Bitcoin transaction in which it was published.

The locate_transaction in trustchain-ion already does this, so we should add a CLI command for convenience.

For instance, the root DID in our current demo network is did:ion:test:EiBJ8o9Bh-6ToxK3hVyZEHIspTEAqnURQy-7NAVFrr9_bw, for which locate_transaction returns the block hash and transaction index:

000000000000005c45c1d850efc69fd57d56b87009d539838646d3891037451c
5

(Even more convenient would be the txid.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant