Register Wallet
curl --request POST \
--url https://api.example.com/v1/wallets/registerimport requests
url = "https://api.example.com/v1/wallets/register"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/wallets/register', 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/register",
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/register"
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/register")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/wallets/register")
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
Register Wallet
POST /v1/wallets/register — Register a wallet for your organization (idempotent)
POST
/
v1
/
wallets
/
register
Register Wallet
curl --request POST \
--url https://api.example.com/v1/wallets/registerimport requests
url = "https://api.example.com/v1/wallets/register"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/v1/wallets/register', 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/register",
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/register"
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/register")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/wallets/register")
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/registerRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
walletAddress | string | Yes | Wallet address on the blockchain |
blockchain | string | Yes | Blockchain network: solana, polygon, ethereum, or base |
userId | string | No | Your external user or account ID (for multi-wallet management) |
orgMetadata | object | No | Arbitrary metadata to store with the wallet |
Example Request
curl -X POST "https://api.rebelfi.io/v1/wallets/register" \
-H "x-api-key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"walletAddress": "So11...abc",
"blockchain": "solana",
"userId": "user-123",
"orgMetadata": { "plan": "premium" }
}'
const wallet = await client.wallets.register({
walletAddress: 'So11...abc',
blockchain: 'solana',
userId: 'user-123',
orgMetadata: { plan: 'premium' }
});
Example Response
{
"walletId": 42,
"walletAddress": "So11...abc",
"blockchain": "solana",
"userId": "user-123",
"orgMetadata": { "plan": "premium" },
"createdAt": "2024-01-15T10:30:00.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
walletId | number | Wallet identifier (use for subsequent API calls) |
walletAddress | string | Wallet address on the blockchain |
blockchain | string | Blockchain network |
userId | string? | External user ID |
orgMetadata | object? | Organization-specific metadata |
createdAt | string | Creation timestamp (ISO 8601) |
Registration is idempotent. If you register the same wallet address again, it returns the existing wallet without error.
⌘I