getContractFields abstract method

Future<(Map<String, dynamic>?, FullContractState?)> getContractFields({
  1. required Address address,
  2. required String contractAbi,
  3. FullContractState? cachedState,
})

Get contract fields of address and return (Map<String, dynamic>, state) or throw error. This method automatically loads state by calling getFullContractState if cachedState is null.

Implementation

Future<(Map<String, dynamic>?, FullContractState?)> getContractFields({
  required Address address,
  required String contractAbi,
  FullContractState? cachedState,
});