parseCostHeader (utils/api-key-call.ts)

blockrun-mcp · src/utils/api-key-call.ts · typescript · MIT
voice

src/utils/api-key-call.ts The account rail for the four tools that build gateway requests by hand (music, speech, video, realface) instead of going through an SDK client. Deliberately shaped like utils/solana-402.ts's solanaPaidAsyncPost, down to the result type, so a tool can pi

// Source: https://github.com/BlockRunAI/blockrun-mcp | License: MIT | Copyright 2025 BlockRun AI
// Provided via justclaw.it.com; keep this notice with the code.
// src/utils/api-key-call.ts
//
// The account rail for the four tools that build gateway requests by hand
// (music, speech, video, realface) instead of going through an SDK client.
//
// Deliberately shaped like utils/solana-402.ts's solanaPaidAsyncPost, down to
// the result type, so a tool can pick a rail with one `if` instead of growing a
// third copy of its own submit-and-poll loop. There are now three:
//
//   base wallet   EIP-3009 402 dance          (in each tool)
//   solana wallet solanaPaidAsyncPost         (utils/solana-402.ts)
//   account key   apiKeyPost / apiKeyAsyncPost (here)
//
// The account rail is by far t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key