# JS SDK

### Main Functions

* Connect wallet
* Switch network
* Listen for account changes
* Listen transaction changes
* Get current assets
* Create invoice
* Send BTC Transfer
* Send taproot assets
* Sign messages
* Search assets
* Get invoices

### Requirements

* Modern web browser environment
* Install the bittap wallet extension
* A password and an existing account exist in the bittap wallet extension

### Links

* NPM package

{% embed url="<https://www.npmjs.com/package/@bittap/wallet-sdk>" %}

* Tutorials

{% embed url="<https://github.com/bittap-protocol/wallet-sdk/blob/main/Tutorials.en_US.md>" %}

{% embed url="<https://github.com/bittap-protocol/wallet-sdk/blob/main/Tutorials.zh_CN.md>" %}

* JSSDK Api Reference

{% embed url="<https://bittap-jssdk-doc.onebits.org/>" %}

* VUE Example

{% embed url="<https://bittap-vue.onebits.org/>" %}
Vue Demo
{% endembed %}

{% embed url="<https://github.com/bittap-protocol/wallet-sdk/tree/main/examples/vue3>" %}
Source code
{% endembed %}

* REACT Example

{% embed url="<https://bittap-react.onebits.org/>" %}
Demo
{% endembed %}

{% embed url="<https://github.com/bittap-protocol/wallet-sdk/tree/main/examples/react>" %}
Source code
{% endembed %}


---

# 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://doc.bittap.org/developer-guides/js-sdk.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.
