Skip to content

feat(rpc): Added starknet_getTransactionStatus and removed starknet_pendingTransactions#1299

Merged
tdelabro merged 23 commits intoAbdelStark:mainfrom
antiyro:feat/starknet_getTransactionStatus
Dec 6, 2023
Merged

feat(rpc): Added starknet_getTransactionStatus and removed starknet_pendingTransactions#1299
tdelabro merged 23 commits intoAbdelStark:mainfrom
antiyro:feat/starknet_getTransactionStatus

Conversation

@antiyro
Copy link
Copy Markdown
Contributor

@antiyro antiyro commented Dec 6, 2023

feat(rpc): Added starknet_getTransactionStatus and removed starknet_pendingTransactions

This PR solves the implementation of a new call: starknet_getTransactionStatus and the removal of starknet_pendingTransactions according to the v0.5.1 RPC specs described in #1291

starknet_getTransactionStatus

Gets the Transaction Status, Including Mempool Status and Execution Details

This method retrieves the status of a specified transaction. It provides information on
whether the transaction is still in the mempool, has been executed, or dropped from the
mempool. The status includes both finality status and execution status of the
transaction.

Arguments

  • transaction_hash - The hash of the transaction for which the status is requested.

Returns

  • transaction_status - An object containing the transaction status details:
  • finality_status: The finality status of the transaction, indicating whether it is
    confirmed, pending, or rejected.
  • execution_status: The execution status of the transaction, providing details on the
    execution outcome if the transaction has been processed.

Expected behavior

image

Notes

Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs Outdated
Comment thread crates/client/rpc/src/lib.rs
Comment thread crates/client/rpc-core/Cargo.toml
@tdelabro tdelabro merged commit 17f8a0f into AbdelStark:main Dec 6, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants