API Reference

Signature generation

{
  EIP712Domain: [
    {
      name: 'name', // rysk
      type: 'string',
    },
    {
      name: 'version', // "0.0.0"
      type: 'string',
    },
    {
      name: 'chainId', 
      type: 'uint256',
    },
    {
      name: 'verifyingContract', // <OrderDispatchAddress> 
      type: 'address',
    },
	],
  SignedAuthentication: [
		{
			name: "account",
			type: "address",
		},
		{
			name: "subAccountId",
			type: "uint8",
		},
	],
}

Example response:

[
  {
    "account": "0x1234....",															 // Address of the account holding the position
    "subaccount": 0,                                       // Identifier for the subaccount
    "asset": "0x79a59c326c715ac2d31c169c85d1232319e341ce", // Asset address 
    "quantity": "10000000000000000000000",                 // Quantity of the asset held in e18 decimals
    "pendingWithdrawal": "2000000000000000000000"          // Quantity of the asset pending withdrawal in e18 decimals
  }
]
Language
Click Try It! to start a request and see the response here!