Skip to main content

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

address
string
required
The wallet address
balance
number
required
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

toAddress
string
required
The destination wallet address
amount
number
required
The amount of TRX to send (must be greater than 0)

Response

message
string
required
Success message
transaction
object
required
The transaction details returned from the blockchain
{
  "message": "TRX sent successfully",
  "transaction": {
    "txID": "a1b2c3d4e5f6...",
    "raw_data": {...},
    "visible": true
  }
}

Error Responses

error
string
Error message
{
  "error": "toAddress and amount are required"
}
All wallet endpoints require authentication via Bearer token in the Authorization header.

Build docs developers (and LLMs) love