setAPI(api)

Feature
Set the API Endpoint URL

Parameters

string api | IP

Return Value

null

example

mitum.setAPI("http://127.0.0.1:54320");
const info = mitum.getAPI();
console.log(info);

// output
"http://127.0.0.1:54320"

Last updated