curl --request POST \
--url https://purps.lol/api/v2/coins/{mint}/authority/submit \
--header 'Content-Type: application/json' \
--data '
{
"ts": 123,
"nonce": "<string>",
"signature": "<string>"
}
'import requests
url = "https://purps.lol/api/v2/coins/{mint}/authority/submit"
payload = {
"ts": 123,
"nonce": "<string>",
"signature": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ts: 123, nonce: '<string>', signature: '<string>'})
};
fetch('https://purps.lol/api/v2/coins/{mint}/authority/submit', 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://purps.lol/api/v2/coins/{mint}/authority/submit",
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([
'ts' => 123,
'nonce' => '<string>',
'signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://purps.lol/api/v2/coins/{mint}/authority/submit"
payload := strings.NewReader("{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://purps.lol/api/v2/coins/{mint}/authority/submit")
.header("Content-Type", "application/json")
.body("{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://purps.lol/api/v2/coins/{mint}/authority/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"kind": "action",
"mint": "<string>",
"url": "<string>",
"queued": "<string>",
"changed": [
"<string>"
],
"id": "<string>",
"status": "<string>",
"payoutWallet": "<string>"
}
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}Submit the signed change
Step 2: the same body as prepare, plus ts, nonce and the wallet’s signature over the message prepare returned (ed25519 over the UTF-8 bytes, base58). The signer must be the wallet named in prepare: the coin’s owner, which is whoever holds its creator rewards, or a platform admin wallet (admins act and change strategy; only the owner can ask for authority or hand the coin on). The nonce only fits the wallet, coin and exact action it was issued for and lives five minutes; a signature is good once. A malformed body is a 400 that names the field, before any signature is looked at. Every money check runs here on the server’s own figures, so a change the coin page would refuse is refused here too. An action is queued for the engine and answers queued with the command id; watch /coins//changes for done or failed, and /coins/ for the position. A strategy change is applied at once and answers changed, the lines that differ. A request answers the request’s id and status. A handover answers the new payoutWallet. Refusals: 401 for a bad signature, a nonce not issued for this wallet and action, or a timestamp older than five minutes; 403 when authority is not on for the coin; 409 when the coin is not live, the market already has an action running, nothing changed, or the signature was already used; 422 when a money check refuses it, with the reason; 423 frozen; 429 for the per-day action count or a cooldown still running; the reason says how long.
curl --request POST \
--url https://purps.lol/api/v2/coins/{mint}/authority/submit \
--header 'Content-Type: application/json' \
--data '
{
"ts": 123,
"nonce": "<string>",
"signature": "<string>"
}
'import requests
url = "https://purps.lol/api/v2/coins/{mint}/authority/submit"
payload = {
"ts": 123,
"nonce": "<string>",
"signature": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ts: 123, nonce: '<string>', signature: '<string>'})
};
fetch('https://purps.lol/api/v2/coins/{mint}/authority/submit', 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://purps.lol/api/v2/coins/{mint}/authority/submit",
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([
'ts' => 123,
'nonce' => '<string>',
'signature' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://purps.lol/api/v2/coins/{mint}/authority/submit"
payload := strings.NewReader("{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://purps.lol/api/v2/coins/{mint}/authority/submit")
.header("Content-Type", "application/json")
.body("{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://purps.lol/api/v2/coins/{mint}/authority/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ts\": 123,\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"kind": "action",
"mint": "<string>",
"url": "<string>",
"queued": "<string>",
"changed": [
"<string>"
],
"id": "<string>",
"status": "<string>",
"payoutWallet": "<string>"
}
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}{
"ok": true,
"error": "<string>"
}Path Parameters
The token's mint address (Solana) or contract address (Robinhood Chain).