Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(sealed-drop): expose the funding wallet address a rollback returns money to

nirholasd7de4921ed23
diff --git a/api/_lib/sealed-drop-funding.js b/api/_lib/sealed-drop-funding.js
index dbc833b9c..0e11238db 100644
--- a/api/_lib/sealed-drop-funding.js
+++ b/api/_lib/sealed-drop-funding.js
@@ -94,6 +94,18 @@ export function fundingConfigured() {
return !!resolveFundingKeyBase58();
}
+/**
+ * The platform funding wallet's public address, or null when unconfigured. This
+ * is where a drop's funds go back to when a create is rolled back (the fee failed
+ * to settle after the wallet was already funded): the money returns to exactly
+ * the wallet it left.
+ */
+export function fundingWalletAddress() {
+ const key = resolveFundingKeyBase58();
+ if (!key) return null;
+ return Keypair.fromSecretKey(bs58.decode(key)).publicKey.toBase58();
+}
+
function fundingKeypair() {
const key = resolveFundingKeyBase58();
if (!key) {