@web5nexus/web3auth-core
Version:
Core Implementation for 1 click Web3 Social Auth Implementation for Ethereum, XDC, Bitcoin,Cosmos and other Altcoins.
12 lines (11 loc) • 474 B
TypeScript
import type { SafeEventEmitterProvider } from "@web3auth/base";
export default class XdcRpc {
private provider;
constructor(provider: SafeEventEmitterProvider);
getChainId(): Promise<string>;
getAccounts(): Promise<any>;
getBalance(): Promise<string>;
sendTransaction(amountInWei: string, toAddress: string, maxPriorityFeePerGas?: string, maxFeePerGas?: string): Promise<any>;
signMessage(): Promise<string>;
getPrivateKey(): Promise<any>;
}