Retrieves all market state. Can be done via the engine (off-chain) or from on-chain contracts.
Last updated 2 months ago
See API reference for more details.
Makes a call to the on-chain Querier contract via the SDK.
import { createVertexClient } from '@vertex-protocol/client'; const vertexClient = await createVertexClient('arbitrumTestnet', ...); const res = await vertexClient.market.getAllMarkets(...);
Makes a call to via the SDK.
import { createVertexClient } from '@vertex-protocol/client'; const vertexClient = await createVertexClient('arbitrumTestnet', ...); const res = await vertexClient.market.getAllEngineMarkets(...);