API reference
Delegates
A delegate of a set of your hot wallets, up to eight on a chain: deposit addresses that authorize it can be swept to any hot wallet of the set. How sets work: Several hot wallets.
List delegates
Section titled “List delegates”GET/v1/delegates
Your delegates on every chain, oldest first: the delegate of each hot wallet alone, from
POST /v1/hot-wallets, and those of sets, from POST /v1/delegates.
Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | Your delegates on every chain. Returns the fields below. |
401 | unauthorized: no API key, an unknown one or a revoked one. |
403 | partner_disabled: your account is disabled. |
Response body
Section titled “Response body”| Field | Type | Description |
|---|---|---|
delegates required | array of Delegate |
Example request
Section titled “Example request”curl "https://api-testnet.portuna.io/v1/delegates" \ -H "Authorization: Bearer $PORTUNA_API_KEY"Example response
Section titled “Example response”{ "delegates": [ { "chain_id": 11155111, "address": "0x4B016ED183d0CF18B99d2d4f9f6F218BC1D9CaF4", "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769" ], "status": "active", "tx_hash": "0x98c1caadf3d6613c07b43c53148e6cc543c7d933fc9d0a4ea590988ab526716d", "created_at": "2026-10-10T09:14:03Z" }, { "chain_id": 11155111, "address": "0x85A6Fa3459969A0b6A64B155728090F589F55d0d", "hot_wallets": [ "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce" ], "status": "active", "tx_hash": "0x3f0e8a5c7d21b4e96a0c5d8f2b7e1a4c9d3f6b8e0a2c5d7f9b1e3a6c8d0f2b4e", "created_at": "2026-10-11T08:29:40Z" }, { "chain_id": 11155111, "address": "0x3FFB2440fe48DfbC2538c37069C0cDF9b806c982", "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769", "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce" ], "status": "active", "tx_hash": "0x6b2d9e4f1a8c3b7e5d0f2a9c6e1b4d8f3a7c0e5b9d2f6a1c8e4b7d0f3a6c9e2b", "created_at": "2026-10-11T08:30:12Z" } ]}Create a delegate for a set of hot wallets
Section titled “Create a delegate for a set of hot wallets”POST/v1/delegates
Deploys a delegate that holds a set of your registered hot wallets on a chain, up to 8. A deposit address
delegated to it can be swept to any hot wallet of the set: each sweep specifies its hot_wallet, and one
batch may go to several. The set is fixed when the delegate is created and is part of its address; the
order in the request does not matter, and the same set always gives the same delegate. To add a hot wallet
later, create a delegate for the new set and have the deposit addresses that should use it sign
authorizations for it; the old delegate keeps working. The delegate’s address is known at once; when it is
deployed you get a delegate.active event, if the deployment fails delegate.failed. A set of one hot
wallet is that hot wallet’s own delegate, which reports with hot_wallet.* events. Creating the same set
again returns its delegate; after failed it restarts the deployment.
Request body
Section titled “Request body”| 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. |
hot_wallets required | array of Address | Your hot wallets on this chain, each registered with POST /v1/hot-wallets; no repeats. |
Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | The delegate of this set is already deployed. Returns Delegate. |
202 | The delegate is being deployed. Returns Delegate. |
400 | invalid_json: the body is not JSON, is over 64 KiB or has unknown fields. |
401 | unauthorized: no API key, an unknown one or a revoked one. |
403 | partner_disabled: your account is disabled. |
422 | unknown_chain: the chain is not supported in this environment; invalid_address: an address is not a non-zero 0x-address; invalid_hot_wallets: the set is empty, has more than 8 hot wallets or repeats one; unknown_hot_wallet: a hot wallet of the set is not registered on this chain. |
Example request
Section titled “Example request”curl -X POST "https://api-testnet.portuna.io/v1/delegates" \ -H "Authorization: Bearer $PORTUNA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "chain_id": 11155111, "hot_wallets": [ "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce", "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769" ]}'Example response
Section titled “Example response”{ "chain_id": 11155111, "address": "0x3FFB2440fe48DfbC2538c37069C0cDF9b806c982", "hot_wallets": [ "0x2Cd50979a8A33e8CA37DA85F8517fb148a67b769", "0x589AdAfeCeb2CDD89fEFC9c37818511239Ed01ce" ], "status": "pending", "created_at": "2026-10-11T08:30:12Z"}