Skip to content

dialectlabs/realms-monitoring-service

Repository files navigation

realms-monitoring-service

generate a new keypair for realms monitoring service and fund it

export keypairs_dir=~/projects/dialect
solana-keygen new --outfile ${keypairs_dir}/realms-service-dev-local-key.json
solana-keygen pubkey ${keypairs_dir}/realms-service-dev-local-key.json > ${keypairs_dir}/realms-service-dev-local-key.pub
solana -k ${keypairs_dir}/realms-service-dev-local-key.json airdrop 300

start server

export keypairs_dir=~/projects/dialect
PRIVATE_KEY=$(cat ${keypairs_dir}/realms-service-dev-local-key.json) yarn start:dev

start client

export keypairs_dir=~/projects/dialect
MONITORING_SERVICE_PUBLIC_KEY=$(cat ${keypairs_dir}/realms-service-dev-local-key.pub) ts-node test/realms-clients.ts