Signing domain
GET
/api/user/environment
const url = 'https://example.com/api/user/environment';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/user/environmentThe 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.
Responses
Section titled “Responses”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
Examplegenerated
{ "environment": "example", "chain_id": 1, "vault": "example", "first_block": 1, "privy_app_id": "example"}