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

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

Open
mgpai22 opened this issue Nov 18, 2024 · 2 comments
Open

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

mgpai22 opened this issue Nov 18, 2024 · 2 comments
Assignees

Comments

@mgpai22
Copy link

mgpai22 commented Nov 18, 2024

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.

@mgpai22 mgpai22 changed the title **[Endpoint Request]** [Endpoint Request] Nov 18, 2024
@mgpai22 mgpai22 changed the title [Endpoint Request] [Endpoint Request] assets/{asset}/transactions Nov 18, 2024
@satran004 satran004 assigned satran004 and unassigned satran004 Nov 22, 2024
@satran004
Copy link
Member

@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
Copy link
Author

mgpai22 commented Nov 27, 2024 via email

satran004 added a commit that referenced this issue Nov 27, 2024
… (db specific), refactor existing asset apis

Implemented `findTransactionsByAsset` in  `UtxoStorageReaderImpl`. Added H2 and PostgreSQL specific indexing script executions in `DBIndexService`. Introduced `AssetTransaction` domain class with necessary test cases and API updates, including deprecation warnings for old endpoints.
satran004 added a commit that referenced this issue Nov 28, 2024
…int refactoring (#408)

* fix: #399 Add serializer to convert amount from BigIn to String (#404)

* Blockfrost Block by number/hash api Response Format Mismatch (#405)

* fix: #402 Add next block info and confirmations to BlockDto

Enhanced the BlockDto by adding next block hash and confirmation count. Adjusted the BlockController to populate these new fields. Included new API tests to verify the additional fields in the response.

* Bump yaci version

* fix: #399 Refactor 'amount' handling and add API test for UTxOs (#406)

Refactor the 'amount' field to use the new 'Amount' class instead of 'Amt' across the transaction domain and service layers. Added a new API test to verify the UTXOs retrieval by transaction hash.

* feat: #400 Add asset transaction support and enhance indexing scripts (db specific), refactor existing asset apis

Implemented `findTransactionsByAsset` in  `UtxoStorageReaderImpl`. Added H2 and PostgreSQL specific indexing script executions in `DBIndexService`. Introduced `AssetTransaction` domain class with necessary test cases and API updates, including deprecation warnings for old endpoints.
satran004 added a commit that referenced this issue Nov 28, 2024
…int refactoring (#408)

* fix: #399 Add serializer to convert amount from BigIn to String (#404)

* Blockfrost Block by number/hash api Response Format Mismatch (#405)

* fix: #402 Add next block info and confirmations to BlockDto

Enhanced the BlockDto by adding next block hash and confirmation count. Adjusted the BlockController to populate these new fields. Included new API tests to verify the additional fields in the response.

* Bump yaci version

* fix: #399 Refactor 'amount' handling and add API test for UTxOs (#406)

Refactor the 'amount' field to use the new 'Amount' class instead of 'Amt' across the transaction domain and service layers. Added a new API test to verify the UTXOs retrieval by transaction hash.

* feat: #400 Add asset transaction support and enhance indexing scripts (db specific), refactor existing asset apis

Implemented `findTransactionsByAsset` in  `UtxoStorageReaderImpl`. Added H2 and PostgreSQL specific indexing script executions in `DBIndexService`. Introduced `AssetTransaction` domain class with necessary test cases and API updates, including deprecation warnings for old endpoints.
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