build_fund
Build the UNSIGNED transaction(s) to fund your leg. Returns chain-specific signing material (EVM txs / BTC pay-to / TRON txs). Sign with your own key/HSM/wallet, then submit via broadcast_tx. The server never holds your keys. A 409 is a state, not a failure: "already funded" / "escrow is already paid" (never pay the escrow again — on Bitcoin the second one may carry feePayTo/feeAmountSats when only the protocol fee is not seen yet), "cannot fund yet" / a missing address (wait or set it, then retry). On Bitcoin after a short payment amountSats is only the remainder (topUp: true). 503 = could not check — retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| leg | Yes |