getGenesisAddress method
Query the network to find the genesis address of a transaction Returns a Address with genesisAddress
Implementation
Future<Address> getGenesisAddress(String address) async {
final body = 'query { genesisAddress (address:"$address") }';
final result = await _client
.withLogger(
'getGenesisAddress',
logsActivation: logsActivation,
)
.query(
QueryOptions(
document: gql(body),
parserFn: (json) =>
GenesisAddressResponseData.fromJson(json).address,
),
);
manageLinkException(result);
return result.parsedData ?? const Address(address: '');
}