The Proxima Registry is designed to interact with the chain, and the registry.
npm install
node index.js
registry.getRegistryAddress()
This function returns the address of the registry.
var services = registry.getServices()
This function returns the list of services by ID.
var serviceId = services[0]
registry.getService(serviceId)
name | type | description |
---|---|---|
serviceId | uint256 | id of the service |
This returns the associated service variables.
var serviceId = services[0]
registry.getBootstraps(serviceId)
name | type | description |
---|---|---|
serviceId | uint256 | id of the service |
This returns the associated bootstrap nodes with the service.
struct Service {
uint256 serviceId;
string id;
address owner;
uint256 index;
string name;
bytes32[] bootstraps;
uint256 stake;
}