Skip to Content

Get Account Info

Endpoint

GET https://api.tachyon.rath.fi/api/user

Query Parameters

ParameterTypeRequiredDescription
addressstringYesThe wallet address to retrieve account information for

Response

Success Response

chains-response.json
{ "success": true, "data": { "userId": "usr_123456789", "address": "0x1234567890abcdef1234567890abcdef12345678", "availableBalance": 1000.50, "pendingBalance": 50.25, "defaultTachyonAccount": { "address": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd", "token": { "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "symbol": "USDC", "name": "USD Coin", "decimals": 6, "iconUrl": "https://example.com/usdc-icon.png" }, "chainId": 1 } }, "timestamp": "2025-10-24T12:34:56.789Z" }

Response Fields

AccountInfo Object

FieldTypeDescription
userIdstringUnique identifier for the user
addressstringThe wallet address of the account
availableBalancenumberThe current available balance in the account
pendingBalancenumberThe balance that is currently pending
defaultTachyonAccountobjectDefault Tachyon account configuration

defaultTachyonAccount Object

FieldTypeDescription
addressstringThe default account address
tokenobjectToken information for the default account
chainIdnumberThe blockchain network chain ID

token Object

FieldTypeDescription
addressstringThe token contract address
symbolstringThe token symbol (e.g., “USDC”, “ETH”)
namestringThe full name of the token
decimalsnumberNumber of decimal places for the token
iconUrlstringURL to the token’s icon image

Error Response

error-response.json
{ "success": false, "error": { "code": "INVALID_ADDRESS", "message": "The provided address is invalid", "category": "VALIDATION_ERROR", "details": { "field": "address", "message": "Address must be a valid Ethereum address" }, "traceId": "trace_abc123xyz789" }, "timestamp": "2025-10-24T12:34:56.789Z" }

TachyonError Object

FieldTypeDescription
codestringError code identifier
messagestringHuman-readable error message
categorystringError category classification
detailsobjectAdditional error details (optional)
traceIdstringUnique trace identifier for debugging purposes

Error Details Object (Optional)

FieldTypeDescription
fieldstringThe field that caused the error
messagestringDetailed error message
validationErrorsarrayArray of validation error objects

Example Usage

cURL

api-request.sh
curl "https://api.tachyon.rath.fi/api/user?address=0x1234567890abcdef1234567890abcdef12345678"

Status Codes

Status CodeDescription
200Success - Account information retrieved
400Bad Request - Invalid address format
404Not Found - Account not found
500Internal Server Error
Last updated on