@beraji/wallet-sdk
Version:
Beraji: Distributed Secret Sharing.
31 lines (30 loc) • 996 B
TypeScript
import { BNet, IMessage, IWeb3Tx } from './constants';
import type { TransactionRequest } from 'viem';
export declare class BWeb3Tx {
token: string;
net: BNet;
constructor(params?: {
token: string;
net: BNet;
});
static connection(params?: {
token: string;
net: BNet;
}): import("axios").AxiosInstance;
get con(): import("axios").AxiosInstance;
ethSendTransaction(payload: TransactionRequest): Promise<IWeb3Tx>;
signMessage(message: string): Promise<import("axios").AxiosResponse<IMessage, any>>;
waitMessageApproved(msgId: string): Promise<import("axios").AxiosResponse<IMessage, any>>;
waitTransactionApproved(msgId: string): Promise<import("axios").AxiosResponse<IWeb3Tx, any>>;
getChain(): Promise<{
id: number;
name: string;
testnet: boolean;
blockExplorers: {
default: {
name: string;
url: string;
};
};
}>;
}