TEE API Wallets

Verify the manager signature and enqueue the API-wallet approval directive.

post/v1/tee-api-wallet/approval

Request

  • Base URL: https://testnet-api.hypercall.xyz
  • URL: https://testnet-api.hypercall.xyz/v1/tee-api-wallet/approval
  • Auth: none declared

Request body

accountstring required

Ethereum wallet address serialized as a checksummed 0x-prefixed hex string.

authenticationSignaturestring required

Manager signature over Hypercall's timestamped authentication message.

managerstring required

Ethereum wallet address serialized as a checksummed 0x-prefixed hex string.

noncestring required

Nonce returned by the approval-request endpoint.

signaturestring required

Account manager's EIP-712 signature over the returned typed data.

teeWalletIdstring required

Opaque identity returned by POST /v1/tee-api-wallet/approval-request.

timestampinteger required

Unix timestamp in seconds included in the EIP-191 authentication message.

Example request

{
  "account": "0x1234567890abcdef1234567890abcdef12345678",
  "manager": "0x1234567890abcdef1234567890abcdef12345678",
  "nonce": "18446744073709551615",
  "teeWalletId": "0x2222222222222222222222222222222222222222222222222222222222222222"
}

Response

API-wallet approval directive accepted or rejected

accountstring required

Ethereum wallet address serialized as a checksummed 0x-prefixed hex string.

actionKeystring required

Which action was submitted.

directiveIdstring required

Unique directive identifier.

noncestring required

Nonce used for the directive.

recoveredSignerstring

Ethereum wallet address serialized as a checksummed 0x-prefixed hex string.

stage'rejected' | 'enqueued' | 'submitted' required

How far the directive got in the pipeline.

txHashstring nullable

On-chain transaction hash (null if not submitted yet or async path used).

Example response

{
  "account": "0x1234567890abcdef1234567890abcdef12345678",
  "nonce": "18446744073709551615",
  "recoveredSigner": "0x1234567890abcdef1234567890abcdef12345678"
}

Changes

No recorded changes to this operation across all 1 revision of this API.