GraphQlTransactionsFilter
GraphQlTransactionsFilter
class GraphQlTransactionsFilter
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.
init()
convenience init()
Create a filter that selects on nothing.
withAffectedAddress(affectedAddress:)
func withAffectedAddress(affectedAddress: Address) -> GraphQlTransactionsFilter
Select transactions that affected the given address.
Replaces the selector already set, if any.
withAfterCheckpoint(afterCheckpoint:)
func withAfterCheckpoint(afterCheckpoint: UInt64) -> GraphQlTransactionsFilter
Limit to transactions executed after the given checkpoint, exclusive.
withAtCheckpoint(atCheckpoint:)
func withAtCheckpoint(atCheckpoint: UInt64) -> GraphQlTransactionsFilter
Limit to transactions executed in the given checkpoint.
withBeforeCheckpoint(beforeCheckpoint:)
func withBeforeCheckpoint(beforeCheckpoint: UInt64) -> GraphQlTransactionsFilter
Limit to transactions executed before the given checkpoint, exclusive.
withChangedObject(changedObject:)
func withChangedObject(changedObject: ObjectId) -> GraphQlTransactionsFilter
Select transactions that output a version of the given object.
Replaces the selector already set, if any.
withFunction(function:)
func withFunction(function: String) -> GraphQlTransactionsFilter
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.
withInputObject(inputObject:)
func withInputObject(inputObject: ObjectId) -> GraphQlTransactionsFilter
Select transactions that used the given object as an input.
Replaces the selector already set, if any.
withKind(kind:)
func withKind(kind: GraphQlTransactionBlockKindInput) -> GraphQlTransactionsFilter
Select by transaction kind.
Replaces the selector already set, if any.
withRecvAddress(recvAddress:)
func withRecvAddress(recvAddress: Address) -> GraphQlTransactionsFilter
Select transactions that sent an object to the given address.
Replaces the selector already set, if any.
withSentAddress(sentAddress:)
func withSentAddress(sentAddress: Address) -> GraphQlTransactionsFilter
Filter by sender address.
withTransactionIds(transactionIds:)
func withTransactionIds(transactionIds: [TransactionDigest]) -> GraphQlTransactionsFilter
Select by transaction digests.
withWrappedOrDeletedObject(wrappedOrDeletedObject:)
func withWrappedOrDeletedObject(wrappedOrDeletedObject: ObjectId) -> GraphQlTransactionsFilter
Select transactions that wrapped or deleted the given object.
Replaces the selector already set, if any.