Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Latest commit

 

History

History
78 lines (48 loc) · 1.18 KB

README.md

File metadata and controls

78 lines (48 loc) · 1.18 KB

Proxima Registry

The Proxima Registry is designed to interact with the chain, and the registry.

Installation

npm install

Use

node index.js

API

Get Registry Address

registry.getRegistryAddress()

This function returns the address of the registry.

Get Services

var services = registry.getServices()

This function returns the list of services by ID.

Get Service

var serviceId = services[0]
registry.getService(serviceId)
name type description
serviceId uint256 id of the service

This returns the associated service variables.

Get Bootstraps

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.

Schema

Service

    struct Service {
        uint256 serviceId;
        string id;
        address owner;
        uint256 index;
        string name;
        bytes32[] bootstraps;
        uint256 stake;

    }