Helios API/ API Reference/ Classes/

RemoteWallet

Implements

Implements

Index

Constructors

constructor

new RemoteWallet(isMainnet, usedAddresses, unusedAddresses, utxos)

Parameters

NameType
isMainnetboolean
usedAddressesAddress[]
unusedAddressesAddress[]
utxosTxInput[]

Accessors

collateral

get collateral(): Promise<TxInput[]>

Returns

Promise<TxInput[]>

Implementation of

Wallet.collateral

rewardAddresses

get rewardAddresses(): Promise<StakeAddress[]>

Returns

Promise<StakeAddress[]>

Implementation of

Wallet.rewardAddresses

unusedAddresses

get unusedAddresses(): Promise<Address[]>

Returns

Promise<Address[]>

Implementation of

Wallet.unusedAddresses

usedAddresses

get usedAddresses(): Promise<Address[]>

Returns

Promise<Address[]>

Implementation of

Wallet.usedAddresses

utxos

get utxos(): Promise<TxInput[]>

Returns

Promise<TxInput[]>

Implementation of

Wallet.utxos

Methods

isMainnet

isMainnet(): Promise<boolean>

Returns

Promise<boolean>

Implementation of

Wallet.isMainnet

signData

signData(addr, message): Promise<{ key: string ; signature: string }>

Parameters

NameType
addrAddress
messagestring

Returns

Promise<{ key: string ; signature: string }>

Implementation of

Wallet.signData

signTx

signTx(tx): Promise<Signature[]>

Parameters

NameType
txTx

Returns

Promise<Signature[]>

Implementation of

Wallet.signTx

submitTx

submitTx(tx): Promise<TxId>

Parameters

NameType
txTx

Returns

Promise<TxId>

Implementation of

Wallet.submitTx

fromJson

Static fromJson(obj): RemoteWallet

Parameters

NameType
objany

Returns

RemoteWallet