# Vaultody

Vaultody is a Python package that provides a set of services to interact with the Vaultody API. It allows you to manage vaults, generate addresses, send transactions, and more.

## Installation

To install the Vaultody package, you can use `pip`. First, ensure you have Python 3.7 or higher installed. Then, run the following command:

```sh
pip install .
```

## Usage

To use the Vaultody package, you need to import the `VaultodyService` class:

```python
from vaultody.services import VaultodyService

vault_id = "your_vault_id"
service = VaultodyService(vault_id)
```

### Listing Vaults
You can list all vaults using the `list_vaults` method.

```python
vaults = service.list_vaults()
print(vaults)
```

### Listing Addresses
You can list addresses using the `list_addresses` method.

```python
blockchain = "bitcoin"
limit = 10
addresses = service.list_addresses(blockchain, limit)
print(addresses)
```

### Generating an Address
You can generate an address using the `generate_address` method.

```python
blockchain = "bitcoin"
network = "mainnet"
label = "my_label"
address = service.generate_address(blockchain, network, label)
print(address)
```

### Sending from an Address
You can send from an address using the `send_from_address` method.

```python
blockchain = "bitcoin"
network = "mainnet"
amount = 0.01
address = "recipient_address"
response = service.send_from_address(blockchain, network, amount, address)
print(response)
```

### Sending from an Address with Token
You can send from an address with a token using the `send_from_address_token` method.

```python
blockchain = "ethereum"
network = "mainnet"
amount = 10
address = "recipient_address"
sender_address = "sender_address"
response = service.send_from_address_token(blockchain, network, amount, address, sender_address)
print(response)
```

### Listing Assets
You can list assets using the `list_assets` method.

```python
assets = service.list_assets()
print(assets)
```

## Configuration

The Vaultody package requires the following environment variables to be set:


