Skip to content

Conversation

@jmhrpr
Copy link
Contributor

@jmhrpr jmhrpr commented Sep 14, 2022

Implement filtering by address payment or delegation part, specified by hex or bech32. This will match any address which uses the given payment or delegation part. Note that using bech32 is more precise in the sense as this encoding contains information about whether the hash is of a pubkey or a script.

        {
          "type": "TxByHash",
          "key_prefix": "c1",
          "filter": {
            "address": {
                "payment_bech32": "addr_vkh1wdkle2sprqsuklt34474g6n4ps7k6pv6zwe4644uxmg7xj54y87"
            }
        }

You can use the IO address demo to inspect parts of an address.

The bech32 prefixes use those from CIP5:

addr_vkh = payment part pubkeyhash
addr_shared_vkh = payment part scripthash
stake_vkh = stake part pubkeyhash
stake_shared_vkh = stake part script hash

@jmhrpr jmhrpr requested a review from scarmuega as a code owner September 14, 2022 09:50
@scarmuega scarmuega merged commit 0fee5fe into txpipe:main Sep 14, 2022
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

Successfully merging this pull request may close these issues.

2 participants