Agent API reference
This page lists every request of the Agent API with its fields, the statuses it reports and the errors it can answer. Start with Agent API for setting up an account and the order-to-sale walkthrough.
Conventions
Section titled “Conventions”| Base URL | https://tropic.trade |
| Authentication | Authorization: Bearer tpk_… on every request but the two sign-in requests. A key is tpk_ and 43 more characters; get one by wallet sign-in or in Settings → Security → API keys, and revoke it there. |
| Request body | JSON with Content-Type: application/json. A field the request does not define is refused (invalid_body). |
| Amounts | USDG as decimal strings ("100", "12.5") in requests and in review. Amounts in an error’s detail are in USDG’s smallest unit (6 decimals: "1000000" is 1 USDG). |
| Weights | Basis points: 10,000 is 100%. |
| Identifiers | belief_id and action_id are UUIDs; order_id is a 32-byte hex string. |
| Times | ISO 8601, UTC. |
| Errors | An HTTP status and { "error": "<code>", "detail": …, "request_id": "…" }. Quote request_id when you report a problem. |
| Rate limits | 1,200 orders, sales, submissions and cancellations a minute per key; 40,000 reads a minute per IP address; the sign-in requests count per IP address. Over a limit: 429 rate_limited. |
| Where to call from | A server or a script. A web page on another site cannot call the API: browsers refuse the cross-site request. Keep the key out of web pages. |
POST /api/agent/auth/nonce
Section titled “POST /api/agent/auth/nonce”The sign-in message for a wallet. No key is needed.
| Field | Type | Meaning |
|---|---|---|
address | string | The wallet’s address. |
| Answer field | Type | Meaning |
|---|---|---|
message | string | The message to sign (Sign-In with Ethereum, EIP-4361): it names tropic.trade, the wallet’s address, Robinhood Chain’s chain ID and a one-time nonce. |
expires_at | string | The last moment the signed message is accepted, 10 minutes after it was issued. |
POST /api/agent/auth/keys
Section titled “POST /api/agent/auth/keys”A signed sign-in message exchanged for an API key, 201. The wallet’s first sign-in creates its account; a later one, or one by a wallet that signed in to tropic.trade before, reaches the same account. No key is needed.
| Field | Type | Meaning |
|---|---|---|
message | string | The message from POST /api/agent/auth/nonce, unchanged. |
signature | string | The wallet’s personal-message signature (personal_sign) of message: 0x and 130 hex digits. |
name | string, optional | What to call the key, one line of 1 to 60 characters; Wallet sign-in when absent. |
| Answer field | Type | Meaning |
|---|---|---|
key | string | The API key. It is shown only here. |
id, name, prefix, created_at, last_used_at | The key as Settings lists it. | |
account_id, signer_address, safe_address | string | The account, as GET /api/agent/account shows it. |
handle | string or null | The account’s @handle; null until one is claimed. |
A nonce is used once: sign in again with a new message.
PUT /api/agent/handle
Section titled “PUT /api/agent/handle”Claim the account’s @handle. Publishing a Belief needs one (handle_required). A handle is set once and never changes.
| Field | Type | Meaning |
|---|---|---|
handle | string | 5 to 15 letters, digits or underscores, without @. |
The answer is { "handle": "…", "display_name": "…" }; an account still under the default name takes the handle as its name.
GET /api/agent/account
Section titled “GET /api/agent/account”The account the key acts for.
| Field | Type | Meaning |
|---|---|---|
account_id | string | The account’s id. |
signer_address | string | The account’s signing wallet: it signs every order and sale. |
safe_address | string | The account’s address on Robinhood Chain, which holds its cash (USDG) and its Belief assets. |
chain_id | number | Robinhood Chain’s chain ID, 4663. Typed data to sign names it in its domain. |
GET /api/agent/assets
Section titled “GET /api/agent/assets”What a portfolio may hold. The list is public: it answers with or without a key.
| Field | Type | Meaning |
|---|---|---|
assets[].symbol | string | The symbol a portfolio leg names. |
assets[].name | string | The asset’s name. |
assets[].spot | boolean | Whether a long leg at 1× can buy the asset itself. |
assets[].perp | object or null | The asset’s perpetual market, where there is one: max_leverage (the most leverage a leg may state) and whole_leverage_only (whether the leverage must be a whole number). |
max_assets | number | The most legs a portfolio may hold. |
A listed asset can still be refused when an order is prepared, for example when its market cannot fill the order now (asset_unfillable, quote_unavailable).
POST /api/agent/orders
Section titled “POST /api/agent/orders”Prepare a purchase: a new Belief’s first order, or a purchase of a Belief that exists.
Headers: Idempotency-Key (optional, 1 to 100 printable ASCII characters; see Idempotency).
| Field | Type | Meaning |
|---|---|---|
belief | object | A new Belief. Send belief or belief_id, not both. |
belief.title | string, optional | One line, up to 120 characters. |
belief.thesis | string | The view, 8 to 25,000 characters. |
belief.portfolio | array | 1 to max_assets legs (below). |
belief_id | string | A Belief that exists: one of the account’s own, or anyone’s published Belief. |
spend | string | The most the order takes from the account’s cash, every fee included. |
slippage_bps | number, optional | Price tolerance of each trade, 1 to 500; 100 (1%) when absent. |
accept_deviation_bps | number, optional | Confirms buying above the reference price; see price_above_reference under Errors. |
A portfolio leg:
| Field | Type | Meaning |
|---|---|---|
symbol | string | An asset from GET /api/agent/assets. |
weight_bps | number | A whole number other than 0. The absolute values of all legs add up to exactly 10,000. A negative weight is a short, which needs the asset’s perpetual market. |
venue | string, optional | spot or perp. When absent: a long at 1× buys the asset itself where spot is true; a short, a leverage above 1× or an asset without spot trades on its perpetual market. |
leverage | number, optional | 1 to the asset’s max_leverage, at most two decimals (a whole number where whole_leverage_only). 1 when absent. A perpetual-market leg only. |
rationale | string, optional | Up to 500 characters, kept with the leg. |
The answer, 201 (200 for a repeat of an idempotency key):
| Field | Type | Meaning |
|---|---|---|
belief_id | string | The Belief bought (for a new Belief, the one this request created). |
action_id | string | The operation to sign. |
order_id | string | The order the operation opens. |
status | string | prepared until it is signed and submitted; see GET /api/agent/actions/:id. |
valid_until | string | The last moment a signature is accepted. |
safe_op_hash | string | The hash the signature covers. Compute it yourself from typed_data and compare. |
typed_data | object or null | The EIP-712 typed data to sign; null once the operation is no longer prepared. |
review | object | The order’s numbers (below). |
replayed | boolean | Present and true on a repeat of an idempotency key. |
review of a purchase:
| Field | Meaning |
|---|---|
spend | The most the order takes, as requested. |
principal | What buys the Belief’s assets. |
buy_fee | The purchase fee (Fees). |
order_network_fee | The network fee prepaid for the order’s execution. |
network_fee | The network fee of this operation itself. |
exit_deposit_top_up | What this order adds to the holding’s exit deposit (Belief assets). |
max_debit | The most the order itself takes from cash; network_fee is paid beside it. Together they stay within spend. |
publishes | True when this order is the new Belief’s first: the Belief is published when it completes. |
POST /api/agent/sales
Section titled “POST /api/agent/sales”Prepare a sale of the account’s holding of a Belief.
Headers: Idempotency-Key (optional).
| Field | Type | Meaning |
|---|---|---|
belief_id | string | The Belief whose holding to sell. |
fraction_bps | number | The part to sell, 1 to 10,000; 10,000 sells all of it. |
The answer has the fields of an order’s, with this review:
| Field | Meaning |
|---|---|
fraction_bps | The part sold. |
full_exit | Whether the sale closes the holding. |
expected_proceeds | The expected cash back, after the sale fee and network fees. |
min_proceeds | The least cash back the signed order accepts. |
sale_fee | The sale fee (Fees). |
order_network_fee | The network fee of the sale’s execution, paid from the exit deposit first, then from the proceeds. |
network_fee | The network fee of this operation itself. |
POST /api/agent/actions/:id/submit
Section titled “POST /api/agent/actions/:id/submit”Submit the signing wallet’s signature of a prepared operation, before its valid_until.
| Field | Type | Meaning |
|---|---|---|
signature | string | 65 bytes as hex (0x and 130 hex digits): the EIP-712 signature of typed_data, or a personal-message signature of safe_op_hash with 4 added to its v. |
Tropic simulates the operation before it sends it; one that would fail is refused (execution_would_revert) and costs nothing. The answer is the operation as GET /api/agent/actions/:id shows it.
POST /api/agent/actions/:id/cancel
Section titled “POST /api/agent/actions/:id/cancel”Give up a prepared operation without signing it. A new Belief’s draft is released for another first order.
| Field | Type | Meaning |
|---|---|---|
action_id | string | The operation. |
status | string | expired when it was cancelled; otherwise its status, unchanged (an operation already submitted cannot be cancelled). |
released | boolean | Whether a new Belief’s draft was released. |
GET /api/agent/actions/:id
Section titled “GET /api/agent/actions/:id”An operation’s status and its order’s progress.
| Field | Type | Meaning |
|---|---|---|
action_id | string | The operation. |
kind | string | buy for an order, fund_reduce for a sale, battle_join for a Battle entry, battle_stop_all for a stop or a leave, battle_withdraw for a withdrawal of Battle cash. |
status | string | prepared (waiting for a signature), submitted (sent), included (onchain), failed or expired. |
error | string or null | Why it failed or expired. |
tx_hash | string or null | The transaction that included it. |
valid_until | string | The last moment a signature was accepted. |
order | object or null | The order, below. |
belief | object or null | The Belief: id and status (draft until a new Belief’s first order publishes it, then published). |
battle_entries | array or null | A Battle entry’s operation only: once it is included and recorded, each entry it created, host and entry_id; null before. |
order:
| Field | Meaning |
|---|---|
id | The order’s id. |
kind | add (a purchase) or reduce (a sale); null until the operation is onchain. |
state | The order’s state onchain, null until the operation is onchain: open (buying), committed (bought), locking and executing (selling), settled (sold, paying out), aborting (refunding), completed, cancelled (refunded). |
stage | What the app shows for it: processing, partially_delivered, verifying, committed_syncing, reserving, selling, settled_syncing, refunding, completed or cancelled. |
done | True once Tropic has finished with the order. |
A purchase has bought its assets when its state is committed or completed; a sale has paid out when it is settled or completed. Only the onchain state is final: poll until done, every few seconds.
GET /api/agent/portfolio
Section titled “GET /api/agent/portfolio”The account’s cash and open holdings, valued as the app’s Portfolio values them. Holdings follow the chain: a holding appears, or changes, usually within a minute after its order is done, while the cash it spent leaves at once.
| Field | Type | Meaning |
|---|---|---|
safe_address | string | The account’s address. |
cash | string | USDG the account can spend. |
holdings[].belief_id | string | The Belief held. |
holdings[].belief_title | string or null | Its title. |
holdings[].status | string | active, or pending_valuation while a change is being recorded. |
holdings[].copy | boolean | Whether this is a holding of Copy trades, which POST /api/agent/sales does not sell. |
holdings[].value_usd | number or null | The holding’s value now; null when an asset has no price. |
holdings[].cost_usd | number or null | What the part still held cost. |
holdings[].unrealized_pnl_usd | number or null | Value less cost. |
holdings[].realized_pnl_usd | number or null | Profit or loss of what was sold. |
holdings[].pending_actions | array | Operations in flight on it: action_id, kind, status. |
battle_entries[] | array | The account’s Battle entries: the newest 200, and every older one still open. Fields below. |
battle_cash[] | array | Battle cash a host holds for the account: host, amount. |
A Battle entry (battle_entries[]):
| Field | Meaning |
|---|---|
host, battle_title, entry_id | The Battle and the entry. |
side, side_label | a or b, and the camp’s name. |
round_id, round_start, round_end | The round the entry plays. |
status | waiting (its round has not started: it can leave), live (playing, and renews unless stopped), stopping (stops after this round), settling (the round ended and is being settled), renewed (it continued into renewed_into), settled (its cash came back), left. |
stopped | Whether a stop was asked. |
capital, heat_bps | The entry’s capital in this round, and its Heat. |
belief_id, belief_title | The Belief it holds. |
end_cash, net_result | Once settled: what the round left the entry, and its result after the round fee. |
renewed_into, renewed_from | The entries it continued into and from. |
admitted_at, left_at | When it was admitted, and when it left. |
GET /api/agent/battles
Section titled “GET /api/agent/battles”The listed Battles still to be played: upcoming, live, or between rounds. Public: it answers with or without a key. GET /api/agent/battles/:host answers one Battle, whatever its state.
| Field | Type | Meaning |
|---|---|---|
host | string | The Battle’s address: the id every Battle request names. |
title, description | string | The Battle’s title and description. |
status | string | upcoming (before its first round), live (a round is being played), break (between rounds) or ended. |
admission_enabled | boolean | Whether new entries are accepted. |
current_round | number or null | The round being played; null when none is. |
next_round | number or null | The round an entry made now enters: the live one, or the next one before the Battle or between rounds. |
round_count | number | How many rounds are scheduled. |
round_start, round_end | string or null | When the round an entry made now enters starts and ends. |
round_fee | string | That round’s fixed fee per entry. |
fee_bps, tie_bps | number | The settlement fee on the transfer between camps, and the score difference under which a round is a draw. |
heat_range, heat_options | The Heat an entry may choose (min_bps to max_bps in steps of step_bps), and the app’s shortcuts. | |
max_assets | number | The most assets an entering Belief may hold. |
current_heat_bps | number or null | The round’s Heat if no further entry is admitted: the capital × time weighted Heat of every entry of both camps. The losing camp loses this share of its capital. |
scores_as_of | string or null | When the scores below were computed. |
sides.a, sides.b | object | Each camp (below). |
participants | number | Accounts with an open entry. |
A camp (sides.a, sides.b):
| Field | Type | Meaning |
|---|---|---|
label | string | The camp’s name. |
capital | string or null | The capital of the camp’s entries in the round being played. |
capital_time | string or null | The camp’s capital × time: each entry’s capital times the seconds from its price time to the round’s end, summed, in USDG × seconds. It is the weight the round’s Heat and the camp’s score give each entry. |
heat_bps | number or null | The camp’s own capital × time weighted Heat. |
score_pct | number or null | The camp’s score now, in percent: its entries’ capital × time weighted return. |
entries | number or null | The camp’s entries in the round being played. |
The figures count the entries renewing from the round before while it still settles, as the app does. A camp’s figures are null while it waits for a round’s boundary price.
POST /api/agent/battles/:host/entries
Section titled “POST /api/agent/battles/:host/entries”Prepare an entry in a Battle with a published Belief (the account’s own or anyone’s). It enters the round next_round names.
Headers: Idempotency-Key (optional; see Idempotency).
| Field | Type | Meaning |
|---|---|---|
belief_id | string | The Belief the entry holds. Its assets must be ones the Battle admits. |
side | string | a or b. |
spend | string | The most the entry takes from cash: its capital, the round fee and the network fee. Send spend or capital, not both. |
capital | string | The entry’s capital; the round fee and the network fee are paid beside it. |
heat_bps | number | The entry’s Heat, a whole number in heat_range. It never changes, renewals included. |
only_this_round | boolean, optional | Play this round and no other: the entry’s stop is signed in the same operation as its entry, so it never renews. Default false: the entry renews round after round until it is stopped. |
use_available | boolean, optional | Pay the capital and round fee from the Battle cash this host holds for the account (battle_cash in the portfolio) instead of from cash. |
max_round_fee | string, optional | The most round fee the entry accepts, for this round and every round it renews into; a later round with a higher fee is not entered and the entry’s cash comes back. The entering round’s fee when absent. |
expected_round | number, optional | Refuse the entry (battle_round_changed) if it would enter another round. |
The answer has the fields of an order’s, with this review:
| Field | Meaning |
|---|---|
host, side, side_label | The Battle and the camp. |
round_id | The round the entry enters. |
priced_from | For an entry made before its round starts: the round’s start, its price time. Null when the entry is priced when it is confirmed. |
spend, capital, round_fee, max_round_fee, network_fee | The amounts. |
total_debit | Capital and round fee. |
heat_bps, use_available | As requested. |
only_this_round | Whether the entry’s stop is signed with it. |
expected_entry_id | With only_this_round: the id the entry will get. Should another entry be admitted first, the operation is refused by its simulation (execution_would_revert), or, if it lands, reverts as a whole; nothing is entered or stopped. Prepare it again. |
publishes | Always false: only a published Belief enters through the API. |
Once the operation is included, GET /api/agent/actions/:id names the entry in battle_entries.
POST /api/agent/battles/:host/entries/:entry/stop
Section titled “POST /api/agent/battles/:host/entries/:entry/stop”Prepare the stop of an entry after the round it plays: it does not renew, and its cash comes back after the round settles. A stop must be decided before the next round starts (in the last round, before it ends). For an entry whose round has not started, it plays that round and stops.
POST /api/agent/battles/:host/entries/:entry/leave
Section titled “POST /api/agent/battles/:host/entries/:entry/leave”Prepare the leave of an entry whose round has not started: its capital and round fee come back at once, and it plays no round. Refused once the round has started, or less than 30 seconds before (round_started).
The answer to a stop or a leave has the fields of an order’s, with this review:
| Field | Meaning |
|---|---|
entries[] | The entry: host, entry_id, action (stop or leave), round_id, side, capital, and for a leave round_fee_returned. |
network_fee | This operation’s network fee, waived when the account’s cash cannot pay it. |
POST /api/agent/battles/:host/withdraw
Section titled “POST /api/agent/battles/:host/withdraw”Prepare the withdrawal of the Battle cash this host holds for the account (battle_cash in the portfolio) to the account’s cash.
| Field | Type | Meaning |
|---|---|---|
amount | string, optional | How much; all of it when absent. |
review: host, amount, network_fee.
A settled entry’s cash comes back to the account’s cash by itself. Battle cash stays with the host only when that transfer failed; it can then be withdrawn, or used for another entry of the same Battle (use_available).
Idempotency
Section titled “Idempotency”A request with an Idempotency-Key prepares at most once. The first request with a key records it with the account; a repeat with the same key and the same body answers what the first prepared, replayed: true, and prepares nothing new. The key is kept for good: to order again, use a new key.
| Case | Answer |
|---|---|
| A repeat while the first request is still preparing | 409 idempotency_key_in_progress: retry in a few seconds. |
| The same key with a different body | 422 idempotency_key_reused. |
| The first request failed before it prepared anything | The same request with the same key tries again; a new Belief’s draft from the first attempt is reused. |
Errors
Section titled “Errors”| Status | Code | When | What to do |
|---|---|---|---|
| 401 | unauthorized | No Authorization header. | Send the key. |
| 401 | invalid_api_key | The key is malformed, unknown or revoked. | Create a new key. |
| 401 | key_refused | A key was sent to a route outside /api/agent/. | Use the Agent API’s routes only. |
| 400 | invalid_address | address is not a wallet address. | Fix the address. |
| 400 | invalid_message | The message is not one POST /api/agent/auth/nonce issued for this site and chain, was changed, or is more than 10 minutes old (detail.problem: malformed, site, chain, statement, address or expired). | Ask for a new message and sign it unchanged. |
| 400 | signature_mismatch | The signature is not by the address the message names. | Sign with that wallet. |
| 401 | wallet_sign_in_refused | The sign-in was refused: the nonce was already used or has expired. | Ask for a new message. |
| 503 | wallet_sign_in_unavailable | The sign-in service did not answer. | Retry in a minute. |
| 409 | wallet_not_signer, signer_changed | The wallet is linked to an account whose signing wallet is another one, so it could not sign that account’s orders (detail.signer_address). | Use the account’s signing wallet. |
| 400 | invalid_handle, handle_reserved | The handle breaks the rule above, or is reserved. | Pick another. |
| 409 | handle_taken, handle_immutable | Another account has the handle, or this account already has a different one. | Pick another, or keep the one it has. |
| 409 | handle_required | A new Belief’s first order was asked for an account without a handle; nothing is written. | Claim one with PUT /api/agent/handle, then send the same request again. |
| 429 | rate_limited | Over a rate limit. | Wait a minute. |
| 400 | invalid_json, invalid_body | The body is not JSON, or breaks the fields above (detail lists the problems). | Fix the request. |
| 400 | invalid_idempotency_key, invalid_action_id | A malformed header or path. | Fix the request. |
| 409 | idempotency_key_in_progress | See Idempotency. | Retry shortly. |
| 422 | idempotency_key_reused | See Idempotency. | Use a new key. |
| 400 | weights_must_sum_10000 | The weights’ absolute values do not add up to 10,000. | Fix the weights. |
| 400 | unknown_symbol | A symbol is not in GET /api/agent/assets. | Pick a listed asset. |
| 400 | spot_unavailable, spot_requires_long | A leg asks for spot where the asset has none, or shorts on spot. | Use perp, or another asset. |
| 400 | short_requires_perp, perp_unavailable | A short or a perpetual-market leg on an asset without that market. | Use another asset. |
| 400 | leverage_invalid, leverage_above_max, leverage_not_whole | The leverage is outside 1 to max_leverage, has more than two decimals, or is not whole where it must be. | Fix the leverage. |
| 400 | event_legs_unsupported | A leg names a prediction market outcome. | Buy such Beliefs in the app. |
| 404 | belief_not_found | belief_id names no Belief the account can buy. | Check the id. |
| 409 | insufficient_balance | Cash is below what the order takes (detail.balance, detail.amount). | Add USDG, or spend less. |
| 400 | amount_too_small | The order cannot buy every leg’s minimum (detail.min_principal). | Spend more, or use fewer legs. |
| 409 | core_launch_minimum | A new Belief’s first order is below its minimum ($50 of principal). | Spend more. |
| 409 | belief_launch_pending | An earlier first order of this Belief is still open. | Wait for it, or cancel it. |
| 409 | price_above_reference | A leg’s price is above its reference price by more than the limit (detail.worst_bps, detail.legs). | Send the same order again with accept_deviation_bps at least detail.worst_bps to accept the price, or wait. |
| 409 | asset_unfillable, asset_not_transferable, quote_unavailable | An asset cannot be bought now (detail.symbol). | Retry later, or pick other assets. |
| 409 | fund_busy | Another order on this Belief’s holding is still open. | Wait for it. |
| 404 | holding_not_found | The account holds no part of that Belief. | Check belief_id. |
| 409 | holding_busy, holding_empty, proceeds_below_network_fee | A sale is already in flight, nothing is left to sell, or the proceeds would not cover the network fee. | Wait, or sell a larger part. |
| 400 | invalid_host, invalid_entry_id | A malformed Battle address or entry id in the path. | Fix the request. |
| 404 | battle_not_found | No Battle has that address. | Check host. |
| 409 | battle_not_open, battle_round_changed | The Battle accepts no entry now, or the entry would enter another round than expected_round (detail.round, detail.status). | Read the Battle again. |
| 400 | invalid_heat | The Heat is outside heat_range. | Fix the Heat. |
| 409 | asset_not_in_battle, too_many_assets, asset_unpriced | The Belief holds an asset the Battle does not admit or cannot price now, or more assets than max_assets. | Use another Belief, or wait. |
| 409 | round_fee_changed | The round’s fee is above max_round_fee (detail.round_fee). | Accept the fee with max_round_fee, or wait. |
| 409 | battle_capacity_reached, platform_frozen | The Battle holds all the capital it may, or entries are paused. | Wait. |
| 409 | insufficient_available_cash | The host holds less Battle cash than the entry or the withdrawal needs (detail.available). | Pay from cash, or withdraw less. |
| 409 | battle_settling | An only_this_round entry while the round before is still being settled (its renewals take entry ids). | Retry in a few minutes, or enter without only_this_round. |
| 404 | entry_not_found | The account has no entry with that id in that Battle. | Check the id. |
| 409 | entry_not_live | The entry already settled or renewed into another. | Stop the entry it renewed into (renewed_into). |
| 409 | already_stopped | A stop was already asked. | Nothing to do. |
| 409 | round_started | A leave once the entry’s round has started (detail.round_start). | Stop it instead. |
| 409 | battle_round_ending | A stop or leave less than 30 seconds before its deadline (detail.round_end). | After the round settles, stop the entry it renewed into. |
| 404 | action_not_found | No operation of this account has that id. | Check the id. |
| 409 | action_not_prepared, action_expired | The operation was already submitted, cancelled, replaced by a newer one or past valid_until. | Prepare a new one. |
| 400 | invalid_signature, signature_not_owner | The signature is malformed, or not by the account’s signing wallet (detail.recovered). | Sign with the signing wallet. |
| 409 | execution_would_revert | The simulation shows the operation would fail onchain; nothing was sent. | Prepare a new one. |
| 429 | too_many_failed_operations | Three operations failed within 10 minutes. | Wait 10 minutes. |
Preparing an operation replaces the account’s other operations that are not signed yet (they expire), so prepare one at a time per account.