Skip to main content
Glama

bnbchain-mcp

Official
by bnb-chain
account.test.ts870 B
import { describe, expect, it } from "bun:test" import { getClient, parseText } from "../util" describe("Greenfield Account Test", async () => { const client = await getClient() it("get account balance", async () => { const res = await client.callTool({ name: "gnfd_get_account_balance", arguments: { network: "testnet" } }) const text = res.content?.[0]?.text const obj = parseText<{ denom: string }>(text) expect(obj.denom).toBe("BNB") }) it("get all storage providers", async () => { const res = await client.callTool({ name: "gnfd_get_all_sps", arguments: { network: "testnet" } }) const text = res.content?.[0]?.text const obj = parseText< { endpoint: string }[] >(text) expect(obj[0].endpoint).toStartWith("https://") }) })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bnb-chain/bnbchain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server