Verify Wallet
curl --request POST \
--url https://api.example.com/v1/wallets/{walletId}/verifyimport requests
url = "https://api.example.com/v1/wallets/{walletId}/verify"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/wallets/{walletId}/verify', 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.example.com/v1/wallets/{walletId}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/wallets/{walletId}/verify"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/wallets/{walletId}/verify")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/wallets/{walletId}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyWallets
Verify Wallet
POST /v1/wallets/:walletId/verify — Prove control of a registered wallet with a signed challenge
POST
/
v1
/
wallets
/
{walletId}
/
verify
Verify Wallet
curl --request POST \
--url https://api.example.com/v1/wallets/{walletId}/verifyimport requests
url = "https://api.example.com/v1/wallets/{walletId}/verify"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/wallets/{walletId}/verify', 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.example.com/v1/wallets/{walletId}/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/wallets/{walletId}/verify"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/v1/wallets/{walletId}/verify")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/wallets/{walletId}/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoint:
POST https://api.rebelfi.io/v1/wallets/:walletId/verifyWATCH_ONLY or LEGACY wallet becomes
CONTROLLED. Use it for wallets registered without a proof, and for any wallet whose operations fail with
WALLET_NOT_VERIFIED.
First request a challenge for the wallet’s address and sign its message with the
wallet.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
walletId | number | Yes | Wallet ID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
challengeId | number | Yes | From Request Ownership Challenge |
signature | string | Yes | The wallet’s signature of the challenge message. Solana: base58. EVM: 0x hex |
Example Request
curl -X POST "https://api.rebelfi.io/v1/wallets/42/verify" \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"challengeId": 917,
"signature": "3vZk...9xQ"
}'
const { challengeId, message } = await client.wallets.challenge({
walletAddress: 'So11...abc',
blockchain: 'solana'
});
const signature = await signWithWallet(message); // see "Signing the Message"
const { outcome, wallet } = await client.wallets.verify(42, { challengeId, signature });
Example Response
{
"outcome": "CONTROLLED",
"wallet": {
"walletId": 42,
"walletAddress": "So11...abc",
"blockchain": "solana",
"createdAt": "2024-01-15T10:30:00.000Z",
"control": {
"status": "CONTROLLED",
"method": "SIGNED_CHALLENGE",
"provenAt": "2024-01-16T08:00:00.000Z"
}
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
outcome | string | CONTROLLED: your organization now controls the address. UNCHANGED: it already did. DISPUTED: another organization holds the address without proof; the wallet stays WATCH_ONLY while RebelFi reviews the dispute |
wallet | object | The wallet, as in Get Wallet, including control |
A legacy wallet keeps its history when verified. A watch-only wallet’s balance is booked from the moment it is
verified: RebelFi reads the address’s current balance and starts your organization’s books there.
Errors
| Code | HTTP | Description |
|---|---|---|
WALLET_NOT_FOUND | 404 | No such wallet for this API key’s organization and wallet profile |
CHALLENGE_EXPIRED | 410 | The challenge expired; request a new one |
CHALLENGE_USED | 409 | The challenge was already used |
CHALLENGE_MISMATCH | 400 | Unknown challenge, or issued for another address or chain |
INVALID_SIGNATURE | 400 | Not the address’s signature of the challenge message; the challenge is used up |
ADDRESS_NOT_CLAIMABLE | 409 | Another organization has proven control of the address. Contact support if you believe you control it |
503. Nothing changed
and the challenge stays usable: retry with the same request.