Solana
Solana
Solana
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
getSignaturesForAddress returns the signatures of transactions that touched a given Solana account — a SOL wallet, an SPL token account, or a program — ordered newest first. Each entry carries the signature, slot, any error, an optional memo, blockTime, and confirmationStatus, giving you a compact activity feed without pulling full transaction bodies. Pass a base-58 address and an optional config to set limit, before, and until for paging. Query it on TheRPC at https://solana.therpc.io/YOUR_API_KEY, then fetch any signature in detail with getTransaction.
before to the last signature of the previous page and requesting the next batch.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | address | string | 是 | Base-58 account address to list history for. |
| 2 | config | object | 否 | Options: commitment (confirmed|finalized), minContextSlot, limit (1–1000, default 1000), before (sig), until (sig). |
| 类型 | 描述 |
|---|---|
| array | Array of { signature, slot, err, memo, blockTime, confirmationStatus }. |
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32602 | Invalid params | A param is missing, of the wrong type, or malformed (e.g. a non-base58 pubkey or a bad config field). |
-32603 | Internal error | The node hit an internal error serving the request — retry, and reduce the requested range/encoding if it persists. |
before set to the last signature you received and repeat until the result is empty.commitment option accepts only confirmed or finalized here; processed is not valid for this method.