The Mind's wallet: balances and the governed account it acts through
curl --request GET \
--url https://api.hellopie.xyz/v1/minds/{mindId}/wallet \
--cookie hf_session=import requests
url = "https://api.hellopie.xyz/v1/minds/{mindId}/wallet"
headers = {"cookie": "hf_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'hf_session='}};
fetch('https://api.hellopie.xyz/v1/minds/{mindId}/wallet', 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.hellopie.xyz/v1/minds/{mindId}/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "hf_session=",
]);
$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.hellopie.xyz/v1/minds/{mindId}/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "hf_session=")
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.hellopie.xyz/v1/minds/{mindId}/wallet")
.header("cookie", "hf_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hellopie.xyz/v1/minds/{mindId}/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'hf_session='
response = http.request(request)
puts response.read_bodyWallet
The Mind's wallet: balances and the governed account it acts through
GET
/
v1
/
minds
/
{mindId}
/
wallet
The Mind's wallet: balances and the governed account it acts through
curl --request GET \
--url https://api.hellopie.xyz/v1/minds/{mindId}/wallet \
--cookie hf_session=import requests
url = "https://api.hellopie.xyz/v1/minds/{mindId}/wallet"
headers = {"cookie": "hf_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'hf_session='}};
fetch('https://api.hellopie.xyz/v1/minds/{mindId}/wallet', 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.hellopie.xyz/v1/minds/{mindId}/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "hf_session=",
]);
$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.hellopie.xyz/v1/minds/{mindId}/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "hf_session=")
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.hellopie.xyz/v1/minds/{mindId}/wallet")
.header("cookie", "hf_session=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hellopie.xyz/v1/minds/{mindId}/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'hf_session='
response = http.request(request)
puts response.read_bodyResponse
{ wallet: { address | null, chainId, status, explorer, native: { symbol: "ETH", amount } | null, balances: [{ symbol, address, decimals, amount }] | null, x402Float, session: { publicKey, mindKey, expiresAt, revoked, expired (always false: sessions no longer expire), grantTx, allowedContracts: [{ to, signature, label }], spendCaps: [{ token, symbol, limit, period, spent }], reviewOver: { [symbol]: amount }, enforcedBy: { whitelist: "chain", caps: "backend", review: "backend + chain time lock" } } } }. spent is what already counts against the cap (the last 24 h of sent, pending and pending_review payments, the same sum the backend checks before it broadcasts); what is left is limit - spent.