Interface ICoinService
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
entityArkContractEntityvtxoArkVtxocancellationTokenCancellationToken
Returns
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
vtxoArkVtxowalletIdentifierstringcancellationTokenCancellationToken