Class NeblioSubAccount
Neblio Sub Account. It has some limited functions. It is usually loaded under NeblioAccount
Inherited Members
Namespace: VEDriversLite.Neblio
Assembly: VEDriversLite.dll
Syntax
public class NeblioSubAccount : NeblioAccountBase
Properties
| Improve this Doc View SourceBookmarkFromAccount
Bookmark related to this Sub Account loaded from the Main account if exist
Declaration
[JsonIgnore]
public Bookmark BookmarkFromAccount { get; set; }
Property Value
Type | Description |
---|---|
Bookmark |
EKey
Encrypted Private Key with use of the NBitcoin alg. with main public key enc and private key dec
Declaration
public string EKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ESKey
Encrypted Private Key with use of SHA256 hash of main private key and AES256
Declaration
public string ESKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsAutoRefreshActive
When this flag is set, account reload the Utxos state - inside autorefresh
Declaration
[JsonIgnore]
public bool IsAutoRefreshActive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInBookmark
Indicate if this Sub Account is in the Bookmark
Declaration
[JsonIgnore]
public bool IsInBookmark { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Name of the Sub Account
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceBackupAddressToDto()
Backup Sub Account to AcountExportDto
Declaration
public (bool, AccountExportDto) BackupAddressToDto()
Returns
Type | Description |
---|---|
System.ValueTuple<System.Boolean, AccountExportDto> | true and AcountExportDto |
BackupAddressToString()
Backup Sub Account data as serialized AcountExportDto
Declaration
public async Task<(bool, string)> BackupAddressToString()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>> | true and serialized AcountExportDto |
ClearBookmark()
Clear bookmark object
Declaration
public void ClearBookmark()
CreateAddress(BitcoinSecret, String)
Create Sub Account Address and Private Key The Account Private key is encrypted with use of main account private key
Declaration
public async Task<(bool, string)> CreateAddress(BitcoinSecret mainSecret, string name)
Parameters
Type | Name | Description |
---|---|---|
NBitcoin.BitcoinSecret | mainSecret | Main Account Private Key |
System.String | name | Name of the Sub Account |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>> |
ImportAddress(BitcoinSecret, String, String)
Create Sub Account Address and Private Key The Account Private key is encrypted with use of main account private key
Declaration
public async Task<(bool, string)> ImportAddress(BitcoinSecret mainSecret, string name, string importPrivateKey)
Parameters
Type | Name | Description |
---|---|---|
NBitcoin.BitcoinSecret | mainSecret | Main Account Private Key |
System.String | name | Name of the Sub Account |
System.String | importPrivateKey |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>> |
LoadBookmark(Bookmark)
Load bookmark
Declaration
public void LoadBookmark(Bookmark bkm)
Parameters
Type | Name | Description |
---|---|---|
Bookmark | bkm |
LoadFromBackupDto(BitcoinSecret, AccountExportDto)
Load Sub Account from AcountExportDto
Declaration
public async Task<(bool, string)> LoadFromBackupDto(BitcoinSecret mainSecret, AccountExportDto dto)
Parameters
Type | Name | Description |
---|---|---|
NBitcoin.BitcoinSecret | mainSecret | |
AccountExportDto | dto | account export data |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>> |
LoadFromBackupString(BitcoinSecret, String)
Load Sub Account from the string with AcountExportDto data
Declaration
public async Task<(bool, string)> LoadFromBackupString(BitcoinSecret mainSecret, string inputData)
Parameters
Type | Name | Description |
---|---|---|
NBitcoin.BitcoinSecret | mainSecret | |
System.String | inputData | serialized AcountExportDto |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>> |
StartRefreshingData(Int32)
This function will load the actual data and then run the task which periodically refresh this data. It doesnt have cancellation now!
Declaration
public async Task<string> StartRefreshingData(int interval = 3000)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | interval | Default interval is 3000 = 3 seconds |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |
Events
| Improve this Doc View SourceFirsLoadingStatus
This event is called during first loading of the account to keep updated the user
Declaration
public event EventHandler<string> FirsLoadingStatus
Event Type
Type | Description |
---|---|
System.EventHandler<System.String> |
NewMintingProcessInfo
This event is called whenever some progress during multimint happens
Declaration
public event EventHandler<string> NewMintingProcessInfo
Event Type
Type | Description |
---|---|
System.EventHandler<System.String> |