0.0.1-alpha.7 • Published 4 years ago
@bproto/registrar v0.0.1-alpha.7
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
}
}