Skip to content

Commit 0727964

Browse files
committed
use mainnet wallet addresses and normalize results
1 parent 293f950 commit 0727964

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nodes/lite-nodes/spin-up-a-lite-node.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,30 +382,31 @@ Let's run a couple of commands to see if the JSON-RPC API is set up correctly.
382382
383383
```plaintext
384384
{
385+
"id": 1,
385386
"jsonrpc": "2.0",
386-
"result": "t1vuc4eu2wgsdnce2ngygyzuxky3aqijqe7gj5qqa",
387-
"id": 1
387+
"result": "f1vuc4eu2wgsdnce2ngygyzuxky3aqijqe7gj5qqa"
388388
}
389389
```
390390
391391
The result field is the public key for our address. The private key is stored within our lite-node.
392392
393-
3. Set the new address as the default wallet for our lite-node:
393+
3. Set the new address as the default wallet for our lite-node, reminder to replace the Bearer token with our auth key `eyJhbGc...` and the `"params"` value with the wallet address returned from the previous command:
394394
395395
```shell
396396
curl -X POST '127.0.0.1:1234/rpc/v0' \
397397
-H 'Content-Type: application/json' \
398398
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJyZWFkIiwid3JpdGUiLCJzaWduIiwiYWRtaW4iXX0.um-LqY7g-SDOsMheDRbQ9JIaFzus_Pan0J88VQ6ZLVE' \
399-
--data '{"jsonrpc":"2.0","id":1,"method":"Filecoin.WalletSetDefault","params":["t1vuc4eu2wgsdnce2ngygyzuxky3aqijqe7gj5qqa"]}' \
399+
--data '{"jsonrpc":"2.0","id":1,"method":"Filecoin.WalletSetDefault","params":["f1vuc4eu2wgsdnce2ngygyzuxky3aqijqe7gj5qqa"]}' \
400400
| jq
401401
```
402402
403403
This will output something like:
404404
405405
```plaintext
406406
{
407+
"id": 1,
407408
"jsonrpc": "2.0",
408-
"id": 1
409+
"result": null
409410
}
410411
```
411412
{% endcode %}

0 commit comments

Comments
 (0)