Execute Send
HTTP endpointPOST
/api/pay/sendEnv: Node runtime with local SDK keyfiles
- This endpoint executes a real `money.send(...)` from the server wallet.
- Defaults to `network: "testnet"` unless `mainnet` is provided.
curl -X POST '/api/pay/send' \
-H 'Content-Type: application/json' \
-d '{"to":"fast1rv8wsdd5pnkwt4u637g2yj4tpuyq26rzw8380rfhpnsnljz7v3tqv4njuq","amount":"0.1","chain":"fast","network":"testnet","token":"SETUSDC"}'Example success response
{
"request": {
"to": "fast1rv8wsdd5pnkwt4u637g2yj4tpuyq26rzw8380rfhpnsnljz7v3tqv4njuq",
"amount": "0.1",
"chain": "fast",
"network": "testnet",
"token": "SETUSDC"
},
"setup": {
"chain": "fast",
"network": "testnet",
"address": "0x..."
},
"result": {
"txHash": "0x...",
"explorerUrl": "https://...",
"fee": "0",
"chain": "fast",
"network": "testnet",
"note": ""
},
"sentAt": "2026-03-05T14:35:35.171Z"
}Example failure responses
HTTP 400
{
"error": "Recipient address is invalid for the selected chain."
}Recovery: Validate recipient format for the selected chain.
HTTP 500
{
"error": "Chain is not configured.",
"code": "CHAIN_NOT_CONFIGURED"
}Recovery: Configure/setup the chain wallet before sending.