getFullContractState method

  1. @override
Future<FullContractState?> getFullContractState(
  1. Address address
)
override

Get full contract state of address and return FullContractState or throw error

Implementation

@override
Future<FullContractState?> getFullContractState(Address address) async {
  if (_disposed) throw TransportCallAfterDisposeError();

  final res = await transport.getFullContractState(address: address.address);
  if (res == null) return null;

  return FullContractState.fromJson(jsonDecode(res));
}