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
walletIduintThe wallet_id to wrap
walletProxyWalletProxyWallet 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
cancellationTokenCancellationTokenA 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
cancellationTokenCancellationTokenA 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
namestringThe new name
cancellationTokenCancellationTokenA 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
innerAddressstringThe inner address for the spend
amountulongThe amount to put in the wallet (in units of mojos)
memosIEnumerable<string>Optional list of byte string memos to include in the transaction
minCoinAmountulong?maxCoinAmountulong?excludeCoinAmountsIEnumerable<ulong>reusePuzhashbool?feeulongThe fee to create the wallet (in units of mojos)
cancellationTokenCancellationTokenA token to allow the call to be cancelled
Returns
Validate(CancellationToken)
public override Task Validate(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken- Wraps a CAT wallet
Returns
- Task
True if the wallet is a CAT wallet