CollectorScan
Ask AI
CollectorScan walks at most ScanLimit entries of a plan's supporter list, from index `from` (0 = oldest), and returns the active mandates whose session key is sessionAddr, one per line:
Example
1<index> <mandate id> <payer> <amount ugnot> <next pull unix> <due|wait> <pulls> <paid>
<paid> is 1 when the payer has paid for this plan (this mandate pulled, or it started with paid time carried over from an earlier one), 0 when it never has. The last line is "next <index>" when more entries follow, "end" otherwise. Cancelled and expired mandates, and mandates for other keys, are skipped here, so a collector never needs to read them. Anyone can record a mandate without a session, so a collector should check on chain that the session exists, at least before the first pull of a mandate whose payer never paid.
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate.CollectorScan(,,)"
Result