You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ChainHead endpoint doesn’t require any input parameters, so we’ve left `params` an empty array `[]`.
38
39
39
-
The ChainHead endpoint doesn’t require any input parameters, so we’ve left `params` an empty array `[]`.
40
-
* The above command will output a large chunk of JSON data. You can use [JSON processor JQ](https://stedolan.github.io/jq/) to _prettify_ the output:
40
+
- The above command will output a large chunk of JSON data. You can use [JSON processor JQ](https://stedolan.github.io/jq/) to _prettify_ the output:
41
41
42
-
```
43
-
```
42
+
```
43
+
44
+
```
44
45
45
46
1. ```shell
46
47
curl -X POST 'https://api.node.glif.io' \
@@ -72,16 +73,16 @@ curl --location --request POST '<NODE_ADDRESS>' \
72
73
73
74
Each method has specific permissions that must be met before you can receive a response from a Filecoin node. Methods with the `read` permission can be called by anyone at anytime, without the need for a token. All other permissions require you to send an authentication along with you request.
74
75
75
-
*`read`: Read node state, no private data.
76
-
*`write`: Write to local store / chain, and read permissions.
77
-
*`sign`: Use private keys stored in wallet for signing, read and write permissions.
78
-
*`admin`: Manage permissions, read, write, and sign permissions.
76
+
-`read`: Read node state, no private data.
77
+
-`write`: Write to local store / chain, and read permissions.
78
+
-`sign`: Use private keys stored in wallet for signing, read and write permissions.
79
+
-`admin`: Manage permissions, read, write, and sign permissions.
79
80
80
81
## Authentication
81
82
82
83
Each node implementation has different ways to generate and manage authentication tokens. Take a look at your node’s specific documentation:
83
84
84
-
* [Lotus](https://lotus.filecoin.io)
85
-
* [Venus](https://venus.filecoin.io)
85
+
- [Lotus](https://lotus.filecoin.io)
86
+
- [Venus](https://venus.filecoin.io)
86
87
87
88
If you are using a node provider service like [Glif](https://glif.io) or [Chain.love](https://chain.love), take a look at your providers documentation to find out how to manage authentication tokens.
0 commit comments