docs: add getTransactionsForAddress Solana API spec#1173
docs: add getTransactionsForAddress Solana API spec#1173trevoraron wants to merge 1 commit intomainfrom
Conversation
Adds the new getTransactionsForAddress JSON-RPC method with support for pagination, sort order, and filtering by status, token account activity, slot range, and block time range.
🔗 Preview Mode
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 15024dc159
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| oneOf: | ||
| - $ref: "#/components/schemas/SignatureInfo" | ||
| - $ref: "#/components/schemas/TransactionDetails" |
There was a problem hiding this comment.
Replace oneOf with anyOf for transaction result union
GetTransactionsForAddressResult.data.items currently uses oneOf for SignatureInfo vs TransactionDetails, but both referenced schemas are permissive objects with no required discriminator fields. A valid signatures payload can satisfy both branches (for example, it has slot/blockTime and extra fields are allowed), which causes oneOf validation to fail and breaks downstream schema validation/codegen for legitimate responses.
Useful? React with 👍 / 👎.
Summary
getTransactionsForAddressto the Solana OpenRPC specNew schemas (
transaction.yaml)GetTransactionsForAddressConfig—transactionDetails,sortOrder,limit,paginationToken,before,until,encoding,maxSupportedTransactionVersion,filtersGetTransactionsForAddressFilters—status(any/succeeded/failed),blockTime,slot,tokenAccountsRangeFilter— reusablegte/lteobject used for slot and blockTime range filtersGetTransactionsForAddressResult—dataarray (signatures or full tx objects) + nullablepaginationTokenFiles changed
src/openrpc/chains/_components/solana/methods.yaml— method definition + examplesrc/openrpc/chains/_components/solana/transaction.yaml— new schemassrc/openrpc/chains/solana/solana.yaml—$refadded in alphabetical ordercontent/api-reference/solana/solana-api-overview.mdx— method added to overview table