Skip to main content
POST
Preview an order's EIP-712 signing data

Body

application/json

private/order params.

amount
string<decimal>
required

Order amount in units of the base, as a decimal string (e.g. "1.5") or a JSON number.

direction
enum<string>
required
Available options:
buy,
sell
instrument_name
string
required
limit_price
string<decimal>
required

Limit price in quote currency, as a decimal string (e.g. "3100.5") or a JSON number.

max_fee
string<decimal>
required

Max fee per unit of volume in quote currency, as a decimal string or a JSON number.

nonce
string
required
signature
string
required
signature_expiry_sec
integer<int64>
required
signer
string
required
subaccount_id
integer<int64>
required
algo_duration_sec
integer<int32> | null
algo_num_slices
integer<int32> | null
algo_type
enum<string> | null
Available options:
twap
client
string | null
extra_fee
string<decimal> | null

Optional extra fee per unit of volume, as a decimal string or JSON number. Defaults to zero.

is_atomic_signing
boolean | null
label
string | null
mmp
boolean | null
order_type
enum<string>
default:limit
Available options:
limit,
market
reduce_only
boolean | null
referral_code
string | null
reject_post_only
boolean | null
reject_timestamp
integer<int64> | null
time_in_force
enum<string>
default:gtc
Available options:
gtc,
post_only,
fok,
ioc
trigger_price
string<decimal> | null

Trigger price as a decimal string or JSON number; omit for non-trigger orders.

trigger_price_type
enum<string> | null
Available options:
mark,
index
trigger_type
enum<string> | null
Available options:
stoploss,
takeprofit

Response

Success

Debug-route payload for one rebuilt action: the EIP-712 hashes plus the action input fields.

action_hash
string
required

EIP-712 struct hash of the Action: keccak256(abi.encode(action_typehash, …, encoded_data_hashed, …)).

action_typehash
string
required

ACTION_TYPEHASH — keccak of the Action struct type string; invariant across deployments.

domain_separator
string
required

EIP-712 domain separator of the Matching contract for this deployment.

encoded_data
string
required

ABI-encoded, module-specific action payload (the data bytes), 0x-hex.

encoded_data_hashed
string
required

keccak256(encoded_data) — the value packed into the struct hash.

expected_signer
string
required

The signer the signature is checked against.

input_data
object
required

The rebuilt Action envelope and its decoded module-specific data.

module
string
required

Per-action module contract address bound into the signed struct.

owner
string
required

Wallet that owns the subaccount the action applies to.

typed_data_hash
string
required

Final EIP-712 digest the client signs: keccak256(0x1901 || domain_separator || action_hash).

recovered_signer
string | null

null on the debug routes (no signature is checked there); on a signature-mismatch error this is the address actually recovered.