setAPI(api)

Feature
Set the RPC-URL (API address)

Parameters

string api | undefined 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