bloxbean / yaci-store

A Cardano datastore implementation using Yaci
https://store.yaci.xyz/
MIT License
21 stars 8 forks source link

[Endpoint Request] assets/{asset}/transactions #400

Open mgpai22 opened 1 week ago

mgpai22 commented 1 week ago

Please add this endpoint: https://docs.blockfrost.io/#tag/cardano--assets/GET/assets/{asset}/transactions

This will make it easy to grab utxo by singleton (a token where only one quantity exists)

Remarks from @satran004

I will check, but we need to evaluate how this API performs with mainnet data, as the current utxo table may not be efficient for this query. There is another table that can be used to retrieve this data, but it is not currently enabled in the DevKit profile. Some analysis is needed to determine the tradeoff.

satran004 commented 5 days ago

@mgpai22

I am working on this enhancement.

Below is the Blockfrost response format. Currently, we can return everything except "tx_index" Will that work for your current use case?

We plan to add "tx_index" later, but may not be possible in the next release.

[
 {
    "tx_hash": "8788591983aa73981fc92d6cddbbe643959f5a784e84b8bee0db15823f575a5b",
    "tx_index": 6,
    "block_height": 69,
    "block_time": 1635505891
  }
]
mgpai22 commented 5 days ago

This will work for now, but tx_index is certainly needed!

On Tue, Nov 26, 2024 at 9:53 AM Satya @.***> wrote:

@mgpai22 https://github.com/mgpai22

I am working on this enhancement.

Below is the Blockfrost response format. Currently, we can return everything except "tx_index" Will that work for your current use case?

We plan to add "tx_index" later, but may not be possible in the next release.

[ { "tx_hash": "8788591983aa73981fc92d6cddbbe643959f5a784e84b8bee0db15823f575a5b", "tx_index": 6, "block_height": 69, "block_time": 1635505891 } ]

— Reply to this email directly, view it on GitHub https://github.com/bloxbean/yaci-store/issues/400#issuecomment-2501023067, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIW5BQZNHDLPSXJDOT7YLD2CSDM3AVCNFSM6AAAAABSAHCAQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBRGAZDGMBWG4 . You are receiving this because you were mentioned.Message ID: @.***>