Wallet API
The Wallet API allows you to programmatically transfer and withdraw MYRC tokens. Perfect for building wallets, payment systems, or any application requiring stablecoin functionality.
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/v1/wallet/address | GET | Get your wallet deposit address |
/v1/wallet/balance | GET | Get your wallet balance |
/v1/wallet/transactions | GET | List wallet transactions |
/v1/wallet/networks | GET | Get supported networks |
/v1/wallet/token/transfer | POST | Transfer tokens to external address |
/v1/wallet/bank-accounts | GET | List linked bank accounts |
/v1/wallet/fiat/withdraw | POST | Withdraw fiat to bank account |
Overview
What is MYRC?
MYRC is a Malaysian Ringgit-backed stablecoin where 1 MYRC = 1 MYR. It enables instant, low-cost transfers across supported blockchain networks.
Supported Networks
| Network | Chain ID | Token Contract |
|---|---|---|
| Ethereum | 1 | 0x... |
| Arbitrum One | 42161 | 0x... |
| Solana | - | MYRC... |
Quick Example
Transfer Tokens
curl -X POST "https://api.blox.my/v1/wallet/token/transfer" \
-H "blox-api-key: $BLOX_API_KEY" \
-H "Content-Type: application/json" \
-H "Content-Digest: sha-256=:$CONTENT_DIGEST:" \
-H "Signature-Input: sig1=(@method @path content-digest content-type);created=$TIMESTAMP;keyid=\"$KEY_ID\";alg=\"ed25519\"" \
-H "Signature: sig1=:$SIGNATURE:" \
-d '{
"tokenId": "550e8400-e29b-41d4-a716-446655440000",
"addressTo": "0x742d35Cc6634C0532925a3b844Bc9e7595f...",
"amount": 10000
}'Withdraw to Bank
curl -X POST "https://api.blox.my/v1/wallet/fiat/withdraw" \
-H "blox-api-key: $BLOX_API_KEY" \
-H "Content-Type: application/json" \
-H "Content-Digest: sha-256=:$CONTENT_DIGEST:" \
-H "Signature-Input: sig1=(@method @path content-digest content-type);created=$TIMESTAMP;keyid=\"$KEY_ID\";alg=\"ed25519\"" \
-H "Signature: sig1=:$SIGNATURE:" \
-d '{
"bankAccountId": "ba_123456",
"amount": 50000
}'Authentication
All Wallet API requests require:
- API Key - Via
blox-api-keyheader - Request Signature - RFC 9421 HTTP Message Signature for POST requests
Rate Limits
| Environment | Limit |
|---|---|
| Sandbox | 100 requests/minute |
| Production | 1000 requests/minute |
Last updated