Helios API/ API Reference/ Classes/
SimpleWallet
This wallet only has a single private/public key, which isn't rotated. Staking is not yet supported.
Implements
Implements
Index
Constructors
constructor
• new SimpleWallet(network
, privateKey
)
Parameters
Name | Type |
---|---|
network | Network |
privateKey | Bip32PrivateKey |
Accessors
address
• get
address(): Address
Returns
collateral
• get
collateral(): Promise
<TxInput
[]>
Returns
Promise
<TxInput
[]>
Implementation of
privateKey
• get
privateKey(): Bip32PrivateKey
Returns
pubKey
• get
pubKey(): PubKey
Returns
pubKeyHash
• get
pubKeyHash(): PubKeyHash
Returns
rewardAddresses
• get
rewardAddresses(): Promise
<StakeAddress
[]>
Not yet implemented.
Returns
Promise
<StakeAddress
[]>
Implementation of
unusedAddresses
• get
unusedAddresses(): Promise
<Address
[]>
Returns
Promise
<Address
[]>
Implementation of
usedAddresses
• get
usedAddresses(): Promise
<Address
[]>
Assumed wallet was initiated with at least 1 UTxO at the pubkeyhash address.
Returns
Promise
<Address
[]>
Implementation of
utxos
• get
utxos(): Promise
<TxInput
[]>
Returns
Promise
<TxInput
[]>
Implementation of
Methods
isMainnet
▸ isMainnet(): Promise
<boolean
>
Returns
Promise
<boolean
>
Implementation of
signData
▸ signData(addr
, message
): Promise
<{ key
: string
; signature
: string
}>
Not yet implemented.
Parameters
Name | Type |
---|---|
addr | Address |
message | string |
Returns
Promise
<{ key
: string
; signature
: string
}>
Implementation of
signTx
▸ signTx(tx
): Promise
<Signature
[]>
Simply assumed the tx needs to by signed by this wallet without checking.
Parameters
Name | Type |
---|---|
tx | Tx |
Returns
Promise
<Signature
[]>
Implementation of
submitTx
▸ submitTx(tx
): Promise
<TxId
>
Parameters
Name | Type |
---|---|
tx | Tx |
Returns
Promise
<TxId
>