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

# Web3 Methods

This repository contains examples of web3 methods that can be used on VinuChain.\
VinuChain is an EVM-compatible chain secured by the Lachesis consensus algorithm.

The methods can be categorised into:

* ABI
* Accounts
* Common Methods
* Contract
* IBAN
* Subscribe
* Utils

[**ABI**](/vinuchain/technical-docs/web3-methods/web3.eth.abi.js.md)

The web3.eth.abi functions let you encode and decode parameters to ABI.

[**Accounts**](/vinuchain/technical-docs/web3-methods/web3.eth.accounts.js.md)

The web3.eth.accounts package contains functions to generate wallet accounts and sign transactions and data.

#### [Common Methods](/vinuchain/technical-docs/web3-methods/common.js.md) <a href="#user-content-common-methods" id="user-content-common-methods"></a>

The main package web3.eth contains simple API references that can help get certain information about the connected blockchain.

[**Contract**](/vinuchain/technical-docs/web3-methods/web3.eth.contract.js.md)

The web3.eth.contract package makes it easy to interact with smart contracts on the blockchain. When you create a new contract object you give it the json interface of the respective smart contract and web3 will auto convert all calls into low level ABI calls over RPC for you. This allows you to interact with smart contracts as if they were JavaScript objects.

[**IBAN**](/vinuchain/technical-docs/web3-methods/web3.eth.iban.js.md)

The web3.eth.Iban function converts wallet addresses from and to IBAN and BBAN.

[**Subscribe**](/vinuchain/technical-docs/web3-methods/web3.eth.subscribe.js.md)

The web3.eth.subscribe function lets you subscribe to specific events in the blockchain.

[**Utils**](/vinuchain/technical-docs/web3-methods/web3.eth.utils.js.md)

Utility functions for Blockchain dapps and other web3.js packages.

### Build <a href="#user-content-build" id="user-content-build"></a>

#### Add .env file <a href="#user-content-add-env-file" id="user-content-add-env-file"></a>

```
FROM_ADDRESS=
PRIVATE_KEY = 
TO_ADDRESS=
IBAN=
```

```
npm install
```

### Run <a href="#user-content-run" id="user-content-run"></a>

### node app.js <a href="#user-content-run" id="user-content-run"></a>

<br>


---

# 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, and the optional `goal` query parameter:

```
GET https://vinu.gitbook.io/vinuchain/technical-docs/web3-methods.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
