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

get transaction by transaction hash is not support #225

Open
eden-wang opened this issue Jul 15, 2021 · 8 comments
Open

get transaction by transaction hash is not support #225

eden-wang opened this issue Jul 15, 2021 · 8 comments

Comments

@eden-wang
Copy link

When I try to use /search/transactions, it returns 404 page not found. How can I get transaction only by transaction hash?

@atharen
Copy link

atharen commented Aug 5, 2021

I'm interested in getting this done, can I get an idea of what it would take?
I'm currently taking a look at the endpoint specified at coinbase/rosetta-sdk-go, which I assume is where this will start...

@atharen
Copy link

atharen commented Aug 9, 2021

I'll list current progress for anyone who is looking into this:

As of writing this comment, the current gateway implementation is based on rosetta-sdk-go v0.3.3 (as listed in the go modules file), whose corresponding server implementation does not support the Indexer (Search) API, which in future commits will be referenced through api_search.go (at least as of v0.6.10)

TLDR: It would be more suitable to implement this when the underlying Rosetta SDK implementation is updated with the upstream reference SDK.

@pro-wh
Copy link
Collaborator

pro-wh commented Mar 25, 2022

we went forward several versions of the Rosetta SDK in our 2.0.0 release. maybe now is a better time to look at this?

@PrernaPadhee
Copy link

we went forward several versions of the Rosetta SDK in our 2.0.0 release. maybe now is a better time to look at this?

I am unable to fetch transaction details. I am using the following API call :
curl --location --request POST '10.213.67.9:8080/block/transaction'
--header 'Content-Type: application/json'
--data-raw '{
"network_identifier": {
"blockchain": "Oasis",
"network": "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"
},
"block_identifier": {
"index": 8486594,
"hash": "ff9e6322a6c10a09fafbd2a53a5b9a8eb86776fe3e7f850fcf8a4f0e88bce5f4"
},
"transaction_identifier": {
"hash": "092af6d5f43f1107bee6e91ae2bfac38e1805507bd841f1b791c6631e80219ba"
}
}'

and the response i get is as follows:

{
"code": 13,
"message": "operation not implemented",
"retriable": false
}

I have tried to run other api calls against my node and all of them work fine. For example : /block and /accoount/balance

Can you confirm if the /block/transaction endpoint is available or not for fetching transaction details?

@pro-wh
Copy link
Collaborator

pro-wh commented May 11, 2022

Confirming that it's not available. You'll have to use a separate service to index transactions by hash. You can use an existing block explorer's API or run your own.

@ningcb
Copy link

ningcb commented May 13, 2022

That was Oasis mainnet upgrade. It does not have that block on chain. It is expected.

@pro-wh
Copy link
Collaborator

pro-wh commented May 13, 2022

The upgrade had come earlier on block 8048956

@ningcb
Copy link

ningcb commented May 13, 2022

In our rosetta node deployment, it has that block. We are using v2.2.1 oasis-rosetta-gateway. For block/transaction, it is not required by Rosetta spec. https://www.rosetta-api.org/docs/BlockApi.html#blocktransaction

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

5 participants