Get agent transactions
curl --request GET \
--url https://api.sandbox.brickken.com/get-agent-transactions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-agent-transactions"
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.sandbox.brickken.com/get-agent-transactions', 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.sandbox.brickken.com/get-agent-transactions",
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.sandbox.brickken.com/get-agent-transactions"
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.sandbox.brickken.com/get-agent-transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-agent-transactions")
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{
"agentUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactions": [
{
"txId": "<string>",
"type": "agentRegister",
"category": "erc8004",
"status": "<string>",
"chainId": "84532",
"details": {},
"actualTxHash": "<string>",
"from": "<string>",
"to": "<string>",
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}Agent Reads
Get Agent Transactions
List ERC-8004, agent-token, and RAMS transactions for one agent.
GET
/
get-agent-transactions
Get agent transactions
curl --request GET \
--url https://api.sandbox.brickken.com/get-agent-transactions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/get-agent-transactions"
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.sandbox.brickken.com/get-agent-transactions', 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.sandbox.brickken.com/get-agent-transactions",
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.sandbox.brickken.com/get-agent-transactions"
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.sandbox.brickken.com/get-agent-transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/get-agent-transactions")
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{
"agentUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactions": [
{
"txId": "<string>",
"type": "agentRegister",
"category": "erc8004",
"status": "<string>",
"chainId": "84532",
"details": {},
"actualTxHash": "<string>",
"from": "<string>",
"to": "<string>",
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}Reference the agent with
Each transaction includes a
agentUuid, or with agentId and chainId. The endpoint accepts an API key or x402 and costs 0.000001 USDC in x402 mode. API-key access is scope-checked; the x402 payer must match the agent owner wallet.
limit defaults to 50 and accepts 1–100. offset defaults to 0 and cannot be negative.
Client examples
- CLI
- MCP
- SDK
brickken agent transactions \
--agent-uuid "$AGENT_UUID" \
--limit 20 \
--offset 0 \
--json
{
"name": "get_agent_transactions",
"arguments": {
"agentUuid": "YOUR_AGENT_UUID",
"limit": 20,
"offset": 0
}
}
const history = await bkn.agent.transactions({
agentUuid,
limit: 20,
offset: 0,
})
category of erc8004, agentToken, or rams, plus a sanitized details object with operation-specific fields.Authorizations
apiKeyAuthx402Payment
Query Parameters
Required with agentId.
Required range:
1 <= x <= 100Required range:
x >= 0