Deposit
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assetId": "WALLET_ASSET_ID",
"amount": "AMOUNT_TO_DEPOSIT",
"type": "defi",
"reference": "OPTIONAL_REFERENCE",
"metadata": {},
"addressId": "OPTIONAL_SUB_ADDRESS_ID"
}
'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit"
payload = {
"assetId": "WALLET_ASSET_ID",
"amount": "AMOUNT_TO_DEPOSIT",
"type": "defi",
"reference": "OPTIONAL_REFERENCE",
"metadata": {},
"addressId": "OPTIONAL_SUB_ADDRESS_ID"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assetId: 'WALLET_ASSET_ID',
amount: 'AMOUNT_TO_DEPOSIT',
type: 'defi',
reference: 'OPTIONAL_REFERENCE',
metadata: {},
addressId: 'OPTIONAL_SUB_ADDRESS_ID'
})
};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit', 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/deposit",
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([
'assetId' => 'WALLET_ASSET_ID',
'amount' => 'AMOUNT_TO_DEPOSIT',
'type' => 'defi',
'reference' => 'OPTIONAL_REFERENCE',
'metadata' => [
],
'addressId' => 'OPTIONAL_SUB_ADDRESS_ID'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit"
payload := strings.NewReader("{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.blockradar.co/v1/wallets/{walletId}/rewards/deposit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Rewards Deposit initiated successfully",
"statusCode": 200,
"data": {
"id": "ebbe9bd1-311f-4a69-8847-046aec033413",
"reference": null,
"amount": "1",
"amountPaid": "1",
"status": "PENDING",
"type": "REWARD_DEPOSIT",
"createdAt": "2026-06-03T13:43:47.533Z"
}
}Deposit
Deposits an asset into an earn strategy. Asynchronous — returns a PENDING transaction; completion is delivered via webhook.
Body Parameters
| Key | Required | Type | Description |
|---|---|---|---|
| assetId | true | string (UUID) | The asset to deposit (must be reward-supported). |
| amount | true | string | Amount to deposit. Must be greater than 0. |
| type | true | string | Strategy class: regulated (Fija, ERC-4626) or defi (Aave). |
| reference | false | string | Client reference (validated for uniqueness). |
| metadata | false | object | Custom metadata echoed back on the transaction. |
| addressId | false | string (UUID) | Scope the operation to a sub-address. Omit to act on the master wallet. |
POST
/
v1
/
wallets
/
{walletId}
/
rewards
/
deposit
Deposit
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assetId": "WALLET_ASSET_ID",
"amount": "AMOUNT_TO_DEPOSIT",
"type": "defi",
"reference": "OPTIONAL_REFERENCE",
"metadata": {},
"addressId": "OPTIONAL_SUB_ADDRESS_ID"
}
'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit"
payload = {
"assetId": "WALLET_ASSET_ID",
"amount": "AMOUNT_TO_DEPOSIT",
"type": "defi",
"reference": "OPTIONAL_REFERENCE",
"metadata": {},
"addressId": "OPTIONAL_SUB_ADDRESS_ID"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assetId: 'WALLET_ASSET_ID',
amount: 'AMOUNT_TO_DEPOSIT',
type: 'defi',
reference: 'OPTIONAL_REFERENCE',
metadata: {},
addressId: 'OPTIONAL_SUB_ADDRESS_ID'
})
};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit', 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/deposit",
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([
'assetId' => 'WALLET_ASSET_ID',
'amount' => 'AMOUNT_TO_DEPOSIT',
'type' => 'defi',
'reference' => 'OPTIONAL_REFERENCE',
'metadata' => [
],
'addressId' => 'OPTIONAL_SUB_ADDRESS_ID'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit"
payload := strings.NewReader("{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.blockradar.co/v1/wallets/{walletId}/rewards/deposit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/rewards/deposit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assetId\": \"WALLET_ASSET_ID\",\n \"amount\": \"AMOUNT_TO_DEPOSIT\",\n \"type\": \"defi\",\n \"reference\": \"OPTIONAL_REFERENCE\",\n \"metadata\": {},\n \"addressId\": \"OPTIONAL_SUB_ADDRESS_ID\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Rewards Deposit initiated successfully",
"statusCode": 200,
"data": {
"id": "ebbe9bd1-311f-4a69-8847-046aec033413",
"reference": null,
"amount": "1",
"amountPaid": "1",
"status": "PENDING",
"type": "REWARD_DEPOSIT",
"createdAt": "2026-06-03T13:43:47.533Z"
}
}Authorizations
Body
application/json
Response
200 - application/json
OK
The response is of type object.
⌘I

