POST
Prepare or submit a setup step

Authorizations

Authorization
string
header
required

From POST /v1/auth/verify; seven days by default, revocable. Required for financial operations. 60 requests/s, burst 120, shared by the user's sessions.

Path Parameters

venue
string
required

A venue id from GET /v1/venues.

step
string
required

One of the venue's steps (permit, agent, api_key).

Body

application/json
ref
string

The prepared request's ref.

signature
string

A 65-byte signature r ‖ s ‖ v, v 0, 1, 27 or 28, s low (EIP-2).

Pattern: ^0x[0-9a-fA-F]{130}$

Response

The step.

step
enum<string>
required
Available options:
permit,
agent,
api_key
status
enum<string>
required

pending: submitted, not yet shown by the venue (ten minutes at most).

Available options:
done,
pending,
required
reason
string | null
required

Why a step done before is required again: the venue refused it, it expired, the linked address or LaMarge's escrow, agent or key changed; or why Lighter's key cannot be done yet: the account has no deposit.

expires_at
string<date-time> | null
required

When the step lapses (Aster's agent approval, 365 days).

needed_for
enum<string>[]
required
Available options:
make,
pay,
receive
to_sign
null | object
required

The request to sign, returned by preparing a required step: permit (EIP-712 typed_data), aster_approval (EIP-712 typed_data, valid 60 seconds) or lighter_api_key (message, signed with personal_sign). Submit it with its ref.

hash
string | null
required

The permit's relay transaction, while one is known.