@robincore/flutter-dapp-provider
Version:
a javascript ethereum provider injector used as an interface between wallet and dApps. [for flutter]
9 lines (8 loc) • 475 B
TypeScript
/// <reference types="node" />
import { PendingJsonRpcResponse } from "json-rpc-engine";
export declare class CoreUtils {
static convertToBytes(payload: string | any): Buffer;
static payloadInHex(buf: string | any): string;
static jsonId(): number;
}
export declare const getRpcPromiseCallback: (resolve: (value?: any) => void, reject: (error?: Error) => void, unwrapResult?: boolean) => (error: Error, response: PendingJsonRpcResponse<unknown>) => void;