UNPKG

oken-waas

Version:
17 lines (16 loc) 526 B
import { ABI } from './ABI'; export type TxID = { transactionId: string; }; export type AlchemyConfig = { alchemyKey: string; network: string; }; export type API = { alchemyEnabled: boolean; post: (route: string, payload?: any) => Promise<TxID>; get: (route: string, payload: any) => Promise<any>; call: (address: string, abi: ABI, method: string, params: any) => Promise<any>; }; declare const _default: (endpoint: any, signer: any, alchemyConfig?: AlchemyConfig) => API; export default _default;