getLatestBlock method

Future<LatestBlock> getLatestBlock({
  1. required Address address,
})

Get latest block by address and return it or throw error

Implementation

Future<LatestBlock> getLatestBlock({required Address address}) {
  if (_disposed) throw TransportCallAfterDisposeError();

  return transport.getLatestBlock(address: address.address);
}