getContractState method

  1. @override
Future<RawContractState> getContractState(
  1. Address address
)
override

Get contract state of address and return RawContractState or throw error

Implementation

@override
Future<RawContractState> getContractState(Address address) async {
  if (_disposed) throw TransportCallAfterDisposeError();

  final res = await transport.getContractState(address: address.address);
  return RawContractState.fromJson(jsonDecode(res));
}