Metadata-Version: 2.1
Name: layerzero-scan
Version: 1.0.0
Summary: A minimal Python API for LayerZero Scan
Home-page: https://github.com/kamilgg/layerzero-scan
Author: Kamil Gatin
Author-email: kamil.gatin2604@gmail.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: pytest

# LayerZero-Scan

A minimal Python Wrapper for the LayerZero Scan API.

___

## Installation

``` bash
pip install git+https://github.com/kamilgg/layerzero-scan
```

## Tests

In `bash` test that everything looks OK before proceeding:

``` bash
bash run_tests.sh
````

## Usage

In `python` create a client:

``` python
# For mainnet
from layerzero import LayerZero
client = LayerZero()

# For testnet
from layerzero import LayerZeroTestnet, Chains
client = LayerZeroTestnet()  # Testnet
client = LayerZeroTestnet(Chains.TESTNET)  # Also testnet
client = LayerZeroTestnet(Chains.SANDBOX)  # Sandbox
```

Then you can call all available methods, e.g.:
``` python
latest_messages = client.get_latest_messages()

latest_messages.count

> 63747514

tx_hash = "0xdbb9456feb829f67c2d26df00ba1f6f383463a0a7dc6ebc5d48c025800ed901b"
message = client.get_message_by_hash(tx_hash)

message.src_ua_nonce

> 1866644

message.status

> DELIVERED
```

___


By **kamgg.eth**
