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
WithAfterCheckpoint(UInt64)
Limit to transactions executed after the given checkpoint, exclusive.
public GraphQlTransactionsFilter WithAfterCheckpoint(ulong afterCheckpoint)
Parameters
afterCheckpoint UInt64
Returns
WithAtCheckpoint(UInt64)
Limit to transactions executed in the given checkpoint.
public GraphQlTransactionsFilter WithAtCheckpoint(ulong atCheckpoint)
Parameters
atCheckpoint UInt64
Returns
WithBeforeCheckpoint(UInt64)
Limit to transactions executed before the given checkpoint, exclusive.
public GraphQlTransactionsFilter WithBeforeCheckpoint(ulong beforeCheckpoint)
Parameters
beforeCheckpoint UInt64
Returns
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
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
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
WithKind(GraphQlTransactionBlockKindInput)
Select by transaction kind.
Replaces the selector already set, if any.
public GraphQlTransactionsFilter WithKind(GraphQlTransactionBlockKindInput kind)
Parameters
kind GraphQlTransactionBlockKindInput
Returns
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
WithSentAddress(Address)
Filter by sender address.
public GraphQlTransactionsFilter WithSentAddress(Address sentAddress)
Parameters
sentAddress Address
Returns
WithTransactionIds(TransactionDigest[])
Select by transaction digests.
public GraphQlTransactionsFilter WithTransactionIds(TransactionDigest[] transactionIds)
Parameters
transactionIds TransactionDigest[]
Returns
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