UNPKG

@gemini-wallet/core

Version:

Core SDK for Gemini Wallet integration with popup communication

23 lines 1.08 kB
import { type TransactionRequest } from "viem"; import type { RpcRequestArgs } from "@/types"; /** * Calls the RPC with a given request * @param request The request to make to the RPC. * @param rpcUrl The url of the RPC. * @returns Response from the RPC call. */ export declare const fetchRpcRequest: (request: RpcRequestArgs, rpcUrl: string) => Promise<any>; /** * Validates the RPC request arguments * Valid request args are defined here: https://eips.ethereum.org/EIPS/eip-1193#request * @param args The request arguments to validate. * @returns An error object if the arguments are invalid, otherwise undefined. */ export declare function validateRpcRequestArgs(args: unknown): asserts args is RpcRequestArgs; /** * Converts specific tx request values from hex to BigInt to align with Viem types. * @param tx The raw transaction request object. * @returns The raw transaction object with certain fields converted to BigInts */ export declare function convertSendValuesToBigInt(tx: TransactionRequest): TransactionRequest; //# sourceMappingURL=provider.utils.d.ts.map