Class CATWallet
Wraps a CAT wallet
public sealed class CATWallet : Wallet
- Inheritance
-
CATWallet
- Inherited Members
- Extension Methods
Remarks
ctor
Constructors
CATWallet(uint, WalletProxy)
Wraps a CAT wallet
public CATWallet(uint walletId, WalletProxy walletProxy)
Parameters
walletId
uintThe wallet_id to wrap
walletProxy
WalletProxyWallet RPC proxy to use for communication
Remarks
ctor
Methods
GetAssetId(CancellationToken)
Get the asset id of a wallet's CAT
public Task<string> GetAssetId(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
GetName(CancellationToken)
Get the name of a wallet's CAT
public Task<string> GetName(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
SetName(string, CancellationToken)
Set the name of the CAT
public Task SetName(string name, CancellationToken cancellationToken = default)
Parameters
name
stringThe new name
cancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
Spend(string, ulong, IEnumerable<string>?, ulong?, ulong?, IEnumerable<ulong>?, bool?, ulong, CancellationToken)
Spend a CAT
public Task<TransactionRecord> Spend(string innerAddress, ulong amount, IEnumerable<string>? memos = null, ulong? minCoinAmount = null, ulong? maxCoinAmount = null, IEnumerable<ulong>? excludeCoinAmounts = null, bool? reusePuzhash = null, ulong fee = 0, CancellationToken cancellationToken = default)
Parameters
innerAddress
stringThe inner address for the spend
amount
ulongThe amount to put in the wallet (in units of mojos)
memos
IEnumerable<string>Optional list of byte string memos to include in the transaction
minCoinAmount
ulong?maxCoinAmount
ulong?excludeCoinAmounts
IEnumerable<ulong>reusePuzhash
bool?fee
ulongThe fee to create the wallet (in units of mojos)
cancellationToken
CancellationTokenA token to allow the call to be cancelled
Returns
Validate(CancellationToken)
public override Task Validate(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Wraps a CAT wallet
Returns
- Task
True if the wallet is a CAT wallet