Get Wallet Balance
Retrieve the TRX balance for the authenticated user’s wallet.
curl -X GET https://api.cryptoshop.com/api/wallet/balance \
-H "Authorization: Bearer YOUR_TOKEN"
Response
The TRX balance in the wallet
{
"address": "TGzz8gjYiYRqpfmDwnLxfgPuLVNmpCswVp",
"balance": 150.5
}
Send TRX
Send TRX from the authenticated user’s wallet to another address.
curl -X POST https://api.cryptoshop.com/api/wallet/send-trx \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"toAddress": "TGzz8gjYiYRqpfmDwnLxfgPuLVNmpCswVp",
"amount": 50
}'
Request Body
The destination wallet address
The amount of TRX to send (must be greater than 0)
Response
The transaction details returned from the blockchain
{
"message": "TRX sent successfully",
"transaction": {
"txID": "a1b2c3d4e5f6...",
"raw_data": {...},
"visible": true
}
}
Error Responses
{
"error": "toAddress and amount are required"
}
All wallet endpoints require authentication via Bearer token in the Authorization header.