UNPKG

@web5nexus/web3auth-core

Version:

Core Implementation for 1 click Web3 Social Auth Implementation for Ethereum, XDC, Bitcoin,Cosmos and other Altcoins.

18 lines (17 loc) 612 B
import type { SafeEventEmitterProvider } from "@web3auth/base"; export default class CosmosRpc { hrp: string; blockchain: string; private provider; rpcTarget: string; denom: string; constructor(blockchain: string, network: string, provider: SafeEventEmitterProvider); private getHrpValue; private getRpcValue; private getDenomValue; getAccounts(): Promise<any>; getBalance(): Promise<any>; getChainId(): Promise<string>; getPrivateKey(): Promise<any>; sendTransaction(amount: string, toAddress: string, gasFee?: string, gasLimit?: string): Promise<any>; }