@bproto/registrar
### Run Graphql server
Last updated a year ago by hexorx .
MIT · Original npm · Tarball · package.json
$ cnpm install @bproto/registrar 
SYNC missed versions from official npm registry.

registrar

Run Graphql server

See the environment variables for twilio in the root docker-compose file if using Docker or in an .env file if running directly.

WALLET: 12 word passphrase
PROVIDER: http://ethereum:8545
TWILIO_ACCOUNT_SID
TWILIO_SERVICE_SID
TWILIO_AUTH_TOKEN

The server will also auto start when running yarn start from the project root.

yarn apollo

The graphql playground will be available at http://localhost:4000/graphql

Check if a domain is available

Owner will be null if it is available.

query {
  domain (fqn: "test.dev") {
    fqn
    owner
  }
}

Send verify request

mutation Verify {
  verify(to: "+13032639850") {
    to
    channel
  }
}

Register domain

mutation Register {
  register(
    to: "+13032639850", 
    code: "446213", 
    domain: {
      fqn: "test2.dev",
      owner: "0x0dd90f3caee1d2758e3d036e4f45138f0427975d"
    }
  ) {
    fqn
    owner
    note
  }
}

Current Tags

  • 0.0.1-alpha.6                                ...           latest (a year ago)

3 Versions

  • 0.0.1-alpha.6                                ...           a year ago
  • 0.0.1-alpha.5                                ...           a year ago
  • 0.0.1-alpha.3                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |