setNodeUrl abstract method

Future<bool> setNodeUrl({
  1. required String nodeUrl,
  2. bool queryNetworkId = true,
})

Set the target node that the API to send requests to. Example: https://api.chainweb.com If queryNetworkId is true, this will fetch the networkId from the node's config and store it for future use. Returns true if it was able to get the networkId from the node.

Implementation

Future<bool> setNodeUrl({
  required String nodeUrl,
  bool queryNetworkId = true,
});