Skip to content

Request access

Tell us about your processing, and we'll reply by email.

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=.

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.

NameInTypeDescription
limitqueryintegerHow many rows a page holds. From 1 to 200. Default: 50.
cursorquerystringThe next_cursor of the previous page; none for the first page.
chain_idqueryChainIDOnly this chain.
kindquerystringOnly transactions of this kind. One of: sweep, revocation.
statusquerystringOnly transactions with this status. One of: pending, mined, reverted, dropped.
tx_hashqueryTxHashOnly the transaction with this hash: the mined one, or one it had before it was replaced at a higher fee.
accountqueryAddressOnly transactions that carried a sweep or a revocation of this deposit address.
hot_walletqueryAddressOnly transactions that swept to this hot wallet.
list_idquerystring (uuid)Only the transactions the sweep list with this id was sent in, those that reverted or were dropped included.
StatusDescription
200A page of transactions. Returns the fields below.
400invalid_query: a query parameter is not valid; message says which.
401unauthorized: no API key, an unknown one or a revoked one.
403partner_disabled: your account is disabled.
FieldTypeDescription
items requiredarray of Transaction
next_cursor requiredNextCursorThe cursor of the next page; null on the last page.
Terminal window
curl "https://api-testnet.portuna.io/v1/transactions?chain_id=11155111&kind=sweep&limit=2" \
-H "Authorization: Bearer $PORTUNA_API_KEY"
200 OK
{
"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/v1/transactions/{id}

NameInTypeDescription
id requiredpathTransactionIDThe transaction’s id.
StatusDescription
200The transaction. Returns Transaction.
401unauthorized: no API key, an unknown one or a revoked one.
403partner_disabled: your account is disabled.
404not_found: there is no such object in your account.
Terminal window
curl "https://api-testnet.portuna.io/v1/transactions/48213" \
-H "Authorization: Bearer $PORTUNA_API_KEY"
200 OK
{
"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
}