curl --request POST \
--url https://api.coinlist.co/v1/wallet-ownership \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "ethereum_sepolia",
"wallet_address": "0x742d35cc6634c0532925a3b844bc9e7595f0beb1",
"challenge_type": "plain",
"domain": "example.com",
"statement": "Sign in with Ethereum",
"uri": "https://example.com/login"
}
'import requests
url = "https://api.coinlist.co/v1/wallet-ownership"
payload = {
"chain": "ethereum_sepolia",
"wallet_address": "0x742d35cc6634c0532925a3b844bc9e7595f0beb1",
"challenge_type": "plain",
"domain": "example.com",
"statement": "Sign in with Ethereum",
"uri": "https://example.com/login"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain: 'ethereum_sepolia',
wallet_address: '0x742d35cc6634c0532925a3b844bc9e7595f0beb1',
challenge_type: 'plain',
domain: 'example.com',
statement: 'Sign in with Ethereum',
uri: 'https://example.com/login'
})
};
fetch('https://api.coinlist.co/v1/wallet-ownership', 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.coinlist.co/v1/wallet-ownership",
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([
'chain' => 'ethereum_sepolia',
'wallet_address' => '0x742d35cc6634c0532925a3b844bc9e7595f0beb1',
'challenge_type' => 'plain',
'domain' => 'example.com',
'statement' => 'Sign in with Ethereum',
'uri' => 'https://example.com/login'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.coinlist.co/v1/wallet-ownership"
payload := strings.NewReader("{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.coinlist.co/v1/wallet-ownership")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinlist.co/v1/wallet-ownership")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}"
response = http.request(request)
puts response.read_body{
"expires_at": "2025-01-01T00:00:00.000000Z",
"message": "<string>"
}{
"message": "<string>",
"type": "api_error",
"code": "<string>",
"errors": {},
"event_id": "<string>"
}Request a wallet ownership challenge
curl --request POST \
--url https://api.coinlist.co/v1/wallet-ownership \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "ethereum_sepolia",
"wallet_address": "0x742d35cc6634c0532925a3b844bc9e7595f0beb1",
"challenge_type": "plain",
"domain": "example.com",
"statement": "Sign in with Ethereum",
"uri": "https://example.com/login"
}
'import requests
url = "https://api.coinlist.co/v1/wallet-ownership"
payload = {
"chain": "ethereum_sepolia",
"wallet_address": "0x742d35cc6634c0532925a3b844bc9e7595f0beb1",
"challenge_type": "plain",
"domain": "example.com",
"statement": "Sign in with Ethereum",
"uri": "https://example.com/login"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chain: 'ethereum_sepolia',
wallet_address: '0x742d35cc6634c0532925a3b844bc9e7595f0beb1',
challenge_type: 'plain',
domain: 'example.com',
statement: 'Sign in with Ethereum',
uri: 'https://example.com/login'
})
};
fetch('https://api.coinlist.co/v1/wallet-ownership', 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.coinlist.co/v1/wallet-ownership",
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([
'chain' => 'ethereum_sepolia',
'wallet_address' => '0x742d35cc6634c0532925a3b844bc9e7595f0beb1',
'challenge_type' => 'plain',
'domain' => 'example.com',
'statement' => 'Sign in with Ethereum',
'uri' => 'https://example.com/login'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.coinlist.co/v1/wallet-ownership"
payload := strings.NewReader("{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.coinlist.co/v1/wallet-ownership")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinlist.co/v1/wallet-ownership")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chain\": \"ethereum_sepolia\",\n \"wallet_address\": \"0x742d35cc6634c0532925a3b844bc9e7595f0beb1\",\n \"challenge_type\": \"plain\",\n \"domain\": \"example.com\",\n \"statement\": \"Sign in with Ethereum\",\n \"uri\": \"https://example.com/login\"\n}"
response = http.request(request)
puts response.read_body{
"expires_at": "2025-01-01T00:00:00.000000Z",
"message": "<string>"
}{
"message": "<string>",
"type": "api_error",
"code": "<string>",
"errors": {},
"event_id": "<string>"
}Authorizations
OAuth 2.0 authorization and token endpoints
Body
Wallet ownership challenge params
Creates a wallet ownership challenge. Two modes are supported:
- plain (default): produces a random nonce. Only
wallet_addressandchainare required.domain,uri, andstatementmust not be provided. - siwe: produces an EIP-4361 Sign-In with Ethereum message. Requires
domain,uri, andstatementin addition towallet_addressandchain. Only supported for EVM chains.
The blockchain network the wallet belongs to. EVM chains (e.g. ethereum_sepolia) support both plain and SIWE challenges. Non-EVM chains (e.g. solana_devnet) support plain challenges only.
ethereum_sepolia, base_sepolia, solana_devnet, ethereum_mainnet, base_mainnet, solana_mainnet "ethereum_sepolia"
The wallet address to prove ownership of. For EVM chains, must be a valid 40-hex-digit Ethereum address (normalized to lowercase). For non-EVM chains, must not contain whitespace and is limited to 128 characters.
"0x742d35cc6634c0532925a3b844bc9e7595f0beb1"
The type of challenge to generate. plain (default) produces a random nonce. siwe produces an EIP-4361 message and requires domain, uri, and statement.
plain, siwe "plain"
Required when challenge_type is siwe; must not be provided for plain challenges. The hostname of the requesting service. Must be a valid hostname (e.g. example.com or app.example.com:3000).
"example.com"
Required when challenge_type is siwe; must not be provided for plain challenges. A human-readable message the user is agreeing to. Must not contain newlines. Maximum 256 characters.
256"Sign in with Ethereum"
Required when challenge_type is siwe; must not be provided for plain challenges. The URI of the resource being accessed. Must be a valid URI with scheme and host.
"https://example.com/login"