Table of Contents

Class AssetManager

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll
public class AssetManager : IAssetManager
Inheritance
AssetManager
Implements
Inherited Members

Constructors

AssetManager(IVtxoStorage, IContractStorage, ICoinService, IWalletProvider, IContractService, IClientTransport, ICoinSelector, ISafetyService, IIntentStorage, IEnumerable<IEventHandler<PostCoinsSpendActionEvent>>, ILogger<AssetManager>?)

public AssetManager(IVtxoStorage vtxoStorage, IContractStorage contractStorage, ICoinService coinService, IWalletProvider walletProvider, IContractService contractService, IClientTransport transport, ICoinSelector coinSelector, ISafetyService safetyService, IIntentStorage intentStorage, IEnumerable<IEventHandler<PostCoinsSpendActionEvent>> postSpendEventHandlers, ILogger<AssetManager>? logger = null)

Parameters

vtxoStorage IVtxoStorage
contractStorage IContractStorage
coinService ICoinService
walletProvider IWalletProvider
contractService IContractService
transport IClientTransport
coinSelector ICoinSelector
safetyService ISafetyService
intentStorage IIntentStorage
postSpendEventHandlers IEnumerable<IEventHandler<PostCoinsSpendActionEvent>>
logger ILogger<AssetManager>

Methods

BurnAsync(string, BurnParams, CancellationToken)

Burns a quantity of an existing asset. Returns the Arkade transaction ID.

public Task<string> BurnAsync(string walletId, BurnParams parameters, CancellationToken cancellationToken = default)

Parameters

walletId string
parameters BurnParams
cancellationToken CancellationToken

Returns

Task<string>

IssueAsync(string, IssuanceParams, CancellationToken)

Issues a new asset for the given wallet. Returns the Arkade transaction ID and asset ID.

public Task<IssuanceResult> IssueAsync(string walletId, IssuanceParams parameters, CancellationToken cancellationToken = default)

Parameters

walletId string
parameters IssuanceParams
cancellationToken CancellationToken

Returns

Task<IssuanceResult>

ReissueAsync(string, ReissuanceParams, CancellationToken)

Mints additional supply of an existing asset. Returns the Arkade transaction ID.

public Task<string> ReissueAsync(string walletId, ReissuanceParams parameters, CancellationToken cancellationToken = default)

Parameters

walletId string
parameters ReissuanceParams
cancellationToken CancellationToken

Returns

Task<string>