Check RAMS can-execute
curl --request GET \
--url https://api.sandbox.brickken.com/rams/can-execute \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/rams/can-execute"
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/rams/can-execute', 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/rams/can-execute",
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/rams/can-execute"
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/rams/can-execute")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/rams/can-execute")
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{
"data": {
"allowed": false,
"agent": "0x1111111111111111111111111111111111111111",
"principal": "0x2222222222222222222222222222222222222222",
"asset": "0x3333333333333333333333333333333333333333",
"action": "0x23b872dd00000000000000000000000000000000000000000000000000000000",
"selector": "0x23b872dd",
"amount": "2000",
"checks": {
"mandateExists": true,
"assetMatches": true,
"withinValidityWindow": true,
"notRevoked": true,
"actionEnabled": true,
"agentNotFrozen": true,
"withinTransactionCap": false,
"withinCumulativeCap": true
}
}
}RAMS Reads & Typed Data
Check RAMS Execution
Check whether a mandate currently permits an action and value.
GET
/
rams
/
can-execute
Check RAMS can-execute
curl --request GET \
--url https://api.sandbox.brickken.com/rams/can-execute \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sandbox.brickken.com/rams/can-execute"
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/rams/can-execute', 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/rams/can-execute",
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/rams/can-execute"
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/rams/can-execute")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.brickken.com/rams/can-execute")
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{
"data": {
"allowed": false,
"agent": "0x1111111111111111111111111111111111111111",
"principal": "0x2222222222222222222222222222222222222222",
"asset": "0x3333333333333333333333333333333333333333",
"action": "0x23b872dd00000000000000000000000000000000000000000000000000000000",
"selector": "0x23b872dd",
"amount": "2000",
"checks": {
"mandateExists": true,
"assetMatches": true,
"withinValidityWindow": true,
"notRevoked": true,
"actionEnabled": true,
"agentNotFrozen": true,
"withinTransactionCap": false,
"withinCumulativeCap": true
}
}
}Send
x-api-key. These reads are also x402-payable: call without a key and, where x402 is enabled for the chain, the API answers 402 Payment Required with the amount in the PAYMENT-REQUIRED header. Reads are priced at the cheaper GETTER tier than writes — take the amount from the response rather than from a table.
Provide chainId, agent, principal, asset, optional raw amount, and either a bytes32 action or 4-byte selector.
The response combines the authoritative on-chain canExecute result with diagnostic checks for lifecycle, freeze, asset, action, transaction cap, cumulative cap, and compliance. Treat the top-level on-chain result as authoritative.Authorizations
Query Parameters
Target chain ID. RAMS is available on Ethereum Sepolia (11155111) only at launch. Decimal and 0x hex values are accepted.
Agent wallet address.
Pattern:
^0x[a-fA-F0-9]{40}$Principal wallet address.
Pattern:
^0x[a-fA-F0-9]{40}$Asset (token) address the mandate is scoped to.
Pattern:
^0x[a-fA-F0-9]{40}$Execution amount in raw base units (uint256 decimal string). Defaults to "0".
bytes32 action. Provide exactly one of action or selector.
Pattern:
^0x[a-fA-F0-9]{64}$4-byte function selector, e.g. 0x23b872dd. Provide exactly one of action or selector.
Pattern:
^0x[a-fA-F0-9]{8}$Optional AgentMandate contract override.
Pattern:
^0x[a-fA-F0-9]{40}$Response
200 - application/json
Successful response
Show child attributes
Show child attributes