Wallet Reward Position Earnings
curl --request GET \
--url https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings', 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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Reward earnings retrieved successfully",
"statusCode": 200,
"data": {
"positionId": "6b1a3d0e-5c0f-4d0a-9d2e-2f4f6c1f7a10",
"productId": "3aa81215-585a-4db2-9707-339a01ad794d",
"period": "30d",
"start": "2026-10-19T12:00:00.000Z",
"end": "2026-11-18T12:00:00.000Z",
"valueAtStart": "0.000000",
"valueAtEnd": "10.004585",
"totalDeposited": "10.000000",
"totalWithdrawn": "0.000000",
"earnings": "0.004585",
"status": "complete"
}
}{
"statusCode": 400,
"message": "start and end are required when period is custom"
}{
"statusCode": 404,
"message": "Reward position not found"
}Rewards
Wallet Reward Position Earnings
Returns what a position earned over a period, after fees: the change in its value, less what was deposited and plus what was withdrawn during the period.
earnings = valueAtEnd - valueAtStart - totalDeposited + totalWithdrawn
Query Parameters
| Key | Required | Type | Description |
|---|---|---|---|
| period | false | string | 7d, 30d, lifetime (default) or custom. |
| start | false | string (ISO 8601 date and time) | Required with period=custom. Exclusive start of the period. |
| end | false | string (ISO 8601 date and time) | Required with period=custom. Inclusive end of the period. |
Response Fields
| Field | Description |
|---|---|
| start, end | The period measured. start is null for lifetime. |
| valueAtStart, valueAtEnd | The position’s value at each end of the period. |
| totalDeposited, totalWithdrawn | Deposits into and withdrawals from the position during the period. |
| earnings | What the position earned in the period, after fees. |
| status | complete, incomplete_cost_basis or unavailable, as on the position. |
GET
/
v1
/
wallets
/
{walletId}
/
rewards
/
positions
/
{positionId}
/
earnings
Wallet Reward Position Earnings
curl --request GET \
--url https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings', 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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/rewards/positions/{positionId}/earnings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Reward earnings retrieved successfully",
"statusCode": 200,
"data": {
"positionId": "6b1a3d0e-5c0f-4d0a-9d2e-2f4f6c1f7a10",
"productId": "3aa81215-585a-4db2-9707-339a01ad794d",
"period": "30d",
"start": "2026-10-19T12:00:00.000Z",
"end": "2026-11-18T12:00:00.000Z",
"valueAtStart": "0.000000",
"valueAtEnd": "10.004585",
"totalDeposited": "10.000000",
"totalWithdrawn": "0.000000",
"earnings": "0.004585",
"status": "complete"
}
}{
"statusCode": 400,
"message": "start and end are required when period is custom"
}{
"statusCode": 404,
"message": "Reward position not found"
}Path Parameters
Query Parameters
Response
OK
The response is of type object.

