Contracts

A collection of helper functions that includes interactions with contracts and EIP712 signing. Vertex contracts can be accessed via the context property on the top level client.

See Contracts API Reference for more details.

Usage

import { createVertexClient } from '@vertex-protocol/client';

const vertexClient = await createVertexClient('arbitrumTestnet', ...);
const queryRes = await vertexClient.context.contracts.querier.read(...);
const txHash = await vertexClient.context.contracts.querier.write(...);

Last updated