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
chainIdnumberoptionalTarget chain id. Defaults to the config’s defaultChainId.
Returns
The EIP-712 typed-data domain + schema for the delete endpoint.
Throws
SymmErrorwhen the chain has notpslconfig.SymmApiErrorwhen 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.
Related
getTpSlSigningSpec— the spec for the POST endpoint.TpSlSigningSpec— the return shape.
Last updated on