Skip to content

Request access

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

Resources

Changelog

Changes that matter to your integration, newest first. New fields and event types may appear over time: accept the ones you do not know.

  • Sweep lists (October 25): the new POST /v1/sweep-lists sends up to the chain’s batch size of sweeps in one transaction of their own, and when your gas wallet is free, the response carries the transaction and its hash. wait, 0 to 55 seconds, 10 by default, is how long the request may wait for it: set your HTTP client’s timeout to 60 seconds. Every item needs an external_id: the same set on the same chain is a repeat and gets 200 with the list, and ids of other sweeps get 409 external_id_conflict. GET /v1/sweep-lists/{id} gives a list as it is now. See Sweep lists.

    • New fields: list_id of a sweep, and of a transaction, in the API and in the transaction events, null for a batch of single sweeps. GET /v1/sweeps and GET /v1/transactions filter by list_id.
    • New codes: invalid_items, invalid_items_count, invalid_wait, duplicate_external_id, external_id_conflict, gas_limit_exceeded and too_many_lists. On a chain where lists are not available, the request gets 404 not_found.
    • SDKs: CreateSweepList, SweepList, SweepFilter.ListID and TransactionFilter.ListID in Go; createSweepList, sweepList and the list_id filters in TypeScript. With a 429 or a 503, the API error carries how long Retry-After asks to wait: Error.RetryAfter in Go, ApiError.retryAfter, in seconds, in TypeScript.
  • Breaking: webhooks per transaction (October 25): the outcomes of sweeps and revocations that ride a transaction now come in one event per transaction, with every sweep it carries, instead of one event per sweep. There is no transition period: only the new events are sent, and your receiver needs to handle them. Around the update, for a few minutes, the previous version of the service may still send a sweep.swept or revocation.revoked for a transaction it settled: each is a final outcome, and no transaction event repeats it. See Webhooks.

    • New events: transaction.sent, for every version sent, the first and each replacement at a higher gas price, with version and replaces; transaction.mined, once mined and confirmed, each item swept or failed; transaction.reverted and transaction.dropped, each item queued, to ride a new transaction, or failed. data holds the transaction and its items as they were at the event; a transaction of more than 200 items comes in parts of 200, part of parts. Revocations come in the same events, with kind revocation.
    • Removed: sweep.swept, revocation.revoked and webhook.test. sweep.rejected, sweep.failed, revocation.rejected and revocation.failed now come only for those no transaction carried; a sweep that fails inside a transaction is a failed item of its event. POST /v1/webhook/test sends a sample transaction.mined with test: true in its data.
    • New fields: batch_index, log_index and transfer_log_index of a sweep, batch_index of a revocation and block_number of a transaction, in the API and in the events. The log indexes and the block are not there for what was settled before October 26, 2026. A dropped transaction’s fees is null.
    • Your receiver: apply each item once, never let a later processing or queued replace a final status, and accept bodies of up to 256 KiB.
    • SDKs: in Go, EventTransactionSent, EventTransactionMined, EventTransactionReverted, EventTransactionDropped, Event.Transaction() with Sweeps() and Revocations(), and FinalStatus; EventSweepSwept, EventRevocationRevoked, EventWebhookTest and WebhookTest are gone. In TypeScript, the transaction events in Event, with the types TransactionEvent, SweepItem and RevocationItem, and sweepItems, revocationItems and isFinalStatus; WebhookTest is gone.
  • Transactions and search (October 24): the new GET /v1/transactions lists your gas wallet’s transactions that carry sweeps or revocations, one per batch: its status (pending, mined, reverted, dropped), hash, hot wallets, how its sweeps fared, its gas and fees; GET /v1/transactions/{id} gives one. A sweep and a revocation show the transaction_id and batch_size of the transaction they ride, and GET /v1/sweeps and GET /v1/revocations find them by external_id, by tx_hash, any hash their transaction had, and by transaction_id. SDKs: Transactions, AllTransactions, Transaction and the new filter fields in Go; transactions, allTransactions, transaction in TypeScript. See Reconcile with your books.

  • Breaking: the last classic and benchmark names are renamed (October 20): the API, the webhooks, the console’s CSV and the SDKs now name the conventional sweep and its cost as the docs do: conventional_* for the gas and the cost of a conventional sweep, and baseline for a token’s measured conventional cost, the record with its version and how it was measured. Nothing else changed: the values, the formulas and the fees are the same. There is no transition period, and the former names are not sent alongside the new ones: rename them where your code reads them, or update the SDK to 0.2.0 and rename its identifiers as below. tariff.changed events recorded before the change are delivered with the new names too.

    WhereBeforeNow
    Sweep: GET /v1/sweeps, POST /v1/sweeps, sweep.* eventsclassic_gas, benchmark_versionconventional_gas, baseline_version
    Token: GET /v1/tokens, POST /v1/tokens, token.refused; token card: POST /v1/tokens/check; GET /v1/tariff tokens[]benchmarkbaseline
    baseline, baseline.next; GET /v1/tariff: the chain and its floorclassic_gasconventional_gas
    Token tariff ruleclassic_shareconventional_share
    Token warning codebenchmark_reviewbaseline_review
    tariff.changed: reasonbenchmarkbaseline
    tariff.changedold_classic_gas, new_classic_gasold_conventional_gas, new_conventional_gas
    GET /v1/reports/monthly: an itembenchmarks, classic_gas, classic_costbaselines, conventional_gas, conventional_cost
    GET /v1/reports/monthly: an item’s baselines[]classic_gas, classic_costconventional_gas, conventional_cost
    Console: CSV of the monthly reportbenchmark_versions, classic_gas, classic_cost_weibaseline_versions, conventional_gas, conventional_cost_wei
    OpenAPI schemasBenchmark, ClassicGasBaseline, ConventionalGas
    Go SDK: typesBenchmark, BenchmarkFloor, BenchmarkNext, ClassicGas, ReportBenchmarkBaseline, BaselineFloor, BaselineNext, ConventionalGas, ReportBaseline
    Go SDK: fieldsClassicGas, ClassicCost, BenchmarkVersion, Benchmark, Benchmarks, OldClassicGas, NewClassicGasConventionalGas, ConventionalCost, BaselineVersion, Baseline, Baselines, OldConventionalGas, NewConventionalGas
    Go SDK: constantsRuleClassicShare, TariffChangeBenchmark, WarningBenchmarkReview, BenchmarkMeasured, BenchmarkProvisional, BenchmarkReviewRuleConventionalShare, TariffChangeBaseline, WarningBaselineReview, BaselineMeasured, BaselineProvisional, BaselineReview
    TypeScript SDK: typesBenchmark, BenchmarkMethod, BenchmarkStatus, ClassicGas, ReportBenchmarkBaseline, BaselineMethod, BaselineStatus, ConventionalGas, ReportBaseline
    TypeScript SDK: fields and valuesas in the API above: classic_gas, benchmark, 'classic_share', …conventional_gas, baseline, 'conventional_share', …
  • New contract addresses on the testnets (October 20): the contracts are now built without a metadata hash, so their comments no longer affect the bytecode. The code that runs is the same, but the factory moves to 0xF476A8Fa47629C43704F9399B1De83709f315BC1, and with it every batcher and delegate. Your delegates move to their new addresses on their own; a deposit address delegated to a former delegate needs a new authorization for the new one, or its sweep gets wrong_delegate. Take delegate addresses from GET /v1/hot-wallets and GET /v1/delegates, and update the SDK: verify-delegate checks against the bytecode built into it. See Verifying the delegate.

  • Test USDT from the console (October 19): on the test environment, Tokens → Test USDT mints the testnets’ test USDT to any address you name, e.g. your test deposit addresses, on Sepolia or BSC testnet: Portuna pays the gas, so you need no ETH for it. Up to 10,000 USDT a request and what the address may still receive in the hour, and up to 50,000 USDT in 5 requests a day (UTC) per organization; developers, admins and owners may ask. Minting the token yourself with mint(address,uint256) works as before. See the Quickstart.

  • A batch needs a little more on the gas wallet (October 15): before it is sent, a batch now checks that the gas wallet keeps, beside the fees to be charged, the most the fees of its own sweeps add once it is mined, at the batch’s fee cap, on top of the batch’s gas at that fee cap. So the fees to be charged never exceed the balance. A gas wallet that runs low sees its sweeps retried with insufficient_gas_balance a little sooner than before: keep the usual reserve and the low_balance alert on. See Fees.

  • Withdraw the available balance (October 15): your organization’s owner can send the gas wallet’s available balance, the balance less the fees to be charged, back to one of your hot wallets on the same chain, from the console’s Gas wallet page with a fresh code of the authenticator app, any amount, with no limits. The new GET /v1/payouts lists the payouts, the ledger has the new kind payout, and the new event balance.payout tells when one is sent, paid or failed. A new hot wallet receives withdrawals a while after its delegate is deployed. SDKs: Payouts, AllPayouts and Event.Payout in Go, payouts and allPayouts in TypeScript. See Fees.

  • A new test USDT on the testnets (October 14): 0x3809a97a7a25C8bA577027c0AE2D81a09cdA1a2f, on Sepolia and BSC testnet alike, replaces 0x5B74…e39C. It is a plain ERC-20 like USDT, with 6 decimals and Transfer events, so sweeps on the testnets are confirmed by the token’s events, as on mainnet. Anyone may mint it, up to 10,000 USDT per address an hour: mint(address,uint256). Requests that name the token "USDT" need no change; mint the new token to your test deposit addresses. Sweeps of the former token stay in your history; its balances can no longer be swept. See Environments.

  • Monthly report and the notice of an agreed rate’s end (October 14): GET /v1/reports/monthly?month=YYYY-MM gives the conventional cost, the actual cost and the savings of a UTC month per chain and token: the swept sweeps by kind, the conventional cost by version, the gas, the fees, the savings and the share of the conventional cost you paid, each sweep as it was priced; failed sweeps apart. The console has it as Monthly report, with a CSV download. See Monthly report. You are now notified 7 days before an agreed rate with an end runs out: tariff.changed with the new reason expiring, effective_at at the end and the rate that applies then; the token’s tariff has the new next_rate_bps, the rate after valid_until. SDKs: MonthlyReport and TariffChangeExpiring in Go, monthlyReport in TypeScript, next_rate_bps in both.

  • Tokens without a catalog, and the tariff of your own tokens (October 14): the base tokens of a chain are its native coin and the tokens Portuna lists, on for every account; you can turn any of them off, the native coin included (DELETE /v1/tokens/{chain_id}/native, POST /v1/tokens with "address": "native"). Any other ERC-20 you add by its contract address, on the testnets and on mainnet, in two steps: the new POST /v1/tokens/check checks the token, running your sweep’s own path in a simulation, and returns its card, with what market data providers know of it on mainnet, warnings, the tariff and the conventional cost; then POST /v1/tokens with the new confirm: true adds it. All of it: Tokens.

    • GET /v1/tokens lists the native coin too, as "token": "native" without address. A token’s source is preset instead of registry; its new fields are token (how a sweep identifies it), blocked, provider, check, warnings, tariff and benchmark. A token whose transfer costs more than 80,000 gas is priced at 80,000 until Portuna has reviewed its conventional cost.
    • New error codes: confirmation_required, balance_not_stored, no_transfer_event, transfer_fails, sweep_incompatible, 409 token_needs_support and 503 token_check_unavailable; errors may carry details (cause, category, public_note). POST /v1/sweeps refuses a token with token_disabled (turned off by you), token_refused, token_needs_support or token_blocked; token_disabled no longer covers refused and blocked tokens. Tokens the check finds unsweepable, twice on different blocks, are blocked for every account. Checks are bounded: 429 rate_limited. tariff.changed has the reason default too.
    • The tariff of your own tokens: 80% of the token’s own conventional cost by default on every chain, BSC included, or a rate agreed with Portuna; the conventional cost is measured when you add the token, frozen and versioned, and the network’s floor applies until it is measured. GET /v1/tariff has custom_tokens, floor and tokens; a sweep has tariff_source and benchmark_version. Failed sweeps of your own tokens pay their own gas, with no fee. The new tariff.changed webhook event tells of an agreed rate set, taken back or run out, or of a changed conventional cost, a rise of more than 5% 7 days ahead. See Fees and tariffs.
    • SDKs: CheckToken and EnableToken(…, portuna.Confirmed()) in Go, the zero address as the native coin; checkToken and enableToken({ …, confirm: true }) in TypeScript; the new types, error details and the tariff.changed event in both.
  • Your own tokens (October 11): besides the tokens listed for a chain, which are on for every account and can now be turned off, you can enable any ERC-20 by its contract address, once it passes checks on chain. GET /v1/tokens, POST /v1/tokens and DELETE /v1/tokens/{chain_id}/{address}, the Tokens page in the console, Tokens, EnableToken and DisableToken in the Go SDK and tokens, enableToken and disableToken in the TypeScript SDK. A sweep identifies a token of your own by its address, and sweeps have token_symbol, token_decimals and reported_amount. A token sweep’s amount is now what the token’s Transfer events to the hot wallet say: for a token that keeps a fee on transfers, swept_amount is what arrived, and a token that reports success without a Transfer event ends failed with the new code transfer_not_confirmed. A sweep’s new rejected code is token_disabled; the new error codes are token_disabled, token_blocked, not_a_contract, delegated_account, own_contract, invalid_decimals, too_many_tokens and 503 chain_unavailable; the new event is token.refused. For a token of your own, the conventional cost the fee is computed with is derived for each sweep. All of it: Tokens.

  • Several hot wallets per deposit address: a delegate now holds a set of one to eight of your hot wallets, and each sweep specifies the hot wallet it goes to. POST /v1/delegates creates the delegate of a set of registered hot wallets and GET /v1/delegates lists them; one batch can sweep to several hot wallets. A sweep shows the delegate it ran on, and its new reason codes are wrong_delegate and NotAHotWallet; delegates of sets send delegate.active and delegate.failed. POST /v1/hot-wallets works as before: a hot wallet gets its own delegate, the set of one. The contracts changed with it, and so did every delegate’s address: on the testnets, deposit addresses sign new authorizations for the new delegates.

  • New name: the company is Portuna, the product is Portuna Sweep. Webhooks come with the Portuna-Signature, Portuna-Event and Portuna-Delivery headers and User-Agent: portuna-webhooks/1. New API keys start with ptn_test_ and ptn_live_; keys issued before keep working. The TypeScript package is @portuna/sdk, the Go package portuna.

  • Reason codes: a sweep’s and a revocation’s reason and a hot wallet’s error are stable codes, such as insufficient_gas_balance or chain_unavailable, and never the node’s own messages; a chain’s balance error is chain_unavailable. Every code: Statuses, confirmations and reorgs.

  • Times in UTC: every time in the API and in webhooks is RFC 3339 in UTC, with Z.

  • SDKs: the lists, usage, the delivery log and test events, with iteration over every page, and the webhook.test event.

  • Lists and reports: GET /v1/sweeps, GET /v1/revocations, GET /v1/ledger, GET /v1/usage and GET /v1/webhook/deliveries, and the webhook.test event from POST /v1/webhook/test.

  • API keys: an organization can have several keys; a revoked key gets 401 at once, a disabled account 403 partner_disabled.

  • Testnets: the API is available on Sepolia and BSC testnet, with the Go and TypeScript SDKs.