qos-qweb
Version:
qos js sdk
25 lines (24 loc) • 629 B
TypeScript
import Account from './Account';
import SecretKey from './SecretKey';
declare class Qweb {
readonly config: {
readonly chainId: string;
readonly baseUrl: string;
};
key: SecretKey;
rpc: any;
node: any;
qmoonUrl: string;
constructor(config: {
readonly chainId: string;
readonly baseUrl: string;
});
readonly request: import("axios").AxiosInstance;
newAccount(mnemonic: string): Account;
/**
* 根据私钥恢复账户
* @param {string} privateKey 私钥
*/
recoveryAccountByPrivateKey(privateKey: any): Account;
}
export default Qweb;