> For the complete documentation index, see [llms.txt](https://docs.kardiachain.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kardiachain.io/docs/archived-docs/sdk/web3.md).

# Web3

Beside [KardiaChain RPC method](/docs/archived-docs/rpc/json-rpc-api.md#json-rpc-methods-and-reference) prefixed with `kai_`, we also support every `eth_` prefixed method so every Web3 library that works with Ethereum will also work with KardiaChain. Some popular library:

* Web3JS: <https://web3js.readthedocs.io/>
* EthersJS: <https://docs.ethers.io/>
* Web3 py: <https://web3py.readthedocs.io/>
* Web3 dart: <https://pub.dev/packages/web3dart>

To use web3 library with KardiaChain, simple init with our [public RPC](/docs/archived-docs/rpc/json-rpc-api.md#json-rpc-endpoint) and use the instance. For example in web3js:

```javascript
const Web3 = require("web3");
const web3 = new Web3("https://rpc.kardiachain.io");
```

For more information about the supported `eth_` method, please refer to [this document](https://github.com/kardiachain/go-kardia/wiki/Web3-compatible-JSON-RPC-APIs#web3-compatible-json-rpc-methods).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kardiachain.io/docs/archived-docs/sdk/web3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
