buildUrl method

  1. @override
String buildUrl({
  1. required String chainId,
  2. String? nodeUrl,
  3. String? networkId,
})
override

Build a url for the pact api from the given chainId Will use the nodeUrl and the networkId set by setNodeUrl and/or setNetworkId if nodeUrl and networkId are not provided.

Implementation

@override
String buildUrl({
  required String chainId,
  String? nodeUrl,
  String? networkId,
}) {
  return '${nodeUrl ?? _nodeUrl}/chainweb/0.0/${networkId ?? _networkId}/chain/$chainId/pact/api/v1';
}