Portuna Sweep
Sweep deposits to your hot wallets without gas top-ups
Each deposit address authorizes your own Portuna delegate once, via EIP-7702. The delegate has no owner and no upgrades, and can send only to your hot wallets, a set of up to 8 fixed in its code. We batch up to 200 deposits per transaction, paid from a dedicated gas wallet you prepay. Keys never leave your custody.
Ethereum
−30%
- Conventional: top up, then transfer
- 62,297
- With Portuna Sweep
- 43,608
BSC no service fee
−73%
- Conventional: top up, then transfer
- 50,715
- With Portuna Sweep
- 13,546
After a sweep, the deposit address holds exactly zero.* Your gas wallet pays the gas, so the address needs no top-ups and no dust stays on it.
* Except when you turn on “leave 1 unit”, and for tokens that recompute balances, such as stETH: 1–2 wei may stay on those.
The problem
A conventional token sweep is two transactions and dust on the address
-
A gas top-up for every address
An address holding only USDT can't move it until someone sends it ETH or BNB. That is a second wallet to fund, a second transaction to sign and a second thing to watch – for every deposit.
-
Dust on every address
With a conventional sweep, the address pays its own gas: it must hold coin for the whole gas limit at the highest price, and what isn't spent stays on it.
-
Two transactions per deposit
Top up, wait, transfer. At thousands of deposits a day, that is thousands of transactions to broadcast, track, speed up and retry.
How it works
Authorize once. Sweep in batches.
- 01
Authorize once per deposit address
Each deposit address signs an EIP-7702 authorization for your own Portuna delegate – a signature from your HSM, KMS or MPC, nothing sent on-chain. It travels with the address's first sweep.
- 02
We batch
Your backend asks the API to sweep a set of addresses. We pack up to 200 of them into one transaction sent from your gas wallet. If one address fails, it's skipped and the rest go through.
- 03
Funds land in your hot wallets
The delegate can send only to your hot wallets, a set of up to 8 fixed in its code. A signed webhook reports what was swept, what it cost, and why anything failed.
A diagram of your system and Portuna. Your backend, custody (HSM, KMS or MPC), deposit addresses and hot wallet stay as they are. Portuna adds an API, a gas wallet and two contracts: the batcher, and a delegate on the deposit addresses. Funds go from the deposit addresses straight to your hot wallet, not through Portuna. The steps below follow the diagram's numbers.
- Deposits. Users pay into deposit addresses, as today.
- Signature. Your custody signs an EIP-7702 authorization once per address. The key stays in your custody.
- API call. Your backend asks to “sweep these addresses”:
POST /v1/sweeps. - One transaction. Portuna sends it, the gas wallet pays the gas. Funds go straight to your hot wallet – money never passes through Portuna.
- Webhook. A signed webhook to your backend: what was swept, gas, fee.
Savings
What a sweep costs
- Ethereum
- −30%
- on every subsequent USDT and USDC sweep on Ethereum: you pay 70% of the conventional cost, gas and fee included
- BSC
- −73%
- on every subsequent USDT sweep on BSC, with no service fee: you pay network gas only
- Per batch
- 1
- transaction per batch of up to 200 deposits, instead of two per deposit
Cost per deposit, in gas units
Run your own numbers| Network and asset | Conventionaltop-up + transfer | First sweep | Every subsequent sweep |
|---|---|---|---|
| Ethereum | |||
| USDT | 62,297 | 43,608 −30% | 43,608 −30% |
| USDC | 61,348 | 42,944 −30% | 42,944 −30% |
| ETH | 21,000 | 29,563 +41% | 15,826 −25% |
| Other token* | 48,900 | 39,120 −20% | 39,120 −20% |
| BSC | |||
| USDT | 50,715 | 31,546 −38% | 13,546 −73% |
| USDC | 57,983 | 32,798 −43% | 14,798 −74% |
| BNB | 21,000 | 29,157 +39% | 13,981 −33% |
| Other token* | 48,900 | 39,120 −20% | 39,120 −20% |
Batches of 50 on Ethereum and 200 on BSC, the sizes the service sends on mainnet, under today's rules. A first sweep carries the address's one-time authorization; and every subsequent sweep of the same address costs less. Both include our fee, counted in gas units.
A first sweep of the native coin costs more than a plain transfer from the deposit, but it takes the balance to zero: no dust is left on the address.
* Any token you add by its contract address, at the 80% rate. Priced here at a conservative default of 48,900 gas for a conventional sweep, below any real ERC-20; your token's own conventional cost is set when you add it.
Counted over the life of an address
The first sweep of an address carries its one-time authorization. On Ethereum today it comes out at −30% against a conventional sweep in a batch of 50, and at +22% in a batch of one, the worst case. After Glamsterdam, Ethereum's next upgrade, it can cost more than a conventional sweep even in a batch of 50, and the address comes out cheaper from 2 sweeps on. Every subsequent sweep of USDT and USDC is cheaper than a conventional sweep at any batch size: −6.7% even in a batch of one.
Security
Your keys stay with you
-
Your keys stay yours
Deposit keys never leave your custody. You sign one authorization per address and can still send from it, or revoke the delegation, at any time.
-
Hard-coded hot wallets
The delegate sends funds only to your hot wallets, a set of up to 8 written into its bytecode. A different set means a different contract and new signatures from you.
-
Only your batches
The delegate accepts calls only from your batcher, and the batcher only from your gas wallet. Nobody else can trigger, redirect or block your sweeps.
-
No admin keys, no upgrades
The contracts are immutable and have no owner: there is no role to steal.
-
Check before you sign
Contract addresses derive from open bytecode.
verify-delegaterecomputes your delegate and checks it on-chain before a single authorization is signed.
Pricing
Pay per successful transfer. No fee without a saving.
-
Usage-based
Gas plus a fee for each successful transfer, deducted from your prepaid gas wallet. No subscription.
-
USDT and USDC: 70%
On Ethereum the fee is capped at 70% of the token's conventional cost, our gas included; where our gas alone is more, you pay just the gas. On BSC there is no fee.
-
Any other token: 80%
Add any ERC-20 by its contract address. Its conventional cost is determined automatically when you add it, and the fee is capped at 80% of it, our gas included. The rate is negotiable.
Large volumes? Terms are negotiable. [email protected]
For developers
One API call per deposit
A REST API described in OpenAPI 3.1, SDKs for Go and TypeScript, and signed webhooks.
- Authorizations from HSM, KMS or MPC. The SDKs turn a raw DER or r‖s signature into a valid EIP-7702 authorization and check it against the deposit address.
- Idempotent by your IDs. Repeat a request with the same
external_idand get the same sweep back. - Signed webhooks with retries. Swept, failed or rejected – with the exact gas and fee of every transfer.
- Test and live keys.
ptn_test_keys work on testnets,ptn_live_on mainnet.
API=https://api.portuna.io
# Register a hot wallet; the service deploys its delegate
curl $API/v1/hot-wallets -H "Authorization: Bearer $API_KEY" \
--json '{"chain_id": 1, "address": "0xYourHotWallet"}'
# → {"delegate": "0x…", "status": "pending", …}
# Sweep a deposit; the authorization is needed only for its first sweep
curl $API/v1/sweeps -H "Authorization: Bearer $API_KEY" --json '{
"external_id": "dep-42",
"chain_id": 1,
"hot_wallet": "0xYourHotWallet",
"account": "0xDepositAddress",
"token": "USDT",
"authorization": {"chain_id": 1, "address": "0xDelegate",
"nonce": 0, "y_parity": 1, "r": "0x…", "s": "0x…"}
}'
# → 202 {"id": "…", "status": "queued", …}
# queued; the result comes by webhook import { Client, authorizationDigest, authorizationFromSignature } from '@portuna/sdk'
const client = new Client({ baseUrl: API, apiKey })
// Register a hot wallet; the service deploys its delegate
const hot = await client.createHotWallet({ chain_id: 1, address: hotWallet })
// Sign the authorization digest with the deposit's key in your HSM, KMS or MPC
const digest = authorizationDigest({ chainId: 1, address: hot.delegate, nonce })
const signature = await kmsSign(digest) // DER or r‖s
const authorization = await authorizationFromSignature({
chainId: 1, address: hot.delegate, nonce, deposit, signature,
})
// Sweep a deposit; the authorization is needed only for its first sweep
const { sweep } = await client.createSweep({
external_id: 'dep-42', chain_id: 1, hot_wallet: hotWallet,
account: deposit, token: 'USDT', authorization,
}) FAQ
Frequently asked questions
Do you hold or redirect our funds?
No. Deposit keys stay in your custody, and funds go from deposit addresses straight to your hot wallets in the same transaction. Your hot wallets, a set of up to 8, are written into the delegate's bytecode, and the contracts have no owner and cannot be upgraded, so there is no other destination to switch to. The only money we handle is the native coin you prepay to your gas wallet to pay for gas.
What exactly does a deposit address sign?
An EIP-7702 authorization: “on chain N, my address runs the code of delegate D”, with the address's current nonce. It is valid on one chain only. D is your own delegate, returned by the API and verifiable from open bytecode.
What happens if your service stops responding?
Nothing gets stuck. Deposit keys keep working: you can move funds from any address yourself, as before, and you can revoke the delegation to turn it back into a plain address.
Will our users notice anything?
No, they deposit to the same addresses as before. One exception: a sender that pays native coin with a hard 21,000 gas limit cannot pay an address that has code. Don't authorize addresses that receive such transfers, or revoke them.
Which networks and tokens?
Ethereum and BSC: USDT, USDC and the native coin out of the box, and any ERC-20 you add by its contract address. You can try it free on the Sepolia and BSC testnets.
How do we start?
Request access to the console: write to [email protected]. Then issue an API key, fund your gas wallet, register a hot wallet and send your first sweep. You can try it free on testnet, where a faucet funds the gas wallet.
Try it on testnet
Access to the console is by request. Write to us, and we'll open it, starting with testnet on Ethereum and BSC.