Skip to content

Commit bd8736a

Browse files
committed
📄 docs: update readme
1 parent 220c4e9 commit bd8736a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

‎README.md‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ You can find specific documentation on a per-product basis below.
3535
## SDK Documentation
3636
You can learn more about the Transpose SDK and how it works below.
3737

38-
### Response Classes
39-
If you wish to recieve responses in JSON format, you can set the `json` parameter to `True` when initializing the SDK. This will return all responses as JSON objects.
40-
41-
**Response classes are considered deprecated as of v3.1.0 and will be removed in v4.0.0. JSON responses will become standard in v4.0.0**
42-
43-
```python
44-
from transpose_sdk import Transpose
45-
api = Transpose(api_key="YOUR_API_KEY", json=True)
46-
```
47-
4838
### Updating Chain ID
4939
If you want to change the chain ID of your query, you can do so by setting the `chain_id` or `chain` properties of the `Transpose` object. For example, if you want to query the Ethereum mainnet, you can do so by running the following code:
5040

@@ -77,6 +67,17 @@ api.set_chain(1)
7767
| 1 | Ethereum |
7868
| 137 | Polygon |
7969

70+
71+
### Raw JSON Responses
72+
If you wish to recieve responses in JSON format, you can set the `json` parameter to `True` when initializing the SDK. This will return all responses as JSON objects.
73+
74+
**Response classes are considered deprecated as of v3.1.0 and will be removed in v4.0.0. JSON responses will become standard in v4.0.0**
75+
76+
```python
77+
from transpose_sdk import Transpose
78+
api = Transpose(api_key="YOUR_API_KEY", json=True)
79+
```
80+
8081
### SDK Classes
8182
The Transpose SDK uses custom classes to represent API responses:
8283

0 commit comments

Comments
 (0)