Skip to content

Add token, wallet, and program dump commands - #104

Merged
Leomrqdd merged 4 commits into
mainfrom
cli-token-dump
Nov 26, 2026
Merged

Leomrqdd merged 4 commits into
mainfrom
cli-token-dump

Conversation

@Leomrqdd

Copy link
Copy Markdown
Collaborator

Summary

  • Add token-dump, wallet-dump, and program-dump to the CLI. With no explicit archive source, each command reads the public Foundation epoch directory.
  • token-dump writes one JSON line per recorded token balance, including the transaction signature, and stops when execution status or token data is missing. Its source options, including --archive-url and --mint, are declared on that command.
  • wallet-dump and program-dump select a required signer or an invoked program with --key. An explicit epoch directory uses --archive-url.

Test plan

  • blockzilla token-dump --epoch 200 --max-blocks 20 --mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v writes 1334 lines from the Foundation epoch, including the known first signature.
  • blockzilla program-dump --epoch 1095 --max-blocks 20 --key 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P writes 619 lines.
  • blockzilla wallet-dump --epoch 1095 --max-blocks 20 --key 2t53LvZfskcpXkdwLaBnfZLbNgyVHPu2BNFpcRBaEBhM completes with no matching rows.
  • CLI unit tests cover token rows, the mint parser, and the wallet/program argument forms.

@Leomrqdd
Leomrqdd merged commit c8265ad into main Nov 26, 2026
6 checks passed
@Leomrqdd
Leomrqdd deleted the cli-token-dump branch November 26, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant