aster-api-auth-v3

Generate EIP-712 signed requests for Aster Futures API v3 authentication.

3|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill aster-api-auth-v3-pieverse-eng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aster-api-auth-v3
Source: https://github.com/Pieverse-Eng/purrfect-skills/tree/main/aster/vendor/futures-auth
Command: npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill aster-api-auth-v3-pieverse-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about aster-api-auth-v3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sign Aster Futures API v3 requests using EIP-712 typed data?

To sign Aster Futures API v3 requests, generate an EIP-712 typed data signature using the domain AsterSignTransaction with chainId 1666. You encode an ASCII-sorted key=value parameter string, sign it with your ECDSA private key, and attach the resulting hex signature to your query string or form-encoded body.

Why does my Aster Futures API authentication fail with timestamp or nonce errors?

Aster Futures API authentication fails when nonces are not monotonically generated in microseconds or when clock skew exceeds the recvWindow. Querying server time before signing requests helps prevent ±5s rejection windows and ensures your EIP-712 signature is accepted without timing errors.

What parameters do I need to include when signing Aster Futures TRADE and USER_DATA requests?

When signing Aster Futures TRADE and USER_DATA requests, you must include user, signer, and a microsecond nonce in your parameter string. Parameters must be ASCII-sorted into key=value pairs before EIP-712 encoding to ensure deterministic, verifiable ECDSA signatures for the AsterSignTransaction domain.

Can I use this EIP-712 request signing for MARKET_DATA and USER_STREAM endpoints?

Yes, EIP-712 request signing applies to MARKET_DATA and USER_STREAM endpoints, as well as TRADE and USER_DATA calls. The signing mechanism produces hex ECDSA signatures suitable for attaching to query strings or POST and DELETE form-encoded bodies across all these Aster Futures API v3 endpoint types.

How should I securely store API keys and signer information for Aster Futures request signing?

You should store user, signer, and private keys in environment variables for secure Aster Futures request signing. This prevents hardcoding sensitive ECDSA private key material in your client or middleware components while generating the required EIP-712 signatures.

What is the correct EIP-712 domain structure for Aster Futures API off-chain request signing?

The correct EIP-712 domain structure for Aster Futures API off-chain request signing uses the domain name AsterSignTransaction, version 1, chainId 1666, and a verifyingContract set to zeros. This structure encodes the Message type for authenticating your ECDSA signed requests.