API reference
Objects
The objects the API returns and accepts. Fields that are not required are left out of a response when they have no value.
| Field | Type | Description |
|---|---|---|
error required | object | |
error.code required | string | What went wrong. Stable, so branch on it. |
error.message required | string | The details, for people. It may change. |
error.details | object | What a client may act on besides the code, for some codes: the cause of a token’s refusal, with blocked: true when the check put the token on the blocklist for every account; the category and public_note of a blocked token; the items of a sweep list that are invalid or whose external_id is taken, max items of a list, and the max_items that fit in one transaction. |
Address
Section titled “Address”A 0x-hex address, in any case in requests and checksummed (EIP-55) in responses.
Type: string. Format: ^0x[0-9a-fA-F]{40}$. Example: 0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769.
Amount
Section titled “Amount”An integer in the smallest units, as a string.
Type: string. Format: ^[0-9]+$. Example: 1000000.
ChainID
Section titled “ChainID”The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC
with a live key.
Type: integer (int64). Example: 11155111, 97.
An amount of gas.
Type: integer (int64).
NextCursor
Section titled “NextCursor”The cursor of the next page; null on the last page.
Type: string \| null.
TxHash
Section titled “TxHash”A transaction hash, in any case in requests and in lower case in responses.
Type: string. Format: ^0x[0-9a-fA-F]{64}$. Example: 0x9c1f3e7a5b2d4c6e8f0a1b3c5d7e9f1a2b4c6d8e0f1a3b5c7d9e1f2a4b6c8d0e.
TransactionID
Section titled “TransactionID”The id of a transaction, as in GET /v1/transactions.
Type: integer (int64). Example: 48213.
LedgerKind
Section titled “LedgerKind”gas: the gas of a transaction of your gas wallet; fee: the fee for a sweep; fee_charge: a charge made
under your agreement; fee_credit: a credit made under your agreement, which reduces the fees due;
withdrawal: fees withdrawn from the gas wallet, together with the withdrawal’s gas; topup: a top-up of the
gas wallet, found by the balance reconciliation; payout: available balance paid out to one of your hot
wallets, its gas being a gas entry of the same transaction.
Type: string.
LedgerEntry
Section titled “LedgerEntry”A change of your gas wallet’s balance, or of the fees it holds.
| Field | Type | Description |
|---|---|---|
id required | integer (int64) | |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
kind required | LedgerKind | gas: the gas of a transaction of your gas wallet; fee: the fee for a sweep; fee_charge: a charge made under your agreement; fee_credit: a credit made under your agreement, which reduces the fees due; withdrawal: fees withdrawn from the gas wallet, together with the withdrawal’s gas; topup: a top-up of the gas wallet, found by the balance reconciliation; payout: available balance paid out to one of your hot wallets, its gas being a gas entry of the same transaction. One of: gas, fee, fee_charge, fee_credit, withdrawal, topup, payout. |
amount required | string | Wei with a sign: plus for topup and fee_credit, minus for gas, fees, charges, withdrawals and payouts. Format: ^-?[0-9]+$. |
tx_hash required | string | null | The transaction of the entry; null for top-ups, charges and credits. |
sweep_id required | string | null (uuid) | The sweep a fee is for; null for other kinds. |
note required | string | null | A note on charges and credits; for top-ups, the blocks the reconciliation covered. |
created_at required | string (date-time) |
UsageDay
Section titled “UsageDay”Your activity on one chain in one UTC day.
| Field | Type | Description |
|---|---|---|
date required | string (date) | The UTC day. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
sweeps_done required | integer | Sweeps created that day that ended swept. |
sweeps_failed required | integer | Sweeps created that day that ended failed, having reverted on chain or run out of attempts. |
sweeps_rejected required | integer | Sweeps created that day that ended rejected: they were never sent, because a check before sending kept failing. |
revocations_done required | integer | Revocations created that day that ended revoked. |
gas_spent required | Amount | The gas of your gas wallet’s transactions that day, in wei, fee withdrawals aside. |
fees required | string | Fees and charges accrued that day minus credits, in wei; below zero when the credits exceed them. Format: ^-?[0-9]+$. |
MonthlyReport
Section titled “MonthlyReport”Your sweeps of one UTC month against their conventional costs, per chain and token.
| Field | Type | Description |
|---|---|---|
month required | string | The month, YYYY-MM. |
from required | string (date-time) | The month’s first moment, UTC. |
to required | string (date-time) | The next month’s first moment, UTC; sweeps settled before it count. |
items required | array of ReportItem |
ReportItem
Section titled “ReportItem”What your sweeps of one token on one chain came to in the month. Amounts are wei of the chain’s native coin,
each sweep at its batch’s gas price; gas is in gas units. savings = conventional_cost − gas_cost −
fee.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
token required | string | The token as sweeps name it: the listed token’s ticker or the native coin’s, or the contract address of a token you added. |
token_address | Address | The token’s contract address; absent for the native coin. |
token_symbol | string | The listed token’s ticker, or the symbol a token you added gives itself. |
sweeps required | object | The swept sweeps, by what the deposit address needed. |
sweeps.total required | integer | All swept sweeps. |
sweeps.repeat required | integer | The address was already delegated. |
sweeps.first required | integer | The authorization delegated the address, which had an account. |
sweeps.first_new required | integer | The authorization delegated the address and created its account. |
baselines required | array of object | The conventional cost of the swept sweeps by the version of the token’s conventional cost they were priced with: several when a token you added was measured again during the month. |
baselines[].version required | integer | null | The version of the conventional cost of a token you added; null for a base token’s. |
baselines[].sweeps required | integer | The swept sweeps priced with it. |
baselines[].conventional_gas required | Gas | An amount of gas. |
baselines[].conventional_cost required | Amount | The conventional cost at the batches’ gas prices, in wei. |
conventional_gas required | Gas | The conventional cost: the same sweeps as conventional sweeps, top-up and transfer, in gas. |
conventional_cost required | Amount | The same at the batches’ gas prices, in wei. |
gas required | Gas | Actual: the swept sweeps’ share of the batch gas. |
gas_cost required | Amount | The same in wei, which your gas wallet paid. |
fee_gas required | Gas | The fees in gas. |
fee required | Amount | The fees in wei. |
savings_gas required | integer (int64) | The conventional cost in gas less the gas and the fees; below zero if the sweeps cost more. |
savings required | string | Savings: conventional_cost less gas_cost and fee, in wei; below zero if the sweeps cost more. Format: ^-?[0-9]+$. |
paid_bps required | integer | null | The share of the conventional cost you paid for the swept sweeps, gas and fees, in basis points: at most your rate where the fee is above zero. null without a conventional cost. |
failed required | integer | Sweeps of the token that failed in a mined batch; they are not in the sums above. |
failed_gas required | Gas | The failed sweeps’ share of the batch gas. |
failed_gas_cost required | Amount | The same in wei; failed sweeps pay no fee. |
WebhookDelivery
Section titled “WebhookDelivery”A webhook event and how its delivery went.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, as in the delivery. |
event required | string | The event type. |
status required | string | pending: being delivered, or waiting for the next attempt; delivered: your endpoint responded with a 2xx; failed: the attempts ran out, or the webhook was deleted. One of: pending, delivered, failed. |
attempts required | integer | Attempts made so far. |
last_status_code required | integer | null | The HTTP status of your endpoint’s response to the last attempt; null if it did not respond. |
last_error required | string | null | Why the last attempt failed; null if it did not. status <code>: your endpoint responded with another status. timeout, connection refused, connection reset, connection closed, DNS lookup failed, TLS error, connection failed: it did not respond; private address refused: its host resolves to an address that is not public. webhook removed: the webhook was deleted. internal: a failure on our side. |
created_at required | string (date-time) | When the event happened. |
delivered_at required | string | null (date-time) | When the event was delivered; null until then. |
next_attempt_at required | string | null (date-time) | When the next attempt is due; only for pending. |
Balance
Section titled “Balance”Your gas wallet and its balance on each chain.
| Field | Type | Description |
|---|---|---|
gas_wallet required | Address | Your gas wallet, the same address on every chain. |
chains required | array of object | |
chains[].chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
chains[].name required | string | The chain’s name. |
chains[].native required | string | The ticker of the chain’s native coin. |
chains[].balance | Amount | The gas wallet’s balance, in wei; absent when error is set. |
chains[].fees_accrued required | Amount | All fees and charges accrued on this chain minus credits, in wei. |
chains[].fees_withdrawn required | Amount | Fees withdrawn so far, with the gas of their withdrawals, in wei. |
chains[].fees_due required | Amount | Fees accrued and not withdrawn yet, in wei. They stay on the gas wallet in reserve. |
chains[].available | Amount | What is left for gas, in wei: balance minus fees_due, but not below zero. It is also what your organization’s owner may pay out to your hot wallets, less the payout’s gas. Absent when error is set. |
chains[].error | string | chain_unavailable: the chain’s node did not respond, so there is no balance. One of: chain_unavailable. |
ChainTariff
Section titled “ChainTariff”Your rates and the conventional costs on one chain.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
name required | string | The chain’s name. |
rate_bps required | integer | X for token sweeps, in basis points, 7000 = 70%; 0 means no fee. |
rate required | string | rate_bps in percent. |
native_markup_bps required | integer | The markup on gas for native coin sweeps, in basis points. |
native_markup required | string | native_markup_bps in percent. |
conventional_gas | map of object | The conventional cost of each asset, by the token’s ticker or the native coin’s: the gas of a conventional sweep, topping up a deposit address and transferring from it. Absent on a chain without conventional costs. |
conventional_gas.<key>.new required | Gas | Gas for an address without an account on the chain, which the top-up creates (tokens only). |
conventional_gas.<key>.existing required | Gas | Gas for an address with an account. |
extra_gas | object | The batch gas a first sweep of an address bears on top of a repeat one. Absent on a chain without conventional costs. |
extra_gas.delegation required | Gas | Setting the address’s delegate by its authorization. |
extra_gas.account required | Gas | Creating the address’s account as well, for an address that held only tokens. |
custom_tokens | TokenTariff | X for the tokens you add yourself on the chain, unless a token has a rate of its own. |
floor | object | The conventional cost of a token of your own that is not measured yet. Absent on a chain without conventional costs. |
floor.transfer_gas required | Gas | An amount of gas. |
floor.conventional_gas required | ConventionalGas | A conventional cost, in gas. |
tokens | array of object | Each of your tokens on the chain, as in GET /v1/tokens, with its tariff and conventional cost. |
tokens[].token required | string | How a sweep identifies the token. |
tokens[].address | Address | The token’s contract address; absent for the native coin. |
tokens[].symbol | string | The token’s symbol. |
tokens[].source required | string | preset: a base token; custom: one you added. One of: preset, custom. |
tokens[].status required | string | The token’s status, as in GET /v1/tokens. One of: active, disabled, refused. |
tokens[].tariff required | TokenTariff | What you pay for a token, and where the rate comes from. Portuna’s notes on a rate are not shown. |
tokens[].baseline required | Baseline | A token’s conventional cost, the gas of a conventional sweep: the top-up of a deposit address plus a plain transfer of the token’s whole balance from it (transfer_gas), plus creating the address’s account for one without an account. Frozen and versioned: a sweep records the version it was priced with. |
ConventionalGas
Section titled “ConventionalGas”A conventional cost, in gas.
| Field | Type | Description |
|---|---|---|
new required | Gas | Gas for an address without an account on the chain, which the top-up creates. |
existing required | Gas | Gas for an address with an account. |
TokenTariff
Section titled “TokenTariff”What you pay for a token, and where the rate comes from. Portuna’s notes on a rate are not shown.
| Field | Type | Description |
|---|---|---|
kind required | string | base: the chain’s rate of the base tokens; custom_default: the default rate of the tokens you add yourself, 80%; negotiated: a rate Portuna agreed with you. One of: base, custom_default, negotiated. |
rule required | string | conventional_share: rate_bps is X, the share of the token’s conventional cost you pay at most; gas_markup: the markup on the gas of a native coin sweep. One of: conventional_share, gas_markup. |
rate_bps required | integer | The rate in basis points, 8000 = 80%. From 0 to 10000. |
since required | string | null (date-time) | When the rate was set; null for the default nobody set. |
valid_until required | string | null (date-time) | When an agreed rate runs out and the rate of the level above applies: your agreed rate for all your tokens on the chain, if it still applies then, or the default. null without an end. You get tariff.changed with the reason expiring 7 days before. |
next_rate_bps required | integer | null | The rate that applies once valid_until passes, as things stand; null without an end. From 0 to 10000. |
Baseline
Section titled “Baseline”A token’s conventional cost, the gas of a conventional sweep: the top-up of a deposit address plus a plain
transfer of the token’s whole balance from it (transfer_gas), plus creating the address’s account for one
without an account. Frozen and versioned: a sweep records the version it was priced with.
| Field | Type | Description |
|---|---|---|
transfer_gas required | integer | null | The transfer, in gas; null for the native coin, whose conventional sweep is the transfer itself. |
conventional_gas required | ConventionalGas | A conventional cost, in gas. |
version required | integer | null | The version of the conventional cost of a token of your own; null for a base token’s, which Portuna measured. |
method required | string | fork: measured by Portuna on a copy of the chain (base tokens); simulate: a test deposit address in a simulation; holders: real holders of the token in a simulation; deposit: your own deposit address at the first sweep; floor: not measured yet, the network’s floor; manual: set by Portuna after a review. One of: fork, simulate, holders, deposit, floor, manual. |
measured_at required | string | null (date-time) | When it was measured. |
block required | integer | null | The block it was measured at. |
status required | string | measured; provisional: the network’s floor until the token is measured, at the latest from your first deposit; review: the transfer costs more than 80,000 gas, which is used until Portuna reviews it. One of: measured, provisional, review. |
next required | object | null | A version that will replace this one: a conventional cost that rises by more than 5% applies 7 days after you are notified (tariff.changed); one that falls applies at once. |
next.transfer_gas required | Gas | An amount of gas. |
next.conventional_gas required | ConventionalGas | A conventional cost, in gas. |
next.version required | integer | The version. |
next.effective_at required | string (date-time) | When it applies. |
Settings
Section titled “Settings”| Field | Type | Description |
|---|---|---|
keep_one_unit | boolean | Token sweeps leave 1 smallest unit on the deposit address, which makes your user’s next deposit cheaper. A sweep request can override it. Off by default. |
HotWallet
Section titled “HotWallet”A hot wallet on one chain and its own delegate, which holds this hot wallet alone.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
address required | Address | The hot wallet, where sweeps send the funds. |
delegate required | Address | The hot wallet’s own delegate, an address deposit addresses sign their authorizations for. Delegates of sets that hold the hot wallet are in GET /v1/delegates. |
status required | string | pending: the delegate is being deployed; active: it is deployed, and sweeps can go; failed: the deployment failed, and registering the hot wallet again retries it. One of: pending, active, failed. |
error | string | Why the deployment failed; only with failed. Most often insufficient_gas_balance: top up the gas wallet and register the hot wallet again. not_deployed: the deployment went through, but the delegate is not there. The other codes are the causes of a failed attempt, as in a sweep’s reason. One of: not_deployed, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
tx_hash | string | The transaction that deployed the delegate. |
created_at required | string (date-time) | When the hot wallet was registered. |
Delegate
Section titled “Delegate”A delegate on one chain: the contract deposit addresses sign their authorizations for, and the fixed set of hot wallets it lets them be swept to.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
address required | Address | The delegate, the address deposit addresses sign their authorizations for. |
hot_wallets required | array of Address | The hot wallets it holds, in ascending order of address; the only places funds can go. |
status required | string | pending: the delegate is being deployed; active: it is deployed, and deposit addresses delegated to it can be swept to its hot wallets; failed: the deployment failed, and creating the delegate again retries it. One of: pending, active, failed. |
error | string | Why the deployment failed; only with failed. The codes are those of a hot wallet’s error. One of: not_deployed, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
tx_hash | string | The transaction that deployed the delegate. |
created_at required | string (date-time) | When the delegate was requested. |
Authorization
Section titled “Authorization”An EIP-7702 authorization signed by the deposit address’s key: on chain chain_id, the deposit address runs the
code at address. How to sign it, also in an HSM, a KMS or an MPC wallet: the Signing authorizations guide in
the developer documentation.
| Field | Type | Description |
|---|---|---|
chain_id required | integer (int64) | The chain of the request; 0 (any chain) is refused. |
address required | Address | A deployed delegate that holds the sweep’s hot wallet: the hot wallet’s own from POST /v1/hot-wallets, or one of a set from POST /v1/delegates. The zero address for a revocation. |
nonce required | integer (int64) | The deposit address’s current nonce. |
y_parity required | integer | The signature’s y parity. One of: 0, 1. |
r required | string | The signature’s r, 0x-hex of up to 32 bytes. Format: ^0x[0-9a-fA-F]{1,64}$. |
s required | string | The signature’s s, 0x-hex of up to 32 bytes, in the lower half of the curve order (EIP-2). Format: ^0x[0-9a-fA-F]{1,64}$. |
SweepRequest
Section titled “SweepRequest”What to sweep, from where and to where.
| Field | Type | Description |
|---|---|---|
external_id | string | Your id for the sweep, unique in your account: a request with an external_id that is already taken returns that sweep instead of creating another, so retries are safe. Up to 128 characters. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
hot_wallet required | Address | Your hot wallet on this chain, where the funds go. A delegate that holds it must be active. |
account required | Address | The deposit address. |
token required | string | A token’s ticker listed on the chain (in any case), the contract address of a listed token or of a token you enabled (POST /v1/tokens), or native (or the native coin’s ticker) for the native coin. The token must be active in GET /v1/tokens. |
amount | Amount | How much to sweep, above zero; without it, the whole balance. |
keep_one_unit | boolean | Leave 1 smallest unit of the token on the deposit address; defaults to your settings. Ignored for the native coin. |
authorization | Authorization | Needed until the deposit address is delegated to a deployed delegate that holds hot_wallet. After that it is not used, though one that is sent must still be valid. One for another delegate of yours that holds the hot wallet moves the deposit address to that delegate. |
A sweep and its outcome.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | |
external_id | string | Your id for the sweep, if the request had one. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
hot_wallet required | Address | The hot wallet. |
account required | Address | The deposit address. |
token required | string | The listed token’s ticker or the native coin’s; for a token you enabled yourself, its contract address, never the symbol it gives itself. |
token_address | Address | The token’s contract address; absent for the native coin. |
token_symbol | string | The token’s symbol when the sweep was requested: the ticker of a listed token or the native coin, or what your token’s contract gives, cleaned as in Token. Informational only. |
token_decimals | integer | The token’s decimals when the sweep was requested; absent when the token does not say. From 0 to 36. |
delegate | Address | The delegate the deposit address ran on in the batch that carried the sweep; only once sent. |
amount | Amount | The amount requested; absent when the request was for the whole balance. |
keep_one_unit | boolean | Present and true when the sweep leaves 1 smallest unit of the token on the deposit address. |
status required | string | queued: waiting for a batch or a retry; processing: in a batch being prepared, sent or confirmed; swept: done, the funds are in the hot wallet; failed: reverted on chain, or ran out of attempts; rejected: never sent. The last three are final. One of: queued, processing, swept, failed, rejected. |
reason | string | Why the sweep ended rejected or failed, or, while it is queued for a retry, why the last attempt did not go through. A stable code: the node’s own messages stay in our logs.- rejected, a check before sending kept failing, or failed once for an item of a sweep list: not_upgraded (the deposit address is not delegated and the sweep has no authorization), stale_authorization, wrong_delegate (the deposit address runs on a contract that is not a deployed delegate of yours holding hot_wallet, and the sweep has no authorization for one: sign one for a delegate that holds it), would_fail or nothing_to_sweep; or at once, token_disabled: the token was turned off, refused or blocked after the sweep was requested. Every item of a sweep list too heavy for one transaction when it was sent ends rejected with gas_limit_exceeded. - failed on chain, inside a batch that went through: the contract error the transfer reverted with, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized or NotAHotWallet, or reverted without one; or transfer_not_confirmed: the transfer reported success, but the token emitted no Transfer event from the deposit address to the hot wallet, so nothing is counted as moved and there is no fee. - The cause of a failed attempt, which is retried, and final with failed once the attempts run out: insufficient_gas_balance (top up the gas wallet), gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable or internal. One of: not_upgraded, stale_authorization, wrong_delegate, would_fail, nothing_to_sweep, token_disabled, reverted, transfer_not_confirmed, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized, NotAHotWallet, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
attempts required | integer | How many times the sweep was tried. |
swept_amount | Amount | How much reached the hot wallet; only with swept. For a token, what its Transfer events from the deposit address to the hot wallet in the sweep say, not what the token reported. |
reported_amount | Amount | What the transfer reported moving, only when the token’s Transfer events say otherwise: for example, the full amount of a token that keeps a fee on transfers, while swept_amount is what arrived. |
tx_hash | string | The batch transaction that carried the sweep. |
transaction_id | TransactionID | The transaction the sweep rides, in GET /v1/transactions/{id}; only once it is in one. While the sweep is queued for a retry it rides none. |
batch_size | integer | How many sweeps ride the same transaction, this one included; only with transaction_id. |
batch_index | integer | The sweep’s place in that transaction, from 0: the k-th Swept or SweepFailed event of the batch’s contract in its logs is the sweep of batch_index k. The same in every version of the transaction; only with transaction_id. The transaction’s id and batch_index name the sweep’s place for good. |
log_index | integer | Where in the block of the mined transaction the batch contract’s Swept or SweepFailed event of the sweep is; only once the transaction is mined and confirmed, swept or failed. Absent for sweeps settled before October 26, 2026. |
transfer_log_index | integer | Where in that block the token’s Transfer from the deposit address to the hot wallet in the sweep is, the first if there are more; only with swept, and not for the native coin, which has none. |
kind | string | What the deposit address needed in the batch, which decides its share of the gas and its conventional cost. repeat: nothing, it was already delegated. first: its delegation; it already had an account on the chain. first_new: its delegation, which also created its account, as it held only tokens. One of: repeat, first, first_new. |
gas | Gas | The sweep’s share of the batch gas. |
gas_cost | Amount | The same in wei. |
fee | Amount | The fee in wei; only with swept. |
conventional_gas | Gas | The conventional cost of the token the fee was computed with, as it was when the batch was prepared: the base token’s, or your own token’s measured conventional cost of baseline_version, or the network’s floor while it was not measured. |
rate_bps | integer | The rate the fee was computed with; for the native coin, the markup on gas. |
tariff_source | string | Where the rate came from, as tariff.kind of the token. One of: base, custom_default, negotiated. |
baseline_version | integer | The version of your own token’s conventional cost the sweep was priced with. |
list_id | string (uuid) | The sweep list the sweep is an item of, GET /v1/sweep-lists/{id}; absent for a sweep requested alone. |
created_at required | string (date-time) | When the sweep was requested. |
updated_at required | string (date-time) | When the sweep last changed. |
A token on one chain as your account sees it: a base token (the native coin or one Portuna lists), or one you added yourself.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
token required | string | How a sweep identifies the token: native, the listed token’s ticker, or the address of a token of your own (never its symbol). |
address | Address | The token’s contract address; absent for the native coin. |
symbol | string | The listed token’s ticker, or the symbol your token’s contract gives, with control characters removed and cut to 32 characters. Informational: a token of your own may call itself anything. Up to 32 characters. |
name | string | The name your token’s contract gives, cleaned like symbol; absent for listed tokens. Up to 64 characters. |
decimals | integer | The token’s decimals, which amounts are counted in; absent when the token does not say. From 0 to 36. |
source required | string | preset: a base token, on for every account unless it turns it off; custom: one you added. One of: preset, custom. |
status required | string | active: sweeps of the token are accepted. disabled: you turned the base token off, or, in a token.refused event, you removed your token since. refused: Portuna refuses the token, see reason. One of: active, disabled, refused. |
reason | string | Why the token is refused. blocked: Portuna blocked it for every account. failing: 5 sweeps of it in a row failed on chain for the token’s fault. The token failed the checks it passed when you enabled it, as the service checks them again when it starts: not_a_contract, delegated_account, invalid_decimals or decimals_changed (decimals() returns a different value than then). Adding it again with POST /v1/tokens checks it anew, except a failing one, which only support turns on again; a blocked token cannot be added. One of: blocked, failing, not_a_contract, delegated_account, invalid_decimals, decimals_changed. |
blocked | object | Why Portuna blocked the token, when it did. |
blocked.category required | string | Why, in a word: unsweepable is a token the check found your sweeps cannot move, or not a working token, blocked for every account by the check itself. One of: sanctions, compromised, impersonation, griefing, legal, unsweepable, other. |
blocked.public_note required | string | Portuna’s note for you. |
provider | TokenProvider | What outside providers know of a token of your own. |
check | object | The last check of a token of your own. |
check.result required | string | ok: your sweep moved the token in the test; not_simulated: the test could not run, and the token is run on your first deposit, priced at the network’s floor until then. One of: ok, not_simulated. |
check.method required | string | null | How the test ran, simulate or holders. |
check.checked_at required | string | null (date-time) | When. |
warnings | array of TokenWarning | What to weigh about a token of your own. |
tariff | TokenTariff | What you pay for a token, and where the rate comes from. Portuna’s notes on a rate are not shown. |
baseline | Baseline | A token’s conventional cost, the gas of a conventional sweep: the top-up of a deposit address plus a plain transfer of the token’s whole balance from it (transfer_gas), plus creating the address’s account for one without an account. Frozen and versioned: a sweep records the version it was priced with. |
created_at | string (date-time) | When you added your token; absent for base tokens. |
TokenProvider
Section titled “TokenProvider”What CoinGecko, or DefiLlama, know of a token’s address, for you to compare with the issuer’s. Data provided
by CoinGecko where attribution says so.
| Field | Type | Description |
|---|---|---|
status required | string | found; not_found: no provider knows the contract, an unknown token; unavailable: they did not respond, and are asked again later; testnet: providers know no testnet contracts, so none is asked; none: not asked on this chain. One of: found, not_found, unavailable, testnet, none. |
source | string | Who knows it. One of: coingecko, defillama. |
id | string | CoinGecko’s id of the coin. |
name | string | The name at the provider. |
symbol | string | The symbol at the provider. |
decimals | integer | The decimals at the provider, on this chain. |
image | string | The coin’s logo. |
url | string | The coin’s page at the provider. |
homepage | string | The project’s site. |
categories | array of string | The provider’s categories of the coin. |
rank | integer | The rank by market cap. |
notice | string | The provider’s public notice of the coin. |
platforms | integer | How many chains the coin is on. |
price_usd | number | DefiLlama’s price. |
attribution | string | The credit the provider asks for. |
looked_up_at | string (date-time) | When the providers were asked. |
TokenWarning
Section titled “TokenWarning”Something to weigh before adding or sweeping a token of your own.
| Field | Type | Description |
|---|---|---|
code required | string | unknown_to_providers (an unknown token on mainnet), provider_unavailable, testnet, lookalike (the symbol looks like a base token’s, see base), other_chain (the address is a base token of another chain), decimals_mismatch, symbol_mismatch (the contract and the provider differ), fee_on_transfer, rebasing, near_item_limit, proxy (the issuer can replace the code), not_simulated, baseline_review. |
message required | string | The warning, for people. |
base | object | The base token a lookalike passes for, or the token another chain lists at the address. |
base.chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
base.symbol required | string | Its ticker. |
base.address | Address | The base token’s address on the chain asked about, if it has one. |
fee_bps | integer | The fee a transfer keeps, in basis points. |
sweep_gas | integer | The gas of your sweep of one address of the token. |
implementation | Address | The proxy’s implementation. |
TokenCard
Section titled “TokenCard”What the check of a token found, for you to compare with the issuer’s site or a block explorer before adding it.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
address required | string | The token’s contract address; empty for the native coin. |
testnet required | boolean | Whether the chain is a testnet. |
explorer_url required | string | null | The token’s page in the chain’s block explorer. |
source required | string | preset: the address is a base token of the chain, turned on rather than added. One of: preset, custom. |
status required | string | Your token’s status now; new if you have not added it. One of: new, active, disabled, refused. |
reason | string | Why your token is refused, if it is. |
contract required | object | What the contract says of itself. |
contract.symbol required | string | The symbol, cleaned for display. |
contract.name required | string | The name, cleaned for display. |
contract.decimals required | integer | null | The decimals. |
contract.total_supply required | string | null | The total supply, in the smallest units. |
contract.proxy required | string | The kind of proxy, eip1967, beacon or zos; empty for a contract that is not one. |
contract.implementation required | string | null | A proxy’s implementation. |
contract.hints required | array of string | What the issuer can do with the token, as its code shows: pause, blacklist, tax, max_tx, cooldown, fee, rebasing, erc777, upgrade. |
provider required | TokenProvider | What CoinGecko, or DefiLlama, know of a token’s address, for you to compare with the issuer’s. Data provided by CoinGecko where attribution says so. |
check required | object | null | How the test sweep went; null for a base token, which is not checked. |
check.result required | string | ok: your sweep moved the token; not_simulated: the test could not run. One of: ok, not_simulated. |
check.method required | string | null | simulate or holders. |
check.transfer_gas required | integer | null | A plain transfer of the whole balance, in gas. |
check.sweep_gas required | integer | null | Your sweep of one address in a batch, in gas, the batch’s overhead aside. |
check.fee_bps required | integer | The fee a transfer keeps, in basis points. |
check.dust required | boolean | A transfer of the whole balance leaves some on the address, as rebasing tokens do. |
check.block required | integer | null | The block the test ran on. |
check.checked_at required | string | null (date-time) | When. |
warnings required | array of TokenWarning | What to weigh. |
tariff required | TokenTariff | What you pay for a token, and where the rate comes from. Portuna’s notes on a rate are not shown. |
baseline required | Baseline | null | The conventional cost the token’s fees are priced against; null on a chain without one. |
RevocationRequest
Section titled “RevocationRequest”Which deposit address to revoke, with its authorization of the zero address.
| Field | Type | Description |
|---|---|---|
external_id | string | Your id for the revocation, unique in your account: a request with an external_id that is already taken returns that revocation instead of creating another, so retries are safe. Up to 128 characters. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
account required | Address | The deposit address. |
authorization required | Authorization | The deposit address’s authorization with address = 0x0000000000000000000000000000000000000000. |
Revocation
Section titled “Revocation”A revocation and its outcome.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | |
external_id | string | Your id for the revocation, if the request had one. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
account required | Address | The deposit address. |
status required | string | queued and processing: as for a sweep; revoked: the deposit address has no delegation any more; failed: the transaction went through but the chain skipped the authorization, or the attempts ran out; rejected: never sent. The last three are final. One of: queued, processing, revoked, failed, rejected. |
reason | string | Why the revocation ended rejected or failed, or, while it is queued for a retry, why the last attempt did not go through. For rejected: not_delegated (there is no delegation to remove), stale_authorization (the deposit address’s nonce has changed) or invalid_authorization. For failed: not_applied (the chain skipped the authorization). The other codes are the causes of a failed attempt, as in a sweep’s reason. One of: not_delegated, stale_authorization, invalid_authorization, not_applied, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
attempts required | integer | How many times the revocation was tried. |
tx_hash | string | The transaction that carried the revocation. |
transaction_id | TransactionID | The transaction the revocation rides, as for a sweep; only once it is in one. |
batch_size | integer | How many revocations ride the same transaction, this one included; only with transaction_id. |
batch_index | integer | The revocation’s place in that transaction’s authorization list, from 0; only with transaction_id. |
gas | Gas | The revocation’s share of its transaction’s gas. |
gas_cost | Amount | The same in wei. |
created_at required | string (date-time) | When the revocation was requested. |
updated_at required | string (date-time) | When the revocation last changed. |
Transaction
Section titled “Transaction”A transaction of your gas wallet that carries sweeps (a batch) or revocations. A batch takes the due sweeps of
the gas wallet on the chain, to any of your hot wallets, oldest first, up to the chain’s batch size.
A transaction that reverted or was dropped while a version of the service from before October 24, 2026 was
running may show no jobs and no hot wallets, and a reverted one no gas_used: that version did not keep them.
Such a version ran until that date and may run later, during an update of the service or after a rollback.
| Field | Type | Description |
|---|---|---|
id required | TransactionID | The id of a transaction, as in GET /v1/transactions. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
kind required | string | sweep: a batch of sweeps; revocation: revocations, sent by the gas wallet to itself. One of: sweep, revocation. |
status required | string | pending: sent, and not yet mined and confirmed; it may be replaced at a higher fee, which changes hash. mined: mined and confirmed; each sweep or revocation in it ended on its own, see sweeps or revocations. reverted: mined and confirmed, but it failed as a whole: its gas is spent, and what it carried went back to the queue. dropped: another transaction took its nonce, so it was never mined: nothing was spent, and what it carried went back to the queue. The last three are final. One of: pending, mined, reverted, dropped. |
hash required | TxHash | The mined version’s hash; while none is mined, the latest version’s. |
block_number required | integer | null (int64) | The block of the mined version; null while pending and when dropped, and for transactions settled before October 26, 2026. |
hot_wallets required | array of Address | The hot wallets a batch sweeps to, in ascending order; empty for revocations. |
sweeps required | object | null | The sweeps a batch carried, by how each fared in it; null for revocations. requeued sweeps went back to the queue when the transaction reverted or was dropped: each shows on its own where it went on, in another transaction or failed once its attempts ran out. Those whose attempts ran out when it reverted or was dropped, and that no transaction carried since, count as failed. |
sweeps.total required | integer | |
sweeps.processing required | integer | |
sweeps.swept required | integer | |
sweeps.failed required | integer | |
sweeps.requeued required | integer | |
revocations required | object | null | The revocations a transaction carried, by how each fared in it, as for sweeps; null for a batch. |
revocations.total required | integer | |
revocations.processing required | integer | |
revocations.revoked required | integer | |
revocations.failed required | integer | |
revocations.requeued required | integer | |
gas_used required | integer | null (int64) | The gas the mined version used; null while pending and when dropped, and possibly for a transaction that reverted while a version of the service from before October 24, 2026 was running. |
gas_cost required | string | null | The same in wei, what your gas wallet paid; null while pending and when dropped. |
fees required | string | null | The fees of its swept sweeps, in wei; 0 for revocations. null while pending and when dropped. |
created_at required | string (date-time) | When the transaction was first sent. |
mined_at required | string | null (date-time) | When the service saw it mined and confirmed; null while pending and when dropped. |
list_id required | string | null (uuid) | The sweep list the transaction was sent for, GET /v1/sweep-lists/{id}; null for a batch of sweeps requested alone, and for revocations. |
SweepListRequest
Section titled “SweepListRequest”Sweeps to send in one transaction of their own.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
wait | integer | How many seconds the request may wait for the list to be sent, to answer with its transaction; 0 answers at once. Portuna may wait less on a chain. The answer comes within wait of the checks of the request. From 0 to 55. Default: 10. |
items required | array of SweepListItemRequest | The sweeps, up to the chain’s batch size, in the order of the list. |
SweepListItemRequest
Section titled “SweepListItemRequest”A sweep of a list, as SweepRequest without chain_id; its external_id is required.
| Field | Type | Description |
|---|---|---|
external_id required | string | Your id for the sweep, unique in your account. A request with the same set of external_id on the same chain returns that list. An item rejected burns its external_id: to try it again, use a new one. Up to 128 characters. |
hot_wallet required | Address | Your hot wallet on this chain, where the funds go. A delegate that holds it must be active. |
account required | Address | The deposit address. |
token required | string | A token’s ticker listed on the chain (in any case), the contract address of a listed token or of a token you enabled (POST /v1/tokens), or native (or the native coin’s ticker) for the native coin. The token must be active in GET /v1/tokens. |
amount | Amount | How much to sweep, above zero; without it, the whole balance. |
keep_one_unit | boolean | Leave 1 smallest unit of the token on the deposit address; defaults to your settings. Ignored for the native coin. |
authorization | Authorization | Needed until the deposit address is delegated to a deployed delegate that holds hot_wallet. After that it is not used, though one that is sent must still be valid. One for another delegate of yours that holds the hot wallet moves the deposit address to that delegate. |
SweepList
Section titled “SweepList”A sweep list and how far it went.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
status required | string | From its items: queued while any waits in the queue, the list’s turn or its retry; processing while its transaction is being prepared and signed; sent while it rides a transaction in flight; done once every item has its outcome. One of: queued, processing, sent, done. |
transaction required | Transaction | null | The transaction the list rides while sent, and the last one it rode once done; null otherwise. A replacement at a higher fee changes its hash, not its id. The hash is that of the version signed and recorded: the network may get it moments after the answer, or only when it is rebroadcast; transaction.sent and transaction.mined confirm it. The transactions of a list that reverted or were dropped are in GET /v1/transactions?list_id=. |
items required | array of SweepListItem | The items in the order of the request; the whole sweeps are in GET /v1/sweeps?list_id=. |
created_at required | string (date-time) | When the list was requested. |
SweepListItem
Section titled “SweepListItem”An item of a sweep list, in short.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | |
external_id required | string | |
status required | string | queued: waiting for a batch or a retry; processing: in a batch being prepared, sent or confirmed; swept: done, the funds are in the hot wallet; failed: reverted on chain, or ran out of attempts; rejected: never sent. The last three are final. One of: queued, processing, swept, failed, rejected. |
reason | string | Why the sweep ended rejected or failed, or, while it is queued for a retry, why the last attempt did not go through. A stable code: the node’s own messages stay in our logs.- rejected, a check before sending kept failing, or failed once for an item of a sweep list: not_upgraded (the deposit address is not delegated and the sweep has no authorization), stale_authorization, wrong_delegate (the deposit address runs on a contract that is not a deployed delegate of yours holding hot_wallet, and the sweep has no authorization for one: sign one for a delegate that holds it), would_fail or nothing_to_sweep; or at once, token_disabled: the token was turned off, refused or blocked after the sweep was requested. Every item of a sweep list too heavy for one transaction when it was sent ends rejected with gas_limit_exceeded. - failed on chain, inside a batch that went through: the contract error the transfer reverted with, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized or NotAHotWallet, or reverted without one; or transfer_not_confirmed: the transfer reported success, but the token emitted no Transfer event from the deposit address to the hot wallet, so nothing is counted as moved and there is no fee. - The cause of a failed attempt, which is retried, and final with failed once the attempts run out: insufficient_gas_balance (top up the gas wallet), gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable or internal. One of: not_upgraded, stale_authorization, wrong_delegate, would_fail, nothing_to_sweep, token_disabled, reverted, transfer_not_confirmed, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized, NotAHotWallet, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
Webhook
Section titled “Webhook”Your webhook settings.
| Field | Type | Description |
|---|---|---|
url required | string (uri) | Where events go. |
secret required | string | The signing secret, whsec_…. Keep it on your backend. |
low_balance required | array of object | Low balance alerts of your gas wallet, one per chain. |
low_balance[].chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
low_balance[].threshold required | Amount | The threshold, in wei. |
low_balance[].low required | boolean | The balance is below the threshold, and the alert was sent; it re-arms once the balance recovers. |
The body of a webhook delivery. type tells what happened and what data is.
- Sweeps and revocations that ride a transaction: a transaction event, one per transaction rather than one per
sweep.
transaction.sentcomes when the transaction is sent and again for every replacement at a higher fee;transaction.minedonce it is mined and confirmed, with each sweep’s outcome;transaction.revertedortransaction.droppedif it failed as a whole, with what became of each sweep.datais the transaction and its items as they were at the event. - Sweeps and revocations that ended before any transaction carried them:
sweep.rejected,sweep.failed,revocation.rejected,revocation.failed, with the sweep as inGET /v1/sweeps/{id}or the revocation as inGET /v1/revocations/{id}. - A hot wallet as in
GET /v1/hot-wallets, a delegate as inGET /v1/delegates, a token as inGET /v1/tokens, a change of your tariff, a low balance alert, a payout as inGET /v1/payouts.
Every sweep’s outcome comes in exactly one event. Hot wallets, delegates, tokens, sweeps and revocations are shown as they are when the event is delivered (the status of a sweep or revocation in its event is final, so that is how it was); transactions and payouts as they were when the event happened.
One of TransactionEvent, SweepEvent, RevocationEvent, HotWalletEvent, DelegateEvent, TokenEvent, TariffChangedEvent, BalanceLowEvent, BalancePayoutEvent; type tells which.
TransactionEvent
Section titled “TransactionEvent”A transaction of sweeps or revocations was sent, or ended. transaction.sent: a version of it was signed and
is being broadcast, the first or a replacement at a higher fee with a new hash; its items are processing.
transaction.mined: it is mined and confirmed (3 blocks in Ethereum, 15 in BSC); each item is swept or
failed (revoked or failed for revocations). transaction.reverted: it is mined but failed as a whole,
its gas spent; transaction.dropped: another transaction took its nonce, nothing was spent. In both, each
item is queued, to ride a new transaction with events of its own, or failed if its attempts ran out.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: transaction.sent, transaction.mined, transaction.reverted, transaction.dropped. |
created_at required | string (date-time) | When the event happened. |
data required | TransactionEventData | The transaction and what it carried, as they were at the event. A transaction of more than 200 items comes in parts of 200, each with the same transaction: part of parts. |
TransactionEventData
Section titled “TransactionEventData”The transaction and what it carried, as they were at the event. A transaction of more than 200 items comes in
parts of 200, each with the same transaction: part of parts.
| Field | Type | Description |
|---|---|---|
transaction required | TransactionHeader | The transaction as in GET /v1/transactions/{id} at the event and, in transaction.sent, the version. |
part required | integer | Which part of the event this is, from 1. |
parts required | integer | How many parts the event has; 1 for every transaction of up to 200 items. |
items required | array of TransactionSweep | TransactionRevocation | The transaction’s sweeps, or revocations, of this part, by batch_index: TransactionSweep when the transaction’s kind is sweep, TransactionRevocation when it is revocation. |
test | boolean | Present and true only in the sample POST /v1/webhook/test sends. |
TransactionHeader
Section titled “TransactionHeader”The transaction as in GET /v1/transactions/{id} at the event and, in transaction.sent, the version.
| Field | Type | Description |
|---|---|---|
id required | integer (int64) | The transaction’s id, as in GET /v1/transactions/{id}; 0 only in the sample POST /v1/webhook/test sends, with test: true. |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
kind required | string | sweep: a batch of sweeps; revocation: revocations, sent by the gas wallet to itself. One of: sweep, revocation. |
status required | string | pending: sent, and not yet mined and confirmed; it may be replaced at a higher fee, which changes hash. mined: mined and confirmed; each sweep or revocation in it ended on its own, see sweeps or revocations. reverted: mined and confirmed, but it failed as a whole: its gas is spent, and what it carried went back to the queue. dropped: another transaction took its nonce, so it was never mined: nothing was spent, and what it carried went back to the queue. The last three are final. One of: pending, mined, reverted, dropped. |
hash required | TxHash | In transaction.sent, the hash of the version sent; otherwise the mined version’s, or for transaction.dropped the latest version’s. The highest version is the latest attempt, not necessarily the one mined: the mined hash is the one in transaction.mined or transaction.reverted. |
block_number required | integer | null (int64) | The block of the mined version; null while pending and when dropped, and for transactions settled before October 26, 2026. |
hot_wallets required | array of Address | The hot wallets a batch sweeps to, in ascending order; empty for revocations. |
sweeps required | object | null | The sweeps a batch carried, by how each fared in it; null for revocations. requeued sweeps went back to the queue when the transaction reverted or was dropped: each shows on its own where it went on, in another transaction or failed once its attempts ran out. Those whose attempts ran out when it reverted or was dropped, and that no transaction carried since, count as failed. |
sweeps.total required | integer | |
sweeps.processing required | integer | |
sweeps.swept required | integer | |
sweeps.failed required | integer | |
sweeps.requeued required | integer | |
revocations required | object | null | The revocations a transaction carried, by how each fared in it, as for sweeps; null for a batch. |
revocations.total required | integer | |
revocations.processing required | integer | |
revocations.revoked required | integer | |
revocations.failed required | integer | |
revocations.requeued required | integer | |
gas_used required | integer | null (int64) | The gas the mined version used; null while pending and when dropped, and possibly for a transaction that reverted while a version of the service from before October 24, 2026 was running. |
gas_cost required | string | null | The same in wei, what your gas wallet paid; null while pending and when dropped. |
fees required | string | null | The fees of its swept sweeps, in wei; 0 for revocations. null while pending and when dropped. |
created_at required | string (date-time) | When the transaction was first sent. |
mined_at required | string | null (date-time) | When the service saw it mined and confirmed; null while pending and when dropped. |
list_id required | string | null (uuid) | The sweep list the transaction was sent for, GET /v1/sweep-lists/{id}; null for a batch of sweeps requested alone, and for revocations. |
version | integer | Only in transaction.sent, the version sent, from 1; a replacement at a higher fee is the next. |
replaces | TxHash | null | Only in transaction.sent, the hash of the version this one replaces; null for the first. |
TransactionSweep
Section titled “TransactionSweep”A sweep of the transaction, as it was at the event. reason comes with failed, and with queued after a
revert or a drop; swept_amount, fee and transfer_log_index with swept; log_index with both
outcomes of transaction.mined; attempts in transaction.reverted and transaction.dropped.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The sweep’s id, as in GET /v1/sweeps/{id}. |
external_id required | string | null | Your id for the sweep, null if the request had none. |
batch_index required | integer | The sweep’s place in that transaction, from 0: the k-th Swept or SweepFailed event of the batch’s contract in its logs is the sweep of batch_index k. The same in every version of the transaction; only with transaction_id. The transaction’s id and batch_index name the sweep’s place for good. |
account required | Address | The deposit address. |
hot_wallet required | Address | The hot wallet. |
token required | string | The listed token’s ticker or the native coin’s; for a token you enabled yourself, its contract address, never the symbol it gives itself. |
token_address required | Address | null | The token’s contract address; null for the native coin. |
amount required | Amount | null | The amount requested; null for the whole balance. |
status required | string | processing in transaction.sent; swept or failed in transaction.mined; queued (it will ride a new transaction) or failed (its attempts ran out) in transaction.reverted and transaction.dropped. One of: processing, swept, failed, queued. |
reason | string | Why the sweep ended rejected or failed, or, while it is queued for a retry, why the last attempt did not go through. A stable code: the node’s own messages stay in our logs.- rejected, a check before sending kept failing, or failed once for an item of a sweep list: not_upgraded (the deposit address is not delegated and the sweep has no authorization), stale_authorization, wrong_delegate (the deposit address runs on a contract that is not a deployed delegate of yours holding hot_wallet, and the sweep has no authorization for one: sign one for a delegate that holds it), would_fail or nothing_to_sweep; or at once, token_disabled: the token was turned off, refused or blocked after the sweep was requested. Every item of a sweep list too heavy for one transaction when it was sent ends rejected with gas_limit_exceeded. - failed on chain, inside a batch that went through: the contract error the transfer reverted with, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized or NotAHotWallet, or reverted without one; or transfer_not_confirmed: the transfer reported success, but the token emitted no Transfer event from the deposit address to the hot wallet, so nothing is counted as moved and there is no fee. - The cause of a failed attempt, which is retried, and final with failed once the attempts run out: insufficient_gas_balance (top up the gas wallet), gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable or internal. One of: not_upgraded, stale_authorization, wrong_delegate, would_fail, nothing_to_sweep, token_disabled, reverted, transfer_not_confirmed, TokenTransferFailed, NativeTransferFailed, NothingToSweep, Unauthorized, NotAHotWallet, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
swept_amount | Amount | How much reached the hot wallet; only with swept. For a token, what its Transfer events from the deposit address to the hot wallet in the sweep say, not what the token reported. |
fee | Amount | The fee in wei; only with swept. |
log_index | integer | Where in the block of the mined transaction the batch contract’s Swept or SweepFailed event of the sweep is; only once the transaction is mined and confirmed, swept or failed. Absent for sweeps settled before October 26, 2026. |
transfer_log_index | integer | Where in that block the token’s Transfer from the deposit address to the hot wallet in the sweep is, the first if there are more; only with swept, and not for the native coin, which has none. |
attempts | integer | How many times the sweep was tried. |
TransactionRevocation
Section titled “TransactionRevocation”A revocation of the transaction, as it was at the event. reason comes with failed, and with queued after
a revert or a drop; attempts in transaction.reverted and transaction.dropped.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The revocation’s id, as in GET /v1/revocations/{id}. |
external_id required | string | null | Your id for the revocation, null if the request had none. |
batch_index required | integer | The revocation’s place in that transaction’s authorization list, from 0; only with transaction_id. |
account required | Address | The deposit address. |
status required | string | As for a sweep, with revoked for swept. One of: processing, revoked, failed, queued. |
reason | string | Why the revocation ended rejected or failed, or, while it is queued for a retry, why the last attempt did not go through. For rejected: not_delegated (there is no delegation to remove), stale_authorization (the deposit address’s nonce has changed) or invalid_authorization. For failed: not_applied (the chain skipped the authorization). The other codes are the causes of a failed attempt, as in a sweep’s reason. One of: not_delegated, stale_authorization, invalid_authorization, not_applied, insufficient_gas_balance, gas_limit_exceeded, transaction_reverted, nonce_conflict, chain_unavailable, internal. |
attempts | integer | How many times the revocation was tried. |
SweepEvent
Section titled “SweepEvent”A sweep ended before any transaction carried it. sweep.rejected: a check before sending failed; sweep.failed:
its attempts ran out before it was sent, for example the gas wallet could not pay. A sweep that rode a
transaction ends in that transaction’s event instead.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: sweep.failed, sweep.rejected. |
created_at required | string (date-time) | When the event happened. |
data required | Sweep | A sweep and its outcome. |
RevocationEvent
Section titled “RevocationEvent”A revocation ended before any transaction carried it. revocation.rejected: it was never sent;
revocation.failed: its attempts ran out before it was sent. A revocation that rode a transaction ends in that
transaction’s event instead.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: revocation.failed, revocation.rejected. |
created_at required | string (date-time) | When the event happened. |
data required | Revocation | A revocation and its outcome. |
HotWalletEvent
Section titled “HotWalletEvent”A hot wallet’s delegate deployment ended. hot_wallet.active: the delegate is deployed; hot_wallet.failed:
the deployment failed.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: hot_wallet.active, hot_wallet.failed. |
created_at required | string (date-time) | When the event happened. |
data required | HotWallet | A hot wallet on one chain and its own delegate, which holds this hot wallet alone. |
DelegateEvent
Section titled “DelegateEvent”The deployment of a delegate of a set ended. delegate.active: the delegate is deployed; delegate.failed:
the deployment failed. A hot wallet’s own delegate reports with hot_wallet.* events instead.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: delegate.active, delegate.failed. |
created_at required | string (date-time) | When the event happened. |
data required | Delegate | A delegate on one chain: the contract deposit addresses sign their authorizations for, and the fixed set of hot wallets it lets them be swept to. |
TokenEvent
Section titled “TokenEvent”A token you could sweep is refused now: its sweeps kept failing, it failed the checks again when the service
started, or Portuna blocked it. Its sweeps that are still queued are rejected with token_disabled.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: token.refused. |
created_at required | string (date-time) | When the event happened. |
data required | Token | A token on one chain as your account sees it: a base token (the native coin or one Portuna lists), or one you added yourself. |
TariffChangedEvent
Section titled “TariffChangedEvent”What you pay for a token changed, or will: a rate Portuna agreed with you was set, taken back, runs out within 7 days or ran out, or a token’s conventional cost changed. A rise of a conventional cost by more than 5% applies 7 days after this event; you are notified 7 days before an agreed rate runs out, and again when it does.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: tariff.changed. |
created_at required | string (date-time) | When the event happened. |
data required | TariffChange | A change of your tariff on a chain. |
TariffChange
Section titled “TariffChange”A change of your tariff on a chain.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
token required | string | null | The token’s address; null for all of your own tokens on the chain. |
reason required | string | negotiated: an agreed rate was set or taken back; expiring: an agreed rate runs out at effective_at, 7 days from now or sooner, and new_rate_bps applies then, as things stand; expired: an agreed rate ran out; baseline: the token’s conventional cost changed; default: the default rate of your own tokens on the chain changed. One of: negotiated, expiring, expired, baseline, default. |
old_rate_bps required | integer | null | The rate before, for a change of the rate. |
new_rate_bps required | integer | null | The rate after. |
old_conventional_gas required | integer | null | The conventional cost before, for a change of the conventional cost. |
new_conventional_gas required | integer | null | The conventional cost after. |
effective_at required | string (date-time) | When the change applies to the batches prepared from then on. |
BalanceLowEvent
Section titled “BalanceLowEvent”Your gas wallet fell below a low balance threshold. One event each time it falls below; the alert re-arms once the balance recovers.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: balance.low. |
created_at required | string (date-time) | When the event happened. |
data required | BalanceLow | A low balance alert. |
BalancePayoutEvent
Section titled “BalancePayoutEvent”A payout of your available balance to one of your hot wallets was sent (status is sent, with its
transaction), paid or failed. One event for each of these steps.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | The event’s id, the same in every attempt. |
type required | string | The event type. One of: balance.payout. |
created_at required | string (date-time) | When the event happened. |
data required | Payout | A payout of your gas wallet’s available balance, its balance less the fees due, to one of your hot wallets. Your organization’s owner asks for it in the Portuna console; there is no cap of amount. The fees due are never paid out, and the payout’s gas comes out of the available balance. queued: waiting to be sent, before any other transaction of the gas wallet; sent: its transaction is in flight; paid: mined and confirmed; failed: nothing was paid, see reason. |
BalanceLow
Section titled “BalanceLow”A low balance alert.
| Field | Type | Description |
|---|---|---|
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
gas_wallet required | Address | Your gas wallet. |
balance required | Amount | Its balance on this chain when the alert fired, in wei. |
threshold required | Amount | The threshold it fell below, in wei. |
Payout
Section titled “Payout”A payout of your gas wallet’s available balance, its balance less the fees due, to one of your hot wallets.
Your organization’s owner asks for it in the Portuna console; there is no cap of amount. The fees due are never
paid out, and the payout’s gas comes out of the available balance. queued: waiting to be sent, before any
other transaction of the gas wallet; sent: its transaction is in flight; paid: mined and confirmed;
failed: nothing was paid, see reason.
| Field | Type | Description |
|---|---|---|
id required | string (uuid) | |
chain_id required | ChainID | The chain’s id (EIP-155): 11155111 Sepolia and 97 BSC testnet with a test key, 1 Ethereum and 56 BSC with a live key. |
to required | Address | The hot wallet it pays out to. |
amount required | Amount | What it sends, in wei. For a payout of all that is available: what was available when it was asked for, the most it sends, until it is sent; then what its transaction sends, which may be less if it had to be replaced at a higher fee. |
all required | boolean | Everything available when it is sent, less its gas. |
status required | string | One of: queued, sent, paid, failed. |
reason required | string | null | Why a payout failed: insufficient_available, the gas wallet had less available than it asked when it was sent; nothing_available, nothing was available to pay out; signer_refused, the signing service refused it; transaction_reverted, its transaction failed on chain and only its gas was spent; nonce_conflict, another transaction took its place; not_sent, the chain did not take it after a few tries; cancelled, it was stuck and was replaced with a transfer of nothing to your gas wallet, because the chain’s fees rose past what was available beside the fees due or payouts were stopped, and only that transfer’s gas was spent; hot_wallet_gas, a transfer to the hot wallet takes more than 100,000 gas. null unless failed. One of: insufficient_available, nothing_available, signer_refused, transaction_reverted, nonce_conflict, not_sent, cancelled, hot_wallet_gas, null. |
tx_hash required | string | null | Its transaction, once sent; the mined one once paid. |
gas_cost required | string | null | The gas of its transaction, in wei, once mined. |
requested_by required | string | null | The Portuna console’s id of the user who asked for it, your organization’s owner. |
created_at required | string (date-time) | |
sent_at required | string | null (date-time) | |
settled_at required | string | null (date-time) | When it was paid or failed. |