I want to implement a function that will take transaction hash as an input parameter, then I need to check the transaction status and signer details

Can anyone help me how I can do this or any other way to implement the use case?

1 Answer 1


You mention the Rust Anchor Framework, but that's only used for on-chain programs. If you're trying to fetch a past transaction, you don't need Anchor, just the JSON RPC API. Specifically, you can use the getTransaction call: https://docs.solana.com/developing/clients/jsonrpc-api#gettransaction

If you're on-chain, you cannot access any past transactions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.