Table of Contents

Interface ICoinService

Namespace
NArk.Core.Services
Assembly
NArk.Core.dll

Resolves VTXOs into spendable ArkCoin instances by matching them with their contract metadata and wallet signing information.

public interface ICoinService

Methods

GetCoin(ArkContractEntity, ArkVtxo, CancellationToken)

Creates a spendable coin from a known contract entity and VTXO.

Task<ArkCoin> GetCoin(ArkContractEntity entity, ArkVtxo vtxo, CancellationToken cancellationToken = default)

Parameters

entity ArkContractEntity
vtxo ArkVtxo
cancellationToken CancellationToken

Returns

Task<ArkCoin>

GetCoin(ArkVtxo, string, CancellationToken)

Creates a spendable coin from a VTXO by looking up the contract from storage.

Task<ArkCoin> GetCoin(ArkVtxo vtxo, string walletIdentifier, CancellationToken cancellationToken = default)

Parameters

vtxo ArkVtxo
walletIdentifier string
cancellationToken CancellationToken

Returns

Task<ArkCoin>