docs: add RPC endpoint examples and SSH best practices to access patterns
All checks were successful
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m8s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 2s

- Add curl example for localhost RPC endpoint (127.0.0.1:8006/rpc/head)
- Add RPC access examples for aitbc1 (localhost and aitbc hostname)
- Create Important Notes section with SSH best practices
- Document localhost command execution (no SSH needed)
- Add guidance on proper quoting and connectivity testing
This commit is contained in:
aitbc
2026-05-09 18:06:10 +02:00
parent 607ad2105f
commit 1b43859291

View File

@@ -11,6 +11,7 @@ Direct access - no SSH required.
# Run commands directly on localhost
echo "command"
systemctl restart service-name
curl http://127.0.0.1:8006/rpc/head
```
### aitbc1
@@ -19,6 +20,10 @@ Direct SSH access.
ssh aitbc1
# Or execute single command
ssh aitbc1 "command"
# Access aitbc1's blockchain RPC
ssh aitbc1 "curl http://127.0.0.1:8006/rpc/head"
# Access aitbc from aitbc1
ssh aitbc1 "curl http://aitbc:8006/rpc/head"
```
### gitea-runner (hosts aitbc2 blockchain node)
@@ -34,6 +39,11 @@ ssh gitea-runner "/opt/aitbc/aitbc-cli blockchain info"
ssh gitea-runner "systemctl status aitbc-blockchain-node --no-pager"
```
## Important Notes
- **Never SSH to localhost**: Commands should run directly on the local machine
- **Use proper quoting**: When passing commands to SSH, use single quotes to prevent shell expansion
- **Test connectivity**: Verify RPC endpoints are accessible before running sync operations
## Common Operations
### Check service status on aitbc1