-
Notifications
You must be signed in to change notification settings - Fork 131
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
Allow looking up transactions via scripthash #7
Conversation
I'm not really sure we really need |
I agree - this way the backend logic will be simpler. |
This adds the following new endpoints: - GET /scripthash/:scripthash - GET /scripthash/:scripthash/txs - GET /scripthash/:scripthash/utxo
1db117d
to
16891ae
Compare
I force-pushed 16891ae which removes lookup by scriptpubkey/pubkey and leaves just scripthash/address. |
Cherry-picked to liquid_e in b631e3f. |
Hi @shesek do you have any working example, I tried with https://blockstream.info/api/scripthash/0054c22ddfa26c9fd050414919dff5320c45a33e587c8e1f3e but I got a "502 Bad Gateway". Thanks :-) |
@shesek solved! the input must be the sha256 of the hextobin of field
:-) |
Fix crashes for unknown Outpoint
This adds the following new endpoints -
Lookup by the scriptpubkey hash:
GET /scripthash/:scripthash
GET /scripthash/:scripthash/txs
GET /scripthash/:scripthash/utxo
Lookup by the scriptpubkey hex:GET /scriptpubkey/:scripthex
GET /scriptpubkey/:scripthex/txs
GET /scriptpubkey/:scripthex/utxo
Lookup by the pubkey (p2pk only):GET /pubkey/:pubkey
GET /pubkey/:pubkey/txs
GET /pubkey/:pubkey/utxo