UNPKG

axie-tools

Version:

TypeScript library and CLI tool for interacting with Axie Infinity marketplace and NFTs on Ronin network. Features marketplace operations (buy/sell/delist), batch transfers, and wallet information.

15 lines (14 loc) 643 B
import { type JsonRpcProvider } from "ethers"; export declare function getAccountInfo(address: string, provider: JsonRpcProvider): Promise<{ address: string; ronBalance: string; wethBalance: string; usdcBalance: string; allowance: any; isApprovedForAll: any; axieIds: number[]; }>; export declare function apiRequest<T>(url: string, body?: BodyInit | null, headers?: Record<string, string>, method?: "GET" | "POST"): Promise<T>; export declare const askToContinue: () => Promise<void>; export declare function ensureMarketplaceToken(): Promise<string>; export declare const getAxieId: () => Promise<number | null>;