Networks, assets and payment methods with honest availability
GET
/v1/capabilities
const caps = await gp.platform.capabilities();const usable = caps.networks.filter((n) => n.status !== 'disabled');caps = gp.platform.capabilities()caps, err := client.Platform.Capabilities(ctx)Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”locale
string
Language of reference text (plan names and features, network caveats, disclaimers). Without it the best supported language of Accept-Language is used, else English. Codes, ids and amounts are never translated.
Responses
Section titled “Responses”Capability registry.
Media typeapplication/json
object
object
required
string
environment
required
string
production_enabled
required
boolean
generated_at
required
string format: date-time
networks
required
Array<object>
object
id
required
string
object
required
string
name
required
string
family
required
string
chain_id
required
string | null
environment
required
string
status
required
string
observation_source
required
string
required_confirmations
required
integer
block_time_seconds
required
integer
explorer_tx_url_template
required
string | null
caveats
required
In the request’s language (locale query parameter or Accept-Language), English where untranslated.
Array<string>
assets
required
Array<object>
object
id
required
string
object
required
string
network_id
required
string
symbol
required
string
name
required
string
kind
required
string
contract_address
required
string | null
decimals
required
integer
status
required
string
is_fixture
required
boolean
verification
required
object
status
required
string
source
required
string
payment_methods
required
Array<object>
object
method
required
string
status
required
string
regions
required
Array<string>
notes
required
string
sandbox_mock_available
required
boolean
Example
{ "object": "capabilities", "environment": "sandbox", "networks": [ { "id": "bitcoin:mainnet", "object": "network", "family": "utxo", "environment": "test", "status": "enabled", "observation_source": "simulator" } ], "assets": [ { "id": "btc", "object": "asset", "kind": "native", "status": "enabled", "verification": { "status": "native" } } ], "payment_methods": [ { "method": "crypto", "status": "enabled" } ]}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
Media typeapplication/json
object
error
required
object
type
required
string
code
required
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
string
message
required
Human-readable explanation in English.
string
param
string
request_id
required
string
Example
{ "error": { "type": "invalid_request_error" }}