Skip to content

Commit 2c94b58

Browse files
committed
Update README.md
1 parent fd094a2 commit 2c94b58

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,58 @@ It should be indexing arount 400 pages, it should take about 2 minutes.
5858
Pyrhon3 chat.py
5959
```
6060

61+
## Example interaction
62+
63+
```
64+
Please enter your question (or 'quit' to stop): what are chainstack core pillars?
65+
66+
Question: what are chainstack core pillars?
67+
Answer: Chainstack's core pillars are unbeatable pricing, unbounded performance, and unlimited flexibility.
68+
69+
Tokens Used: 1178
70+
Prompt Tokens: 1160
71+
Completion Tokens: 18
72+
Successful Requests: 1
73+
Total Cost (USD): $0.002356
74+
75+
Please enter your question (or 'quit' to stop): how can i start using the Ethereum API with chainstack?
76+
77+
Question: how can i start using the Ethereum API with chainstack?
78+
Answer: To use the Ethereum API with Chainstack, you need to follow these steps:
79+
80+
1. Sign up with Chainstack.
81+
2. Deploy an Ethereum RPC node.
82+
3. View your node access and credentials.
83+
4. Create an API key to authenticate your requests to the Chainstack API.
84+
5. Use tools such as curl or Postman to make manual requests to the Ethereum RPC node using JSON-RPC and the command line.
85+
86+
Once you have completed these steps, you can start using the Ethereum API to interact with the Ethereum blockchain and build your applications.
87+
88+
Tokens Used: 1389
89+
Prompt Tokens: 1266
90+
Completion Tokens: 123
91+
Successful Requests: 2
92+
Total Cost (USD): $0.0027780000000000005
93+
94+
Please enter your question (or 'quit' to stop): what methods can i use to get ethereum blocks information?
95+
96+
Question: what methods can i use to get ethereum blocks information?
97+
Answer: The following methods can be used to retrieve Ethereum block information when using the Ethereum API with Chainstack:
98+
99+
- eth_blockNumber
100+
- eth_getBlockByHash
101+
- eth_getBlockByNumber
102+
- eth_getBlockTransactionCountByHash
103+
- eth_getBlockTransactionCountByNumber
104+
- eth_newBlockFilter
105+
106+
These methods allow developers to access specific block details such as the block's transactions, timestamp, height, header, and more.
107+
108+
Tokens Used: 1846
109+
Prompt Tokens: 1739
110+
Completion Tokens: 107
111+
Successful Requests: 2
112+
Total Cost (USD): $0.0036920000000000004
113+
```
61114

62115

0 commit comments

Comments
 (0)