pycardano icon indicating copy to clipboard operation
pycardano copied to clipboard

FR: Generalize ChainContext.utxos for TransactionInput and addresses

Open nielstron opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. In general most backends are able to map a specific transaction id to a UTxO and an address to a set of UTxOs. Some backends even provide optimized code to fetch specific patterns (like kupo) or to fetch several addresses (like the cli)

Describe the solution you'd like Extending ChainContext.utxos to support all of

  • str (bech32 encoded address, hex encoded address, kupo pattern or txid#index)
  • Address
  • TransactionInput
  • List of any of the above

And use additional context for optimization.

Describe alternatives you've considered None

Additional context None

nielstron avatar Apr 14 '23 09:04 nielstron