Generate nonce
const options = {method: 'GET'};
fetch('https://api.gnosispay.com/api/v1/auth/nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.gnosispay.com/api/v1/auth/nonceimport requests
url = "https://api.gnosispay.com/api/v1/auth/nonce"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gnosispay.com/api/v1/auth/nonce"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gnosispay.com/api/v1/auth/nonce")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gnosispay.com/api/v1/auth/nonce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"a1b2c3d4e5f6"{
"message": "<string>"
}{
"error": "Internal server error"
}Authentication
Generate nonce
GET
/
api
/
v1
/
auth
/
nonce
Generate nonce
const options = {method: 'GET'};
fetch('https://api.gnosispay.com/api/v1/auth/nonce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.gnosispay.com/api/v1/auth/nonceimport requests
url = "https://api.gnosispay.com/api/v1/auth/nonce"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gnosispay.com/api/v1/auth/nonce"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gnosispay.com/api/v1/auth/nonce")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gnosispay.com/api/v1/auth/nonce")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"a1b2c3d4e5f6"{
"message": "<string>"
}{
"error": "Internal server error"
}Response
Nonce generated successfully
The response is of type string.
Example:
"a1b2c3d4e5f6"
⌘I