ContractExtension extension
Methods
-
call<T>(String method, [List args = const []])
→ Future<T>
-
Call read-only constant method on the Contract.
-
getFilter(String eventName, [List args = const []])
→ Filter
-
Return a filter for
eventName
, optionally filtering by additional constraints.
-
multicall<T>(String method, List<List> args, [bool eagerError = false])
→ Future<List<T>>
-
Multicall read-only constant method on the Contract.
May not
be at the same block.
-
multicallMethod(List<String> method, List<List> args)
→ Future<List>
-
Multicall method and args on the Contract, this lose ability to annotate type.
-
off(String eventName, [Function? listener])
→ dynamic
-
Remove a
listener
for the eventName
event. If no listener
is provided, all listeners for eventName
are removed.
-
on(String eventName, Function listener)
→ dynamic
-
Add a
listener
to be triggered for each eventName
event.
-
once(String eventName, Function listener)
→ dynamic
-
Add a
listener
to be triggered for only the next eventName
event, at which time it will be removed.
-
queryFilter(EventFilter filter, [dynamic startBlock, dynamic endBlock])
→ Future<List<Log>>
-
Return a
List
of Logs
that have been emitted by the Contract by the filter
.
-
send(String method, [List args = const [], TxOverride? params])
→ Future<TransactionResponse>
-
Send write method to the Contract.