🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

layerzero-scan

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

layerzero-scan

A minimal Python API for LayerZero Scan

1.0.0
PyPI
Maintainers
1

LayerZero-Scan

A minimal Python Wrapper for the LayerZero Scan API.

Installation

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

Tests

In bash test that everything looks OK before proceeding:

bash run_tests.sh

Usage

In python create a client:

# 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.:

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts