Assets HTTP API
Assets
API Keys can be found at dtontech_bot
To use them, just pass API key to url, example:
Endpoint
URL: /api/v1/assets/<users>/
Method: GET
Parameters
Parameter Name | Type | Description |
|---|---|---|
users | String | A single user address or a comma-separated list of user addresses. |
Behavior
- Single User:
- When the users parameter contains one address, the API returns all asset data for the specified user.
- Example: /api/v1/assets/address
- Multiple Users:
- When the users parameter contains multiple addresses (comma-separated), the API returns grouped asset data for all specified users.
- Example: /api/v1/assets/address1,address2
Response
- Single User: A JSON array of asset objects for the user, including related jetton_info.
- Multiple Users: A JSON array of grouped asset objects with user-specific data nested.
Assets Net Worth
Endpoint
URL: /api/v1/assets/net_worth/<users>/
Method: GET
Parameters
Parameter Name | Type | Description |
|---|---|---|
users | String | A single user address or a comma-separated list of user addresses. |
Response
JSON containing 2 keys - net_worth_ton, net_worth_usd
{
"net_worth_ton": Decimal,
"net_worth_usd": Decimal
}
Assets Token Info
Endpoint
URL: /api/v1/assets/token_info/<address>/
Method: GET
Parameters
Parameter Name | Type | Description |
|---|---|---|
address | String | Jetton Master Address or 0:000... for TON |
Response
JSON containing TokenInfo object