Skip to main content
POST
/
merchant
/
wallet
/
send
{
  "success": false,
  "error": {
    "status": 400,
    "code": "INSUFFICIENT_BALANCE",
    "message": "Insufficient wallet balance"
  },
  "data": null
}
Send cryptocurrency from the merchant wallet to an external address.
destination
string
required
Destination cryptocurrency address
amount
string
required
Amount to send
coin
string
required
Cryptocurrency to send (BTC, ETH, LTC, SOL)
subtractFee
boolean
Whether to subtract fee from amount
success
boolean
Indicates if the request was successful
data
object
Transaction details
data.txHash
string
Transaction hash
data.fee
string
Transaction fee

Example Request

curl -X POST https://api.transaction.gg/merchant/wallet/send \
  -H "Authorization: Bearer sk_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "destination": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "amount": "0.001",
    "coin": "BTC",
    "subtractFee": true
  }'

Example Response

{
  "success": true,
  "data": {
    "txHash": "abc123...",
    "fee": "0.0001",
    "amount": "0.001",
    "destination": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 400,
    "code": "INSUFFICIENT_BALANCE",
    "message": "Insufficient wallet balance"
  },
  "data": null
}