Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreTP/SLgetTpSlDeleteSigningSpec

getTpSlDeleteSigningSpec

Fetch the handler’s EIP-712 signing spec for the DELETE endpoint (/api/v5/signing-spec-del). Distinct from the POST spec because the delete typed data uses a different primaryType and message struct. Drives the signature that deleteQuoteTpSl produces.

Stable per deployment — cache indefinitely. Called internally by deleteQuoteTpSl; exposed for advanced consumers that sign their own delete messages.

import { getTpSlDeleteSigningSpec } from "@symmio/trading-core"; const spec = await getTpSlDeleteSigningSpec(config); // { domain, types, primaryType }

Parameters

chainIdnumberoptional

Target chain id. Defaults to the config’s defaultChainId.

Returns

The EIP-712 typed-data domain + schema for the delete endpoint.

Throws

  • SymmError when the chain has no tpsl config.
  • SymmApiError when the HTTP request fails.

Query options

import { getTpSlDeleteSigningSpecQueryOptions } from "@symmio/trading-core"; import { useQuery } from "@tanstack/react-query"; useQuery(getTpSlDeleteSigningSpecQueryOptions(config));

getTpSlDeleteSigningSpecQueryOptions takes no required inputs — cache forever. getTpSlDeleteSigningSpecQueryKey builds the matching cache key.

Last updated on