latestOpenAPI 3.1.02026-08-1051108155.9 KB

6e6f8dad92bf

LinkedSigner

Links a signer address with the sender address for order delegation

post/v1/linked-signer/link

Request body

signaturestring hex required

Hex-encoded EIP-712 signature authorizing this request

signerSignaturestring hex required

Hex-encoded EIP-712 signature authorizing this request

Example request

{
  "data": {
    "category": "TRADE_SESSION",
    "name": "Delegated signer",
    "nonce": "2687929537462333",
    "sender": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "signedAt": 1712019600,
    "signer": "0x1Db3439a222C519ab44bb1144fC28167b4Fa6EE6",
    "subaccount": "0x7072696d61727900000000000000000000000000000000000000000000000000",
    "subaccountId": "9036443a-441a-4a66-87f2-bd5c44cdca7a"
  }
}

Response

blockNumberstring

Block number the signer has been linked on. Undefined means it has not be processed

category'TRADE_SESSION' | 'API'

Category of the linked signer: API or TRADE_SESSION

createdAtinteger required

Link signer submission timestamp (ms since Unix Epoch)

expiresAtinteger required

Signer expiry timestamp (ms since Unix Epoch)

idstring required

Id representing the linked signer

linkedAtinteger

Onchain linkage timestamp (ms since Unix Epoch)

namestring

Optional name for the linked signer

revokedAtinteger

Onchain revocation timestamp (ms since Unix Epoch)

revokedBlockNumberstring

Block number the signer has been revoked on. Undefined means it has not be processed

signerstring hex required

Address of the signer linked with the subaccount (non-checksummed)

status'PENDING' | 'ACTIVE' | 'PENDING_REVOKE' | 'REVOKED' | 'REJECTED' required

Status of the signer

Example response

{
  "blockNumber": "123062737",
  "category": "TRADE_SESSION",
  "createdAt": 1712019600000,
  "expiresAt": 1713229200000,
  "id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
  "linkedAt": 1712019615000,
  "name": "Delegated signer",
  "revokedAt": 1712019600000,
  "revokedBlockNumber": "123062737",
  "signer": "0x1Db3439a222C519ab44bb1144fC28167b4Fa6EE6",
  "status": "PENDING"
}