Everything a Client holds for mirror node REST access, in one value.
transport carries provenance. null (the default) means the SDK
builds a DefaultHttpTransport on first use and owns it; a non-null
value was supplied by the application, which owns it and which
Client.close() never closes.
transportConfiguration configures the transport the SDK would build.
It is ignored when transport is non-null, and must be set before the
first mirror REST call because the transport is built once per client.
retryPolicy governs every mirror REST call made through the client.
requestHeaders go on every mirror request, below any header a query
sets for its endpoint. user-agent and x-user-agent are rejected,
matched case-insensitively.
Client.setMirrorNodeHttpConfig replaces the whole value rather than
merging, and Client.getMirrorNodeHttpConfig returns what was supplied
rather than what was resolved, so derive from the current value:
client.setMirrorNodeHttpConfig({ ...client.getMirrorNodeHttpConfig(), transport }).
Everything a
Clientholds for mirror node REST access, in one value.transportcarries provenance.null(the default) means the SDK builds aDefaultHttpTransporton first use and owns it; a non-null value was supplied by the application, which owns it and whichClient.close()never closes.transportConfigurationconfigures the transport the SDK would build. It is ignored whentransportis non-null, and must be set before the first mirror REST call because the transport is built once per client.retryPolicygoverns every mirror REST call made through the client.requestHeadersgo on every mirror request, below any header a query sets for its endpoint.user-agentandx-user-agentare rejected, matched case-insensitively.Client.setMirrorNodeHttpConfigreplaces the whole value rather than merging, andClient.getMirrorNodeHttpConfigreturns what was supplied rather than what was resolved, so derive from the current value:client.setMirrorNodeHttpConfig({ ...client.getMirrorNodeHttpConfig(), transport }).