Skip to main content

GraphQlTransactionsFilter

Namespace: IotaSdk

Filter for transaction queries.

Holds at most one of the function, kind, address and object filters that the GraphQL service can only serve one of at a time, so each of those setters replaces whichever was set before; the sender, checkpoint and digest filters can be combined with them and with each other freely.

public class GraphQlTransactionsFilter : IGraphQlTransactionsFilter, System.IDisposable

Inheritance Object → GraphQlTransactionsFilter
Implements IGraphQlTransactionsFilter, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

GraphQlTransactionsFilter(UInt64)​

public GraphQlTransactionsFilter(ulong pointer)

Parameters​

pointer UInt64

GraphQlTransactionsFilter()​

Create a filter that selects on nothing.

public GraphQlTransactionsFilter()

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

WithAffectedAddress(Address)​

Select transactions that affected the given address.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithAffectedAddress(Address affectedAddress)

Parameters​

affectedAddress Address

Returns​

GraphQlTransactionsFilter

WithAfterCheckpoint(UInt64)​

Limit to transactions executed after the given checkpoint, exclusive.

public GraphQlTransactionsFilter WithAfterCheckpoint(ulong afterCheckpoint)

Parameters​

afterCheckpoint UInt64

Returns​

GraphQlTransactionsFilter

WithAtCheckpoint(UInt64)​

Limit to transactions executed in the given checkpoint.

public GraphQlTransactionsFilter WithAtCheckpoint(ulong atCheckpoint)

Parameters​

atCheckpoint UInt64

Returns​

GraphQlTransactionsFilter

WithBeforeCheckpoint(UInt64)​

Limit to transactions executed before the given checkpoint, exclusive.

public GraphQlTransactionsFilter WithBeforeCheckpoint(ulong beforeCheckpoint)

Parameters​

beforeCheckpoint UInt64

Returns​

GraphQlTransactionsFilter

WithChangedObject(ObjectId)​

Select transactions that output a version of the given object.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithChangedObject(ObjectId changedObject)

Parameters​

changedObject ObjectId

Returns​

GraphQlTransactionsFilter

WithFunction(String)​

Select by package, module, or function name, e.g. "0x03", "0x03::iota_system", or "0x03::iota_system::request_add_stake".

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithFunction(string function)

Parameters​

function String

Returns​

GraphQlTransactionsFilter

WithInputObject(ObjectId)​

Select transactions that used the given object as an input.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithInputObject(ObjectId inputObject)

Parameters​

inputObject ObjectId

Returns​

GraphQlTransactionsFilter

WithKind(GraphQlTransactionBlockKindInput)​

Select by transaction kind.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithKind(GraphQlTransactionBlockKindInput kind)

Parameters​

kind GraphQlTransactionBlockKindInput

Returns​

GraphQlTransactionsFilter

WithRecvAddress(Address)​

Select transactions that sent an object to the given address.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithRecvAddress(Address recvAddress)

Parameters​

recvAddress Address

Returns​

GraphQlTransactionsFilter

WithSentAddress(Address)​

Filter by sender address.

public GraphQlTransactionsFilter WithSentAddress(Address sentAddress)

Parameters​

sentAddress Address

Returns​

GraphQlTransactionsFilter

WithTransactionIds(TransactionDigest[])​

Select by transaction digests.

public GraphQlTransactionsFilter WithTransactionIds(TransactionDigest[] transactionIds)

Parameters​

transactionIds TransactionDigest[]

Returns​

GraphQlTransactionsFilter

WithWrappedOrDeletedObject(ObjectId)​

Select transactions that wrapped or deleted the given object.

Replaces the selector already set, if any.

public GraphQlTransactionsFilter WithWrappedOrDeletedObject(ObjectId wrappedOrDeletedObject)

Parameters​

wrappedOrDeletedObject ObjectId

Returns​

GraphQlTransactionsFilter