|
|
|
|
@ -25,22 +25,18 @@
|
|
|
|
|
* Check the payment channel status:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm exec -c 'nitro-rpc-client get-payment-channel <WATCHER_UPSTREAM_PAYMENT_CHANNEL> -h <hostname> -p <port>'
|
|
|
|
|
docker exec payments-nitro-rpc-client-1 npm exec -c "nitro-rpc-client get-payment-channel $WATCHER_UPSTREAM_PAYMENT_CHANNEL -h go-nitro -p 4005"
|
|
|
|
|
|
|
|
|
|
# Expected output:
|
|
|
|
|
# {
|
|
|
|
|
# "jsonrpc": "2.0",
|
|
|
|
|
# "id": 1,
|
|
|
|
|
# "result": {
|
|
|
|
|
# "ID": "0xfe1231722d6c2cd7af8606afe039582ebc438ee5ca2b956f8284cb497597583f",
|
|
|
|
|
# "Status": "Open",
|
|
|
|
|
# "Balance": {
|
|
|
|
|
# "AssetAddress": "0x0000000000000000000000000000000000000000",
|
|
|
|
|
# "Payee": "0xaaa6628ec44a8a742987ef3a114ddfe2d4f7adce",
|
|
|
|
|
# "Payer": "0xbbb676f9cff8d242e9eac39d063848807d3d1d94",
|
|
|
|
|
# "PaidSoFar": "0x0",
|
|
|
|
|
# "RemainingFunds": "0x3b9aca00"
|
|
|
|
|
# }
|
|
|
|
|
# ID: '0x8c0d17639bd2ba07dbcd248304a8f3c6c7276bfe25c2b87fe41f461e20f33f01',
|
|
|
|
|
# Status: 'Open',
|
|
|
|
|
# Balance: {
|
|
|
|
|
# AssetAddress: '0x0000000000000000000000000000000000000000',
|
|
|
|
|
# Payee: '0xaaa6628ec44a8a742987ef3a114ddfe2d4f7adce',
|
|
|
|
|
# Payer: '0xbbb676f9cff8d242e9eac39d063848807d3d1d94',
|
|
|
|
|
# PaidSoFar: 0n,
|
|
|
|
|
# RemainingFunds: 1000000000n
|
|
|
|
|
# }
|
|
|
|
|
# }
|
|
|
|
|
```
|
|
|
|
|
@ -114,7 +110,7 @@
|
|
|
|
|
|
|
|
|
|
* Perform phisher status check queries now that a payment channel is created:
|
|
|
|
|
* Check the watcher logs for received payments
|
|
|
|
|
* Check the payment proxy server logs for charged RPC requests (`eth_getBlockByHash`, `eth_getStorageAt`) made from watcher to upstream ETH server
|
|
|
|
|
* Check the payment proxy server logs for charged RPC requests (`eth_getBlockByHash`, `eth_getBlockByNumber`, `eth_getStorageAt`) made from watcher to upstream ETH server
|
|
|
|
|
|
|
|
|
|
* Change the amount besides `PAY` button to `>=100` for phisher reports next
|
|
|
|
|
|
|
|
|
|
@ -123,22 +119,18 @@
|
|
|
|
|
* Check the watcher - eth-server payment channel status after a few requests:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
npm exec -c 'nitro-rpc-client get-payment-channel <WATCHER_UPSTREAM_PAYMENT_CHANNEL> -h <hostname> -p <port>'
|
|
|
|
|
docker exec payments-nitro-rpc-client-1 npm exec -c "nitro-rpc-client get-payment-channel $WATCHER_UPSTREAM_PAYMENT_CHANNEL -h go-nitro -p 4005"
|
|
|
|
|
|
|
|
|
|
# Expected output ('PaidSoFar' should be non zero):
|
|
|
|
|
# {
|
|
|
|
|
# "jsonrpc": "2.0",
|
|
|
|
|
# "id": 1,
|
|
|
|
|
# "result": {
|
|
|
|
|
# "ID": "0xfe1231722d6c2cd7af8606afe039582ebc438ee5ca2b956f8284cb497597583f",
|
|
|
|
|
# "Status": "Open",
|
|
|
|
|
# "Balance": {
|
|
|
|
|
# "AssetAddress": "0x0000000000000000000000000000000000000000",
|
|
|
|
|
# "Payee": "0xaaa6628ec44a8a742987ef3a114ddfe2d4f7adce",
|
|
|
|
|
# "Payer": "0xbbb676f9cff8d242e9eac39d063848807d3d1d94",
|
|
|
|
|
# "PaidSoFar": "0x2710",
|
|
|
|
|
# "RemainingFunds": "0x3b9aa2f0"
|
|
|
|
|
# }
|
|
|
|
|
# ID: '0x8c0d17639bd2ba07dbcd248304a8f3c6c7276bfe25c2b87fe41f461e20f33f01',
|
|
|
|
|
# Status: 'Open',
|
|
|
|
|
# Balance: {
|
|
|
|
|
# AssetAddress: '0x0000000000000000000000000000000000000000',
|
|
|
|
|
# Payee: '0xaaa6628ec44a8a742987ef3a114ddfe2d4f7adce',
|
|
|
|
|
# Payer: '0xbbb676f9cff8d242e9eac39d063848807d3d1d94',
|
|
|
|
|
# PaidSoFar: 30000n,
|
|
|
|
|
# RemainingFunds: 999970000n
|
|
|
|
|
# }
|
|
|
|
|
# }
|
|
|
|
|
```
|
|
|
|
|
|