0Bit Documentation

Retrieve an asset

GET /capabilities/assets/{symbol} - Read one asset capability record by symbol.

0Gate is the primary public integration path for hosted payment, ramp, and swap experiences. Keep secret-key operations on your server and hand only browser-safe values to the widget.

Endpoint

FieldValue
MethodGET
Path/v1/capabilities/assets/{symbol}
AreaCapabilities
Operation idgetAsset
Auth boundarySecret key from your server.

The {symbol} path parameter is a crypto asset symbol, discovered from GET /capabilities/assets. An unknown or inactive symbol returns 404.

Use it for

Read a single asset's capability record by symbol when you already know the asset and want its current networks, active flag, and limits — for example to validate an asset on your server before creating a session, or to render an asset detail view.

Use this endpoint only for discovery. It is read-only and never moves money, locks a quote, or creates a session.

Production rules

  • Keep secret keys on your server. This endpoint requires an sk_* key; a publishable pk_* key can only call embed-bootstrap.
  • Validate the asset symbol and the chosen networks[].chain on your server before quoting or creating a session.
  • Treat a 404 as "not transactable here" — both an unknown symbol and an asset not offered in the resolved region return 404, with no leak about which assets exist elsewhere.
  • Branch on machine-readable fields (symbol, active, networks[].chain) and the X-Request-Id header, not on display strings.
  • Treat examples and placeholder values as fake data only.

Request

This is a GET with no body.

ParameterInRequiredTypeUse it for
symbolpathYesstringThe asset symbol to retrieve, for example USDC. Case-insensitive.
sidequeryNoon_ramp / off_rampResolve the record for that side. Defaults to on_ramp; a symbol not transactable on the requested side returns 404.

Response

Returns a single asset object (not wrapped in a list envelope). It carries the same fields as a list element, plus the echoed currency.

FieldTypeDescription
objectstringAlways asset.
symbolstringAsset symbol. Use this as the canonical id.
namestringHuman-readable asset name; falls back to symbol.
sideon_ramp / off_rampThe side this record was resolved for.
activebooleanfalse when temporarily disabled — do not offer it.
icon_urlstring | nullAsset icon URL, or null.
networksarraySupported on-chain networks (see below).
networks[].chainstringNetwork/chain identifier.
networks[].namestringDisplay name for the network.
networks[].contract_addressstring | nullToken contract address on that chain, or null for a native asset.
min_amountstring | nullPer-asset minimum, as a decimal string, or null when not set.
max_amountstring | nullPer-asset maximum, as a decimal string, or null when not set.
currencystring | nullThe echoed fiat (ISO 4217) the record was resolved for, or null.

Examples

curl 'https://gate-api.0bit.app/v1/capabilities/assets/USDC?side=on_ramp' \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
{
  "object": "asset",
  "symbol": "USDC",
  "name": "USD Coin",
  "side": "on_ramp",
  "active": true,
  "icon_url": "https://cdn.example/usdc.svg",
  "networks": [
    {
      "chain": "ethereum",
      "name": "ethereum",
      "contract_address": "0x0000000000000000000000000000000000000000"
    }
  ],
  "min_amount": null,
  "max_amount": null,
  "currency": null
}

Errors

All errors use the unified envelope and carry an X-Request-Id response header. Branch on code/type/statusCode, not on the free-form message.

{
  "type": "not_found",
  "code": "not_found",
  "message": "Example not-found error using fake data.",
  "request_id": "req_test_000000000123",
  "doc_url": null,
  "statusCode": 404
}
StatustypeWhen it happens
401unauthorizedMissing or invalid secret key.
404not_foundUnknown symbol, not transactable on the requested side, or not offered in the resolved region.
429rate_limitedRequest throttled. Back off and retry.
5xxserver_errorTransient server or upstream failure. Retry with backoff.

Public boundary

This reference covers partner-scoped capability discovery. Internal operations, administrative routes, settlement venues and providers, and unsupported availability claims are outside the public API contract.

On this page