# Introduction

`js-conflux-sdk` is a Javascript library for interacting with Conflux.

It’s commonly found in decentralized apps (dapps) to help with sending transactions, interacting with smart contracts, reading block data, and a variety of other use cases.

## Getting Started

* Unfamiliar with Conflux? → [confluxnetwork](http://confluxnetwork.org)
* Unfamiliar with Solidity? → [Solidity documentation](https://soliditylang.org/)
* Ready to code? → [QuickStart](/js-conflux-sdk/quick_start.md)
* Interested in a quick tour? → [Overview](/js-conflux-sdk/overview.md)
* Like to give back? → [Contribute](https://github.com/conflux-chain/js-conflux-sdk)
* Want to get testnet CFX? → [Conflux testnet faucet](http://faucet.confluxnetwork.org/)
* Conflux sponsorship mechanism? → [Sponsorship](https://doc.confluxnetwork.org/docs/core/core-space-basics/sponsor-mechanism)

## Table of Contents

* [QuickStart](/js-conflux-sdk/quick_start.md)
* [Overview](/js-conflux-sdk/overview.md)
* [Changelog](/js-conflux-sdk/change_log.md)
* [js-sdk examples](https://github.com/conflux-fans/js-sdk-example)

## Guides

* [Providers](/js-conflux-sdk/docs/providers.md) How to connect to Conflux network in different ways.
* [CIP37 Address](/js-conflux-sdk/docs/conflux_checksum_address.md) How to convert between different address formats.
* [Account](/js-conflux-sdk/docs/account.md) How to create and manage accounts.
* [Sending Transaction](/js-conflux-sdk/docs/how_to_send_tx.md) How to send transactions and wait tx confirmed.
* [Interact with Contract](/js-conflux-sdk/docs/interact_with_contract.md) How to interact with smart contracts.
* [Sign methods](/js-conflux-sdk/docs/sign_methods.md) How to sign messages and transactions.
* [Error Handling](/js-conflux-sdk/docs/error_handling.md) How to handle errors.
* [Batch RPC](/js-conflux-sdk/docs/batch_rpc.md) How to batch RPC requests.

## Examples

* [`Conflux` class initialization](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/0_create_conflux.js)
* [Account and balance](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/1_account_and_balance.js)
* [Send transaction](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/2_send_transaction.js)
* [Epoch, Block, Transaction](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/3_epoch_block_transaction.js)
* [Contract deploy and interact](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/4_contract_deploy_and_call.js)
* [Contract override](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/example/5_contract_override.js)

Check more community examples in [js-sdk-example](https://github.com/conflux-fans/js-sdk-example)

## API

* [Conflux](/js-conflux-sdk/api/conflux.md) The `Conflux` class provide methods to interact with RPC methods and send transaction.
* [Wallet](/js-conflux-sdk/api/wallet.md) The `Wallet` class provide methods to manage accounts and sign transactions.
* [PrivateKeyAccount](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/docs/api/wallet/PrivateKeyAccount.md) The `PrivateKeyAccount` class can be used to sign transactions or messages. It can be created from a private key or be random generated.
* [Transaction](/js-conflux-sdk/api/transaction.md) The `Transaction` class provide methods to construct and encode transactions.
* [Drip](/js-conflux-sdk/api/drip.md) Drip - CFX converter
* [format](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/docs/api/util/format.md) Type formaters
* [sign](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/docs/api/util/sign.md) Crypto utilities
* [address utilities](https://github.com/Conflux-Chain/js-conflux-sdk/blob/v2/docs/api/util/address.md) Address utilities

## Other Docs

1. [Official developer documentation](https://doc.confluxnetwork.org/)
2. [RPC API](https://doc.confluxnetwork.org/docs/core/build/json-rpc/)
3. [Subscription](https://doc.confluxnetwork.org/docs/core/build/json-rpc/pubsub)
4. [FluentWallet Official Site](https://fluentwallet.com/)
5. [Fluent documentation](https://fluent-wallet.zendesk.com/hc/en-001)


---

# Agent Instructions: 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://confluxnetwork.gitbook.io/js-conflux-sdk/index.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.
