Skip to content

feat: add mptoken_issuance_history RPC - #3141

Open
BryanJ1ang wants to merge 2 commits into
XRPLF:developfrom
BryanJ1ang:brjiang-mpt-rpc-handler
Open

feat: add mptoken_issuance_history RPC#3141
BryanJ1ang wants to merge 2 commits into
XRPLF:developfrom
BryanJ1ang:brjiang-mpt-rpc-handler

Conversation

@BryanJ1ang

Copy link
Copy Markdown
Contributor

feat: add mptoken_issuance_history RPC

Summary

Adds mptoken_issuance_history, a Clio-only method that returns the transaction history for a given MPT issuance — the MPT-scoped sibling of nft_history. You can optionally filter by account and/or tx_type.

The index tables, backend fetch methods, and live ETL indexing landed earlier; this wires up the handler on top of them.

The handler

  • Routes to fetchMPTokenIssuanceTransactions or fetchAccountMPTokenIssuanceTransactions depending on whether account is set. When tx_type is given, it filters on TransactionType post-fetch, exactly like account_tx.
  • Follows the nft_history/account_tx conventions for ledger ranges, markers, binary, forward, and limit ([1,100], default 50), including api-version response branching.
  • Gated on backfill completion so it never returns partial history: until this node's MPTTransactionHistoryMigrator reports Migrated, requests get notReady with a message pointing at the --migrate command. Once migrated, the result is cached and the check is skipped — the method turns on automatically, no restart.

@BryanJ1ang
BryanJ1ang force-pushed the brjiang-mpt-rpc-handler branch from 12615d0 to f3d1c1f Compare July 29, 2026 15:03
@BryanJ1ang
BryanJ1ang force-pushed the brjiang-mpt-rpc-handler branch from f3d1c1f to 05f2826 Compare July 29, 2026 15:15
@yinyiqian1

Copy link
Copy Markdown
Collaborator

The handler PR should not contain the migration code

@BryanJ1ang
BryanJ1ang marked this pull request as ready for review July 30, 2026 02:01
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.

2 participants