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

Expand /account_utxos with assets list and other related fields #207

Closed
xray-robot opened this issue Jun 20, 2023 · 2 comments
Closed

Expand /account_utxos with assets list and other related fields #207

xray-robot opened this issue Jun 20, 2023 · 2 comments

Comments

@xray-robot
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There is no list of native tokens in the UTXO list

Describe the solution you'd like
Add optional _asset_list parameter to the /account_utxos endpoint to expand asset_list field

Example:

export type AccountUTXOs {
  tx_hash: string
  tx_index: number
  address: string
  value: string
  block_height: number | null
  block_time: number
  asset_list: { // expand this field if '_asset_list: true'
    policy_id: string
    asset_name: string | null
    fingerprint: string
    decimals: number
    quantity: string
  }[]
}
@xray-robot
Copy link
Contributor Author

Perhaps we should add a full list of UTXO related fields, as in the /address_info endpoint:

Screenshot 2023-06-20 at 10 36 19

@xray-robot xray-robot changed the title /account_utxos assets list Expand /account_utxos with assets list and other related fields Jun 20, 2023
@rdlrt
Copy link
Contributor

rdlrt commented Jun 20, 2023

Will be part of #186 , but need a proper release at dbsync before work starts here, as there will no longer be a requirement to track tx_in (for most part atleast)

@rdlrt rdlrt closed this as completed Jun 20, 2023
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

2 participants