SDK overview
@tayho/sdk is a provider-neutral TypeScript client for browsers, Node.js, and edge runtimes. It
uses the Tayho API for indexed data and lifecycle state, can optionally read execution-critical
values directly from HyperEVM, and submits every signed write through the Tayho relayer.
Design guarantees
- The API key is required when creating a client.
- Environment configuration is validated before data is trusted.
- API results preserve request IDs, opaque cursors, and indexed checkpoints.
- Onchain amounts and identifiers are decoded to
bigint. - RPC and wallet adapters expose narrow interfaces rather than arbitrary provider access.
- Contract preparation reads use named ABIs and one pinned-block Multicall3 snapshot.
- No adapter exposes
eth_getLogsor transaction broadcasting. - Writes produce inspectable typed data and stable idempotency keys before submission.
Client modules
Client shape
configuration() is memoized for the client lifetime. Create a new client when changing
environment, API key, API origin, signer, or RPC configuration.
Choose a data path
Configuration and providers
Configure API origins, RPC failover, EIP-1193, viem, ethers, and typed-data signing.
Reads
Browse every indexed and live read module and its consistency semantics.
Relayed actions
Prepare, inspect, sign, submit, and wait for non-order actions.
Orders
Submit market and conditional orders and signed cancellation requests.
Package entry points
Ethers is an optional peer dependency. Import only the adapter your application uses.