Hanzo
OpenapiWallet

Composes a Safe transaction on the MPC ring and answers its EIP-712 hash…

Composes a Safe transaction on the MPC ring and answers its EIP-712 hash together with the owner approval the ring's threshold signature produced.

POST /v1/wallet/{id}/transactions

Addresshttps://api.hanzo.ai/v1/wallet/{id}/transactions
MethodPOST
Operationpost_wallet_by_id_transactions
AuthAuthorization: Bearer $HANZO_API_KEY

Composes a Safe transaction on the MPC ring and answers its EIP-712 hash together with the owner approval the ring's threshold signature produced. Only a wallet whose custody is "safe" can do this — any other custody is a 400, because the backend itself is asked whether it can propose rather than the kind being switched on. The ring computes the Safe-tx hash bound to the Safe contract and the chain id, so the hash a caller gets back is the one the Safe will verify. This PROPOSES: it does not execute the transaction.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
chainIdbodyintegerChainID is the EVM chain the Safe transaction is bound to.
databodystringData is the call data, hex-encoded.
noncebodyintegerNonce is the Safe's transaction nonce.
tobodystringTo is the transaction's target address.
valuebodystringValue is the native-token amount to send, as a decimal string in wei.

Response

StatusBodyMeaning
200safeProposalok

200 body — 5 fields.

FieldInTypeAlwaysDescription
rbodystringR is the r component of the MPC threshold signature over the Safe-tx hash.
sbodystringS is the s component of that signature.
safeAddressbodystringSafeAddress is the Safe contract this transaction is for.
safeTxHashbodystringSafeTxHash is the EIP-712 Safe transaction hash, bound to the Safe contract and the chain id — the value the owner approval signs.
walletIdbodystringWalletID is the wallet whose Safe this is.

Failure carries the platform error shape — see Errors.

Examples

hanzo wallets transactions <id>

Wallet API · All Hanzo APIs · Interactive reference

How is this guide?

On this page