Generated by DocFX

Class NeblioSubAccount

Neblio Sub Account. It has some limited functions. It is usually loaded under NeblioAccount

Inheritance
System.Object
NeblioAccountBase
NeblioSubAccount
Inherited Members
NeblioAccountBase.Address
NeblioAccountBase.Secret
NeblioAccountBase.NumberOfTransaction
NeblioAccountBase.NumberOfLoadedTransaction
NeblioAccountBase.EnoughBalanceToBuySourceTokens
NeblioAccountBase.TotalBalance
NeblioAccountBase.TotalSpendableBalance
NeblioAccountBase.TotalUnconfirmedBalance
NeblioAccountBase.SourceTokensBalance
NeblioAccountBase.CoruzantSourceTokensBalance
NeblioAccountBase.AddressNFTCount
NeblioAccountBase.IsRefreshingRunning
NeblioAccountBase.WithoutNFTs
NeblioAccountBase.ConnectedDogeAccountAddress
NeblioAccountBase.NFTs
NeblioAccountBase.CoruzantNFTs
NeblioAccountBase.HardwarioNFTs
NeblioAccountBase.ReceivedPayments
NeblioAccountBase.ReceivedReceipts
NeblioAccountBase.Profile
NeblioAccountBase.TokensSupplies
NeblioAccountBase.Utxos
NeblioAccountBase.AddressInfo
NeblioAccountBase.AddressInfoUtxos
NeblioAccountBase.UsedUtxos
NeblioAccountBase.Refreshed
NeblioAccountBase.NewEventInfo
NeblioAccountBase.NFTsChanged
NeblioAccountBase.AddressesAirdroped
NeblioAccountBase.ProfileUpdated
NeblioAccountBase.NFTAddedToPayments
NeblioAccountBase.AccountKey
NeblioAccountBase.IsLocked()
NeblioAccountBase.FireInfoEvent(Object, IEventInfo)
NeblioAccountBase.InvokeSendPaymentSuccessEvent(String, String)
NeblioAccountBase.InvokeAccountLockedEvent(String)
NeblioAccountBase.InvokeErrorDuringSendEvent(String, String)
NeblioAccountBase.InvokeErrorEvent(String, String)
NeblioAccountBase.TxCashPreload()
NeblioAccountBase.LoadAccountKey(String, String)
NeblioAccountBase.ReloadTokenSupply()
NeblioAccountBase.ReloadCountOfNFTs()
NeblioAccountBase.ReloadMintingSupply()
NeblioAccountBase.ReloadCoruzantNFTs()
NeblioAccountBase.ReloadHardwarioNFTs()
NeblioAccountBase.ReloadUtxos()
NeblioAccountBase.ReloadAccountInfo()
NeblioAccountBase.ReLoadNFTs(Boolean, Boolean)
NeblioAccountBase.RefreshAddressReceivedPayments()
NeblioAccountBase.FireNFTAddedToPayments(String, (T1, T2)<String, Int32>)
NeblioAccountBase.RefreshAddressReceivedReceipts()
NeblioAccountBase.HasSomeSpendableNeblio(Double)
NeblioAccountBase.HasSomeSourceForMinting()
NeblioAccountBase.ValidateNFTUtxo(String, Int32)
NeblioAccountBase.CheckSpendableNeblio(Double)
NeblioAccountBase.CheckSpendableNeblioTokens(String, Int32)
NeblioAccountBase.VerifyMessage(String, String, String, PubKey)
NeblioAccountBase.EncryptMessage(String)
NeblioAccountBase.DecryptMessage(String)
NeblioAccountBase.GetNFTVerifyCode(String)
NeblioAccountBase.GetNFTVerifyQRCode(String)
NeblioAccountBase.SignMessage(String)
NeblioAccountBase.SendNeblioPayment(String, Double, String)
NeblioAccountBase.SendMultipleInputNeblioPayment(String, Double, List<Utxos>, String)
NeblioAccountBase.SplitNeblioCoin(List<String>, Int32, Double)
NeblioAccountBase.IssueTokens(String, UInt64, String, String, String, String, String, IDictionary<String, String>)
NeblioAccountBase.SendNeblioTokenPayment(String, IDictionary<String, String>, String, Int32)
NeblioAccountBase.SplitTokens(String, IDictionary<String, String>, List<String>, Int32, Int32)
NeblioAccountBase.MintNFT(INFT, String)
NeblioAccountBase.MintMultiNFT(INFT, Int32, String)
NeblioAccountBase.MintMultiNFTLargeAmount(INFT, Int32, String, List<String>, Int32)
NeblioAccountBase.DestroyNFTs(ICollection<INFT>, String)
NeblioAccountBase.SendNFT(String, INFT, Boolean, Double, Boolean, Double)
NeblioAccountBase.ChangeNFT(INFT)
NeblioAccountBase.SendIoTMessageNFT(INFT, String, String)
NeblioAccountBase.SendMessageNFT(String, String, String, String, Boolean, String, String, String, String)
NeblioAccountBase.UseNFTTicket(INFT)
NeblioAccountBase.SendNFTPayment(String, INFT)
NeblioAccountBase.ReturnNFTPayment(String, PaymentNFT)
NeblioAccountBase.SendAirdrop(String, String, Double, Double)
NeblioAccountBase.SendCoruzantNFT(String, INFT, Boolean, String)
NeblioAccountBase.InitAllAutoIoTDeviceNFT()
NeblioAccountBase.InitIoTDeviceNFT(String, Int32)
NeblioAccountBase.DeInitIoTDeviceNFT(String, Int32)
NeblioAccountBase.CheckPayments()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.Neblio
Assembly: VEDriversLite.dll
Syntax
public class NeblioSubAccount : NeblioAccountBase

Properties

| Improve this Doc View Source

BookmarkFromAccount

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

IsInBookmark

Indicate if this Sub Account is in the Bookmark

Declaration
[JsonIgnore]
public bool IsInBookmark { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Name of the Sub Account

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

BackupAddressToDto()

Backup Sub Account to AcountExportDto

Declaration
public (bool, AccountExportDto) BackupAddressToDto()
Returns
Type Description
System.ValueTuple<System.Boolean, AccountExportDto>

true and AcountExportDto

| Improve this Doc View Source

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

| Improve this Doc View Source

ClearBookmark()

Clear bookmark object

Declaration
public void ClearBookmark()
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

LoadBookmark(Bookmark)

Load bookmark

Declaration
public void LoadBookmark(Bookmark bkm)
Parameters
Type Name Description
Bookmark bkm
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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 Source

FirsLoadingStatus

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>
| Improve this Doc View Source

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>