Skip to content

Signing domain

GET
/api/user/environment
curl --request GET \
--url https://example.com/api/user/environment

The vault the exchange holds money in. Sign every order, modify, cancel, grant and withdrawal in the EIP-712 domain with name Inflection Exchange, version 1, this chain_id and the vault as verifyingContract. Read it before you sign. It changes only when the exchange moves to a new vault. Needs no signature.

Successful Response

Media typeapplication/json
Environment
object
environment
required
Environment

local, staging, testnet or prod.

string
chain_id
required
Chain Id

The chain the vault is on: the signing domain’s chainId.

integer
vault
required
Vault

The vault’s address: the signing domain’s verifyingContract.

string
first_block
required
First Block

A block at or before the vault’s deploy, where its events start.

integer
privy_app_id
required
Any of:
string
Examplegenerated
{
"environment": "example",
"chain_id": 1,
"vault": "example",
"first_block": 1,
"privy_app_id": "example"
}