Skip to main content
Glama
authorization.ts538 B
import { getAddress } from "../address/index.js"; import { Signature } from "../crypto/index.js"; import { getBigInt } from "../utils/index.js"; import type { Authorization, AuthorizationLike } from "./index.js"; export function authorizationify(auth: AuthorizationLike): Authorization { return { address: getAddress(auth.address), nonce: getBigInt((auth.nonce != null) ? auth.nonce: 0), chainId: getBigInt((auth.chainId != null)? auth.chainId: 0), signature: Signature.from(auth.signature) }; }

Latest Blog Posts

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/ExpertVagabond/zetachain-mcp-server'

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