Skip to content

v2.1.0

Compare
Choose a tag to compare
@ninabarbakadze ninabarbakadze released this 21 Aug 08:53
· 17 commits to v2.x since this release
387aafe

Key Features

In this release, we introduce a lightweight transaction indexer as an alternative to the traditional KV indexer. This new indexer addresses the need for a more lightweight way of checking the status of a transaction.

Transaction status tracking:

The new tx_status RPC endpoint allows users to retrieve a transaction's status by its hash. The response includes a status field indicating whether the transaction is:

  • Committed:
    The transaction has been included in a block. The response also provides:
    • Block height
    • Transaction index within the block
    • Execution code
    • An error log if the transaction failed during execution
  • Pending:
    Still in the mempool, awaiting inclusion in a block.
  • Evicted:
    Removed from the mempool, typically due to being outbid in gas fees.
  • Unknown:
    Neither committed nor in the mempool.

Deprecation of broadcast_tx_commit:

  • The broadcast_tx_commit endpoint is now deprecated and will be removed in future versions. Users should instead use the new tx_status endpoint alongside broadcast_tx_sync or broadcast_tx_async.

Usage

The indexer can be used by interacting with the tx_status endpoint. Note: consensus nodes support this endpoint regardless of the indexer they have configured in config.toml

What's Changed

Full Changelog: v2.0.0...v2.1.0