Read one gas station

GET/gas-stations/{id}

Return one gas station of the environment with its current balance: the same object the list answers with, so a receiver of gas_station.created following related_object.url reads it without a second vocabulary.

  • A station belonging to another environment answers 404 resource_missing, identical to an identifier that exists nowhere.

  • A resetting sandbox.

    While a sandbox's reset runs it answers 409 environment_resetting: nothing is served for a sandbox until its reset finishes.

Parameters

Path

  • idstring <uuid>required

    The gas station being addressed. A value that is not a UUID answers 422 parameter_invalid naming id.

Headers

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

Responses

The gas station resolved.

  • idstring <uuid>required

    The station's own identifier.

  • objectstringrequired

    The object's type, always gas_station.

  • environment_idstring <uuid>required

    The environment this station funds. It is carried on the object rather than implied by the request, so the scope a client rendered is the scope the server answered in.

  • livemodebooleanrequired

    true when environment_id names a live environment and false in a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from.

  • addressstringrequired

    The funded address, in the chain's own encoding.

  • pathstringrequired

    The BIP-44 derivation path the address was derived at. Chains in one key family share an address, so two stations may report the same one on different chains.

Show 9 more fields
  • indexinteger <int32>required

    The station's position in the HD sequence its path walks.

  • network_idinteger <int32>required

    The chain the station funds, as the chain's own numeric identifier. It is not a UUID and it addresses nothing in this API: a client resolves it against the network catalogue.

  • network_symbolstringrequired

    The chain's own slug, not the coin's ticker. ethereum is funded in ETH, and the two are different facts that v1 spelled with names close enough to be read as one.

  • symbolstringrequired

    The ticker of the coin the chain charges fees in.

  • assetstringrequired

    That coin's display name.

  • decimalsinteger <int32>required

    The coin's precision, which is what scales balance.raw to balance.amount.amount_decimal. v1 calls the same fact decimal.

  • What a gas station holds of its chain's own coin, in the three forms a client needs at once: the chain's integer, the scaled amount a person reads, and the valuation.

    • rawstringrequired

      The on-chain integer, in the coin's smallest unit, as a decimal string. v1 sent it as a number, which silently rounded any chain whose smallest unit needs more than a double can hold. It is the one figure a client reconciles against a block explorer.

    • What the station holds, as a TokenAmount in the coin's symbol and decimals: its amount is raw and its amount_decimal is raw scaled exactly by decimals ("1.234567890123456789" for a raw "1234567890123456789" at 18 decimals). It is the figure a low-gas threshold is compared against.

    • usdstringrequired

      What the balance is worth in USD, as a decimal string. A coin the price feed does not carry is valued "0", which is an unpriced asset rather than an empty station.

  • created_atstring <date-time>required

    When the station was derived. RFC3339 UTC, Z suffixed.

  • updated_atstring <date-time>required

    When the station last changed. RFC3339 UTC, Z suffixed.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/gas-stations/string" \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY"

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"id": "4b91d0c7-2a63-4e18-8f5c-71ab3e6d9204",
"object": "gas_station",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"address": "0x9e14b7a2c05f8361d4be7f902c1a5d38e0b64719",
"path": "m/44'/60'/0'/0/0",
"index": 0,
"network_id": 60,
"network_symbol": "ethereum",
"symbol": "ETH",
"asset": "Ethereum",
"decimals": 18,
"raw": "500000000000000000",
"amount": "12500000",
"amount_decimal": "12.5",
"decimals": 6,
"asset": "USDC"
},
"usd": "1000.00"
},
"created_at": "2026-01-14T09:33:47Z",
"updated_at": "2026-02-03T11:04:12Z"
}