Table of Contents

Class CrawlerProxy

Namespace
chia.dotnet
Assembly
chia-dotnet.dll

Proxy that communicates with the crawler

public sealed class CrawlerProxy : ServiceProxy, IServiceProxy
Inheritance
CrawlerProxy
Implements
Inherited Members
Extension Methods

Remarks

ctor

Constructors

CrawlerProxy(IRpcClient, string)

Proxy that communicates with the crawler

public CrawlerProxy(IRpcClient rpcClient, string originService)

Parameters

rpcClient IRpcClient

IRpcClient instance to use for rpc communication

originService string

Origin

Remarks

ctor

Methods

GetIPs(DateTime, int, int, CancellationToken)

Retrieves ip addresses of peers that have connected after a given time

public Task<(IEnumerable<string> IPs, int Total)> GetIPs(DateTime after, int offset = 0, int limit = 10000, CancellationToken cancellationToken = default)

Parameters

after DateTime
offset int
limit int
cancellationToken CancellationToken

A token to allow the call to be cancelled

Returns

Task<(IEnumerable<string> IPs, int Total)>

IP addresses

GetPeerCounts(CancellationToken)

Retrieves aggregate information about peers

public Task<PeerCounts> GetPeerCounts(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to allow the call to be cancelled

Returns

Task<PeerCounts>

Information about peers