API reference
Transactions
The transactions of your gas wallet that carry sweeps or revocations, one per batch: its hot wallets, how its sweeps fared, its gas and fees. Any of its hashes finds it, and its sweeps are GET /v1/sweeps?transaction_id=.
List transactions
Section titled “List transactions”GET/v1/transactions
Your gas wallet’s transactions that carry sweeps or revocations, newest first: one row per batch. Its sweeps are
GET /v1/sweeps?transaction_id=, its revocations GET /v1/revocations?transaction_id=. The filters combine.
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows a page holds. From 1 to 200. Default: 50. |
cursor | query | string | The next_cursor of the previous page; none for the first page. |
chain_id | query | ChainID | Only this chain. |
kind | query | string | Only transactions of this kind. One of: sweep, revocation. |
status | query | string | Only transactions with this status. One of: pending, mined, reverted, dropped. |
tx_hash | query | TxHash | Only the transaction with this hash: the mined one, or one it had before it was replaced at a higher fee. |
account | query | Address | Only transactions that carried a sweep or a revocation of this deposit address. |
hot_wallet | query | Address | Only transactions that swept to this hot wallet. |
list_id | query | string (uuid) | Only the transactions the sweep list with this id was sent in, those that reverted or were dropped included. |
Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | A page of transactions. Returns the fields below. |
400 | invalid_query: a query parameter is not valid; message says which. |
401 | unauthorized: no API key, an unknown one or a revoked one. |
403 | partner_disabled: your account is disabled. |
Response body
Section titled “Response body”| Field | Type | Description |
|---|---|---|
items required | array of Transaction | |
next_cursor required | NextCursor | The cursor of the next page; null on the last page. |
Example request
Section titled “Example request”curl "https://api-testnet.portuna.io/v1/transactions?chain_id=11155111&kind=sweep&limit=2" \ -H "Authorization: Bearer $PORTUNA_API_KEY"Example response
Section titled “Example response”{ "items": [ { "id": 48402, "chain_id": 11155111, "kind": "sweep", "status": "pending", "hash": "0x7c41e09b2d5f8a63c1e4b7d920f53a8e6b1c4d7f0a2e5b8c3d6f9a1e4b7c2d5f", "block_number": null, "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769" ], "sweeps": { "total": 12, "processing": 12, "swept": 0, "failed": 0, "requeued": 0 }, "revocations": null, "gas_used": null, "gas_cost": null, "fees": null, "created_at": "2026-10-12T11:40:08Z", "mined_at": null, "list_id": null }, { "id": 48213, "chain_id": 11155111, "kind": "sweep", "status": "mined", "hash": "0xe2a3d8ffdcd7c4ed8a2389a59ce91622863c495d052a7571206bb494919dc35b", "block_number": 11872054, "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769", "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce" ], "sweeps": { "total": 50, "processing": 0, "swept": 49, "failed": 1, "requeued": 0 }, "revocations": null, "gas_used": 3159990, "gas_cost": "3791988000000000", "fees": "817530000000000", "created_at": "2026-10-11T07:02:31Z", "mined_at": "2026-10-11T07:03:02Z", "list_id": null } ], "next_cursor": "NDgyMTM"}Get a transaction
Section titled “Get a transaction”GET/v1/transactions/{id}
Parameters
Section titled “Parameters”| Name | In | Type | Description |
|---|---|---|---|
id required | path | TransactionID | The transaction’s id. |
Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | The transaction. Returns Transaction. |
401 | unauthorized: no API key, an unknown one or a revoked one. |
403 | partner_disabled: your account is disabled. |
404 | not_found: there is no such object in your account. |
Example request
Section titled “Example request”curl "https://api-testnet.portuna.io/v1/transactions/48213" \ -H "Authorization: Bearer $PORTUNA_API_KEY"Example response
Section titled “Example response”{ "id": 48213, "chain_id": 11155111, "kind": "sweep", "status": "mined", "hash": "0xe2a3d8ffdcd7c4ed8a2389a59ce91622863c495d052a7571206bb494919dc35b", "block_number": 11872054, "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769", "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce" ], "sweeps": { "total": 50, "processing": 0, "swept": 49, "failed": 1, "requeued": 0 }, "revocations": null, "gas_used": 3159990, "gas_cost": "3791988000000000", "fees": "817530000000000", "created_at": "2026-10-11T07:02:31Z", "mined_at": "2026-10-11T07:03:02Z", "list_id": null}