/v1/tx/* return an unsigned transaction that the caller must sign with
its own wallet (passkey, mobile wallet, hardware wallet, etc.) and submit to
an Alephium node.
Anatomy of a build-tx response
Every/v1/tx/* endpoint returns the same shape:
| Field | Description |
|---|---|
unsignedTx | Hex-encoded unsigned transaction. Pass directly to your wallet’s signUnsignedTx helper. |
txId | The txId your wallet should produce after signing. Useful for client-side optimistic UI. |
fromGroup / toGroup | Alephium shard groups. |
gasAmount, gasPrice | Gas estimate for the transaction. |
collateralRequired | USDT (or other token) that will be locked by the tx — useful for pre-flight balance checks. |
attoAlphAmount | ALPH locked by the tx (covers gas + on-chain deposits; auto-swapped from USDT in most cases). |
tokens[] | Tokens locked by the tx, with raw amounts. |
End-to-end example: place a limit order
Why this pattern?
| Custodial API | Aura API |
|---|---|
| You hand over your key (or sign in to a custodian). | Your wallet signs locally; the API only constructs the tx. |
| Custodian can freeze, censor, or drain. | Aura cannot move your funds — at all. |
| Single point of failure. | Aura can go down without affecting your wallet. |
Build-tx endpoints (by domain)
| Domain | Endpoint prefix |
|---|---|
| Orders | POST /v1/tx/markets/{address}/orders |
| Order cancel | DELETE /v1/tx/markets/{address}/orders/{id} |
| Vault | POST /v1/tx/vault/{deposit,unlock,withdraw} |
| Oracle | POST /v1/tx/oracle/{submit,dispute,commit,reveal} |
| Voting | POST /v1/tx/voting/vote |
| Proposals | POST /v1/tx/proposals/{single,linked,parlay} |

