Request a Soft Attestation Quote
curl --request POST \
--url https://api.gm.ondo.finance/v1/attestations/soft \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"symbol": "AAPLon",
"tokenAmount": "5.000000000000000000"
}
'import requests
url = "https://api.gm.ondo.finance/v1/attestations/soft"
payload = {
"symbol": "AAPLon",
"tokenAmount": "5.000000000000000000"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'AAPLon', tokenAmount: '5.000000000000000000'})
};
fetch('https://api.gm.ondo.finance/v1/attestations/soft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gm.ondo.finance/v1/attestations/soft",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'AAPLon',
'tokenAmount' => '5.000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gm.ondo.finance/v1/attestations/soft"
payload := strings.NewReader("{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gm.ondo.finance/v1/attestations/soft")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gm.ondo.finance/v1/attestations/soft")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"chainId": "1",
"symbol": "AAPLon",
"ticker": "AAPL",
"assetAddress": "0x96F6eF951840721AdBF46Ac996b59E0235CB985C",
"side": "0",
"tokenAmount": "5000000000000000000",
"price": "225273151158540753535"
}Attestations
Request a Soft Attestation Quote
A soft quote provides pricing information for mint or redeem operations without creating an actual attestation. Unlike the Request a Mint or Redeem Attestation endpoint, soft quotes:
- Are not eligible for on-chain submission
- Do not count against user limits (Active Notional Value, Session Notional Value, or Active Attestations)
- Serve as pricing references for quote validation and user interface display
- Do not include authentication fields such as
attestationId,userId,expiration, orsignature
This endpoint can be used to acquire estimated pricing without impacting trading limits or creating binding commitments.
See also: Error Codes
POST
/
v1
/
attestations
/
soft
Request a Soft Attestation Quote
curl --request POST \
--url https://api.gm.ondo.finance/v1/attestations/soft \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"symbol": "AAPLon",
"tokenAmount": "5.000000000000000000"
}
'import requests
url = "https://api.gm.ondo.finance/v1/attestations/soft"
payload = {
"symbol": "AAPLon",
"tokenAmount": "5.000000000000000000"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({symbol: 'AAPLon', tokenAmount: '5.000000000000000000'})
};
fetch('https://api.gm.ondo.finance/v1/attestations/soft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gm.ondo.finance/v1/attestations/soft",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'symbol' => 'AAPLon',
'tokenAmount' => '5.000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gm.ondo.finance/v1/attestations/soft"
payload := strings.NewReader("{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gm.ondo.finance/v1/attestations/soft")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gm.ondo.finance/v1/attestations/soft")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbol\": \"AAPLon\",\n \"tokenAmount\": \"5.000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"chainId": "1",
"symbol": "AAPLon",
"ticker": "AAPL",
"assetAddress": "0x96F6eF951840721AdBF46Ac996b59E0235CB985C",
"side": "0",
"tokenAmount": "5000000000000000000",
"price": "225273151158540753535"
}Body
application/json
- AttestationByTokenAmountRequest
- AttestationByNotionalValueRequest
Request a soft quote to mint or redeem a quantity of assets.
Response
OK

