Version: 0.14.0

Interface: TLWallet

"wallets/TLWallet".TLWallet

Interface for different wallet strategies.

Hierarchy#

Implemented by#

Properties#

address#

address: string

Defined in src/wallets/TLWallet.ts:8

Methods#

confirm#

confirm(rawTx: RawTxObject): Promise<string>

Inherited from TLSigner.confirm

Defined in src/signers/TLSigner.ts:19

Parameters:#

NameType
rawTxRawTxObject

Returns: Promise<string>


create#

create(): Promise<TLWalletData>

Defined in src/wallets/TLWallet.ts:11

Returns: Promise<TLWalletData>


decrypt#

decrypt(encMsg: any, theirPubKey: string): Promise<any>

Defined in src/wallets/TLWallet.ts:29

Parameters:#

NameType
encMsgany
theirPubKeystring

Returns: Promise<any>


deployIdentity#

deployIdentity(): Promise<string>

Defined in src/wallets/TLWallet.ts:12

Returns: Promise<string>


encrypt#

encrypt(msg: string, theirPubKey: string): Promise<any>

Defined in src/wallets/TLWallet.ts:28

Parameters:#

NameType
msgstring
theirPubKeystring

Returns: Promise<any>


encryptToSerializedKeystore#

encryptToSerializedKeystore(tlWalletData: TLWalletData, password: string, progressCallback?: (progress: number) => any): Promise<string>

Defined in src/wallets/TLWallet.ts:23

Parameters:#

NameType
tlWalletDataTLWalletData
passwordstring
progressCallback?(progress: number) => any

Returns: Promise<string>


exportPrivateKey#

exportPrivateKey(): Promise<string>

Defined in src/wallets/TLWallet.ts:10

Returns: Promise<string>


getAddress#

getAddress(): Promise<string>

Inherited from TLSigner.getAddress

Defined in src/signers/TLSigner.ts:14

Returns: Promise<string>


getBalance#

getBalance(): Promise<Amount>

Inherited from TLSigner.getBalance

Defined in src/signers/TLSigner.ts:15

Returns: Promise<Amount>


getMetaTxFees#

getMetaTxFees(rawTx: RawTxObject): Promise<MetaTransactionFees>

Inherited from TLSigner.getMetaTxFees

Defined in src/signers/TLSigner.ts:22

Parameters:#

NameType
rawTxRawTxObject

Returns: Promise<MetaTransactionFees>


getTxStatus#

getTxStatus(txHash: string | RawTxObject): Promise<TransactionStatusObject>

Inherited from TLSigner.getTxStatus

Defined in src/signers/TLSigner.ts:21

Parameters:#

NameType
txHashstring | RawTxObject

Returns: Promise<TransactionStatusObject>


getWalletData#

getWalletData(): Promise<TLWalletData>

Defined in src/wallets/TLWallet.ts:15

Returns: Promise<TLWalletData>


hashTx#

hashTx(rawTx: RawTxObject): Promise<string>

Inherited from TLSigner.hashTx

Defined in src/signers/TLSigner.ts:18

Parameters:#

NameType
rawTxRawTxObject

Returns: Promise<string>


isIdentityDeployed#

isIdentityDeployed(): Promise<boolean>

Defined in src/wallets/TLWallet.ts:13

Returns: Promise<boolean>


loadFrom#

loadFrom(tlWalletData: TLWalletData): Promise<void>

Defined in src/wallets/TLWallet.ts:14

Parameters:#

NameType
tlWalletDataTLWalletData

Returns: Promise<void>


prepareTransaction#

prepareTransaction(rawTx: RawTxObject): Promise<TxObjectRaw>

Inherited from TLSigner.prepareTransaction

Defined in src/signers/TLSigner.ts:20

Parameters:#

NameType
rawTxRawTxObject

Returns: Promise<TxObjectRaw>


recoverFromEncryptedKeystore#

recoverFromEncryptedKeystore(serializedEncryptedKeystore: string, password: string, progressCallback?: (progress: number) => any): Promise<TLWalletData>

Defined in src/wallets/TLWallet.ts:17

Parameters:#

NameType
serializedEncryptedKeystorestring
passwordstring
progressCallback?(progress: number) => any

Returns: Promise<TLWalletData>


recoverFromPrivateKey#

recoverFromPrivateKey(privateKey: string): Promise<TLWalletData>

Defined in src/wallets/TLWallet.ts:22

Parameters:#

NameType
privateKeystring

Returns: Promise<TLWalletData>


recoverFromSeed#

recoverFromSeed(seed: string): Promise<TLWalletData>

Defined in src/wallets/TLWallet.ts:16

Parameters:#

NameType
seedstring

Returns: Promise<TLWalletData>


showSeed#

showSeed(): Promise<string>

Defined in src/wallets/TLWallet.ts:9

Returns: Promise<string>


signMessage#

signMessage(message: string | ArrayLike<number>): Promise<Signature>

Inherited from TLSigner.signMessage

Defined in src/signers/TLSigner.ts:17

Parameters:#

NameType
messagestring | ArrayLike<number>

Returns: Promise<Signature>


signMsgHash#

signMsgHash(msgHash: string): Promise<Signature>

Inherited from TLSigner.signMsgHash

Defined in src/signers/TLSigner.ts:16

Parameters:#

NameType
msgHashstring

Returns: Promise<Signature>