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

Method setURL

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

Sets the URL for the client. It replaces all existing Chain Core URLs with the provided URL. @param url the URL of the Chain Core or HSM

(String url)

Source from the content-addressed store, hash-verified

632 * @param url the URL of the Chain Core or HSM
633 */
634 public Builder setURL(String url) throws BadURLException {
635 try {
636 this.urls = new ArrayList<URL>(Arrays.asList(new URL(url)));
637 } catch (MalformedURLException e) {
638 throw new BadURLException(e.getMessage());
639 }
640 return this;
641 }
642
643 /**
644 * Sets the URL for the client. It replaces all existing Chain Core

Callers 2

generateClientMethod · 0.80
ClientMethod · 0.80

Calls 1

getMessageMethod · 0.45

Tested by 1

generateClientMethod · 0.64