fund_leg
Fund your side of an agreed cross-chain swap on-chain with the agent's own key by approving and locking tokens in the HTLC, paying P2WSH, or signing the escrow transaction.
Instructions
AUTONOMOUS SETTLEMENT: fund YOUR side of an agreed swap on-chain, signing with the agent's own key (HASHLOCK_EVM_KEY / TRON / BTC / SOLANA for that leg's chain). Funds the leg you give — approves the token (EVM/TRON) and locks it in the HTLC, pays the P2WSH (BTC), or signs the escrow transaction the server builds (Solana). Prerequisites: the deal is agreed and BOTH parties have set their settlement addresses (set_settlement_address). Returns the on-chain tx id. Fund your long leg first if you are the initiator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swap_id | Yes |