MCPcopy Index your code
hub / github.com/chain/Core / addURL

Method addURL

sdk/java/src/main/java/com/chain/http/Client.java:611–618  ·  view source on GitHub ↗

Adds a base URL for the client to use. @param url the URL of the Chain Core or HSM.

(String url)

Source from the content-addressed store, hash-verified

609 * @param url the URL of the Chain Core or HSM.
610 */
611 public Builder addURL(String url) throws BadURLException {
612 try {
613 this.urls.add(new URL(url));
614 } catch (MalformedURLException e) {
615 throw new BadURLException(e.getMessage());
616 }
617 return this;
618 }
619
620 /**
621 * Adds a base URL for the client to use.

Callers 1

mainMethod · 0.80

Calls 2

addMethod · 0.80
getMessageMethod · 0.45

Tested by

no test coverage detected