Skip to main content

A minimal Python API for LayerZero Scan

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

layerzero-scan-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

layerzero_scan-1.0.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file layerzero-scan-1.0.0.tar.gz.

File metadata

  • Download URL: layerzero-scan-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for layerzero-scan-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eb6d7cedaf0ff62c47b741ef15a5a4bafbe650ee224aff831925a05090005dfa
MD5 0a11348bf87abc086911fb1699a08923
BLAKE2b-256 31d6e626ed881494584317b1103741700f5321ff6a90f62d36964c04a04edd20

See more details on using hashes here.

File details

Details for the file layerzero_scan-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: layerzero_scan-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for layerzero_scan-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60842b15ff200416de5a466d640ad786b0a5af4a456e46d0da86b177732da7d7
MD5 372cbd60ee154b0aa1e024a332630afa
BLAKE2b-256 05a52fd6627ec26d0dce3c1af24e320bc726d302fd3463d7bb6d227ff1a3ffbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page