Skip to content

feat/starknet_getTransactionByBlockIdAndIndex #30

Description

@antiyro

Issue: Implement starknet_getTransactionByBlockIdAndIndex RPC Call

Description:
Get the details of a transaction by a given block id and index. If no transaction is found, null is returned.

Parameters:

  • block_id: The hash of the requested block, or number (height) of the requested block, or a block tag. This parameter is required.
  • index: The index in the block to search for the transaction. This parameter is required.

Expected Result:
The details of the transaction given by the identified block and index in that block, including its hash.

Potential Errors:

  • BLOCK_NOT_FOUND: The specified block could not be found.
  • INVALID_TXN_INDEX: The specified transaction index in the block is invalid.

Testing:
Initial testings can be found here. However, these should not be considered complete and improvements are welcome.

Resources:

Comments:
Please comment below for coordination.

Metadata

Metadata

Assignees

Labels

RPCRPC implementation related issuesstale

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions