Skip to content

Add stellar tx fetch events cmd#2157

Merged
elizabethengelman merged 27 commits into
mainfrom
feat/tx-events
Oct 15, 2025
Merged

Add stellar tx fetch events cmd#2157
elizabethengelman merged 27 commits into
mainfrom
feat/tx-events

Conversation

@elizabethengelman
Copy link
Copy Markdown
Contributor

@elizabethengelman elizabethengelman commented Aug 27, 2025

What

Closes #2071

stellar tx fetch events --hash bffe7a918bd4d4f9ecff98829ded7a5567288eb8346ab8df761d7609502af449 --network local --output json-formatted

{
  "contract_events": [
    [
      {
        "ext": "v0",
        "contract_id": "CCFK2772GEZESMSXSWA3YN5Q6EBR6FAPGWRMHTQJZ4B5DL7BJW6CKMYA",
        "type_": "contract",
        "body": {
          "v0": {
            "topics": [
              {
                "symbol": "hello"
              },
              {
                "symbol": ""
              }
            ],
            "data": {
              "symbol": "hi"
            }
          }
        }
      }
    ]
  ],
  "diagnostic_events": [],
  "transaction_events": [
    {
      "stage": "before_all_txs",
      "event": {
        "ext": "v0",
        "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
        "type_": "contract",
        "body": {
          "v0": {
            "topics": [
              {
                "symbol": "fee"
              },
              {
                "address": "GBFOUPJKLSVZM2ND55AHQCVXVEAWUGO5K4XTWIV4ATYIGJ6V6EFSZVEY"
              }
            ],
            "data": {
              "i128": "52348"
            }
          }
        }
      }
    },
    {
      "stage": "after_all_txs",
      "event": {
        "ext": "v0",
        "contract_id": "CDMLFMKMMD7MWZP3FKUBZPVHTUEDLSX4BYGYKH4GCESXYHS3IHQ4EIG4",
        "type_": "contract",
        "body": {
          "v0": {
            "topics": [
              {
                "symbol": "fee"
              },
              {
                "address": "GBFOUPJKLSVZM2ND55AHQCVXVEAWUGO5K4XTWIV4ATYIGJ6V6EFSZVEY"
              }
            ],
            "data": {
              "i128": "-38852"
            }
          }
        }
      }
    }
  ]
}

Why

To allow a user to fetch all events for a given transaction

Known limitations

N/A

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Aug 27, 2025
@elizabethengelman elizabethengelman self-assigned this Aug 28, 2025
@janewang janewang moved this from Backlog (Not Ready) to Todo (Ready for Dev) in DevX Sep 3, 2025
@elizabethengelman elizabethengelman marked this pull request as ready for review September 8, 2025 16:40
Comment thread cmd/soroban-cli/src/commands/tx/fetch/events.rs
@elizabethengelman elizabethengelman merged commit a8e02c7 into main Oct 15, 2025
29 checks passed
@elizabethengelman elizabethengelman deleted the feat/tx-events branch October 15, 2025 20:26
@github-project-automation github-project-automation Bot moved this from Todo (Ready for Dev) to Done in DevX Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Create stellar tx events command (after p23)

3 participants