Request a Mint or Redeem Attestation

An attestation is a signed payload that authorizes a user to mint or redeem tokens. Each attestation is only valid for a limited time and is determined by the duration in the request. A user can specify a duration of short for a tighter price spread or long for an extended validity period.

Note: There are specific user and session limits which can prevent the creation of an attestation. For more information on limits, see the Get Trading Limits endpoint.

See also: Error Codes

Body Params

Request a mint or redeem attestation.

Request to mint or redeem a quantity of assets.

string
enum
required

The chain's identifier including the chain name and chain id.

Allowed:
string
required

The GM token symbol.

string
enum
required

The direction of the trade.

Allowed:
string
required

The number of tokens, represented as a string-encoded decimal with up to 18 digits after the decimal point.

string
enum

Specifies the desired validity period for the attestation. Users can specify a duration of 'short' for a tighter price spread or 'long' for an extended validity period.

Allowed:
string

The Solana user address associated with the request. This is only required for Solana attestations.

Responses

400

One of the request parameters is invalid. Please see the returned message and documentation for details.

401

Missing or invalid API key. Please provide your API key in the x-api-key request header.

429

Client is sending too many requests and exceeded the rate limit.

500

An internal server error occurred. Please see the returned message and documentation for details.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json