2_cheatsheet_pocket
All accounts
pocketd keys list --keyring-backend=testGateway only
pocketd keys show -a gateway --keyring-backend=testApplication only
pocketd keys show -a application --keyring-backend=test2. PATH Protocol Configuration (.config.yaml)
.config.yaml)2.1 Generate Shannon Config
Generate config at local/path/.config.yaml:
make config_shannon_populateEnvironment variables
Override defaults if needed:
POCKETD_HOME: Path to pocketd home (default$HOME/.pocketd)POCKETD_KEYRING_BACKEND: Keyring backend (defaulttest)
2.2 Verify Shannon Configuration
Check config:
cat local/path/.config.yamlExpected format:
shannon_config:
full_node_config:
rpc_url: https://shannon-grove-rpc.mainnet.poktroll.com
grpc_config:
host_port: shannon-grove-grpc.mainnet.poktroll.com:443
lazy_mode: false
gateway_config:
gateway_mode: "centralized"
gateway_address: pokt1... # Your gateway address
gateway_private_key_hex: "0x..." # Your gateway private key
owned_apps_private_keys_hex:
- "0x..." # Your application private key2.3 Verify onchain configuration matches
Verify service configuration for each application:
pocketd query application show-application \
$(pocketd keys show -a application --keyring-backend=test) \
--node=https://shannon-grove-rpc.mainnet.poktroll.com3. PATH Envoy Configuration (.values.yaml)
.values.yaml)3.1 Copy the template config
Run the following command to create local/path/.values.yaml:
make configs_copy_values_yamlAnd check the contents of local/path/.values.yaml:
cat local/path/.values.yaml3.2 Update the services
Update this section with the services you want to support. For example:
guard:
services:
- serviceId: eth
- serviceId: svc1
- serviceId: sv2
- serviceId: oasysMake sure this reflects both of the following:
4. Run PATH Stack Locally
4.1 Run & Monitor PATH
Run the following command and wait 1-2 minutes:
make path_upYour terminal should display the following:
Visit the Tilt dashboard at http://localhost:10350/r/(all)/overview and make sure everything is 🟢.
4.2 Check configured services
curl http://localhost:3070/healthz | jq4.3 Example Relays
See Example Relays.
5. Stop PATH
When you're finished testing:
make path_downWas this helpful?
