What problem does it solve?
Removes the complexity and fragility of generating correctly formatted, time-sensitive EIP-712 signatures for Aster Futures API v3 so requests (TRADE, USER_DATA, USER_STREAM, MARKET_DATA) are accepted and authenticated without clock-skew or formatting errors.
Core Features & Use Cases
- EIP-712 Typed Data Encoding: Encode a Message type with domain name "AsterSignTransaction", version "1", chainId 1666, and verifyingContract set to zeros for off-chain request signing.
- Monotonic Microsecond Nonces & Timing: Recommend monotonic nonce construction in microseconds and guidance to query server time to avoid ±~5s rejection and use recvWindow properly.
- Request Formats & Transport: Produce hex ECDSA signatures to attach to query strings or application/x-www-form-urlencoded POST/DELETE bodies; advise storing user, signer, and private keys in environment variables.
- Use Case: Integrate into client middleware to sign outgoing TRADE requests, user data queries, or market-data endpoints with deterministic, verifiable signatures.
Quick Start
Create an EIP-712 signature for an Aster Futures TRADE request by assembling the ASCII-sorted param string including nonce, user, and signer, encoding it with domain AsterSignTransaction (chainId 1666), signing with the API wallet private key, and return the hex signature and timestamp to include in the request body.