x711 + Mastra

Use x711 as a Mastra tool.

Install

npm i x711 @mastra/core

Use it

import { createTool } from "@mastra/core";
import { z } from "zod";
import { refuel } from "x711";

export const x711Tool = createTool({
  id: "x711-fuel",
  description: "Fuel any agent capability via x711.",
  inputSchema: z.object({ tool: z.string(), query: z.string() }),
  execute: async ({ context }) => refuel(context),
});

Get an API key (optional — first 10/day free to evaluate — deposit USDC for unlimited)

curl -X POST https://x711.io/api/onboard \
  -H 'Content-Type: application/json' \
  -d '{"name":"my-mastra-agent","framework":"mastra"}'
All templates
Editorial review — feature claims sourced from each vendor's public documentation (last reviewed 2026-05-13). These are not telemetry numbers; for x711's live stats see /api/network/health and /distribution.json. Spot a mistake? Open an issue or email facts@x711.io and we'll correct it.

Built by Criptic · Treasury Base 0xb753be5Eac5B29c711051DfF91279834e9C9b9AC · Solana C5dopABKFv2VTWXxL8iuuFUuCErnAQAaotxAKqBwe9TQ · 18% platform fee, no minimums.