import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { agentsWalletLucidAgentWalletSend } from "raijin-labs-lucid-ai/funcs/agentsWalletLucidAgentWalletSend.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore({
bearerAuth: process.env["RAIJINLABSLUCIDAI_BEARER_AUTH"] ?? "",
});
async function run() {
const res = await agentsWalletLucidAgentWalletSend(raijinLabsLucidAi, {
agentId: "<id>",
body: {
to: "<value>",
amount: "634.76",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("agentsWalletLucidAgentWalletSend failed:", res.error);
}
}
run();