Skip to main content
Streams the USD price of each chain’s gas asset: SOL on solana, ETH on base and robinhood, BNB on bsc. Subscribe on an open stream connection. See WebSocket streams for connections, frames and reconnection.

Filters

string[]
Chain slugs whose prices to send. Omit it or send [] to include every chain. arc is accepted, but its gas asset is USDC, so it receives no updates.
{} sends the price of every chain. Each subscription uses one unit of the address limit, whatever its chains.

Message format

Each update’s data is the price of one whole unit of one chain’s gas asset. It has the same row shape that Native prices returns, and price.native is always "1". An update is sent for each chain about every 10 seconds, whether or not the price changed. Each update counts against the organization’s credits, so a {} subscription uses about one credit per chain every 10 seconds. List only the chains you need. Keep one price per chain, choosing the row with the later observedAt.

Initial snapshot

  1. Subscribe.
  2. Read Native prices with chains set to the subscription’s chains.
  3. Merge the REST response and the updates using the rule above.
A chain with no price yet has no row in the REST response. Its price is sent with the next update.

Errors