This fields retrieves only the transactions whose from and to addresses match the ones provided as arguments.
block(number: 1234) {
transactionsRoles(from: "0x1234...", to: "0x3456...") {
}
}
^^ This query would only return those transactions whose from and to addresses matched the provided ones.
It is possible to provide only the from or to address when fetching this field, in which case all transactions where the address appears in the appropriate field are returned.
If the user doesn't care about directionality (i.e. which address is source and which is target), they should use the transactionsParticipants field instead.
This fields retrieves only the transactions whose
from
andto
addresses match the ones provided as arguments.^^ This query would only return those transactions whose from and to addresses matched the provided ones.
It is possible to provide only the
from
orto
address when fetching this field, in which case all transactions where the address appears in the appropriate field are returned.If the user doesn't care about directionality (i.e. which address is source and which is target), they should use the
transactionsParticipants
field instead.[ch101]