Skip to main content

Python SDK for resolving Lisk Name Service (.lisk) names

Project description

Lisk Name Service SDK (Python)

A lightweight Python SDK to resolve .lisk names into wallet addresses via the Lisk Name Service API.

✨ Features

  • 🔐 Secure resolution via API key
  • 🧠 Simple resolve(name) method
  • 📦 Supports tree-shaking and Python modules

📦 Install

pip install lisk-name-service

Usage

from lns_sdk import LNSClient

client = LNSClient("your-api-key")
print(client.resolve("myname"))

API

client = LNSClient("your-api-key")

Create a new client instance.

`apiKey` – your unique API key (provided after wallet connect).

resolve(name: string): Promise<string>

Resolves a .lisk name to its associated Ethereum-compatible wallet address.

Returns:

address: string – the resolved Ethereum-compatible wallet address.

ValueError if the name is missing or not found

RuntimeError for other network issues

🧪 Build (for contributors)

# from inside sdk/python/
pip install -e .
python3 -m tests.test_client

🔐 Notes

You must generate your API key by authenticating with your wallet on the LNS frontend.

Make sure your API key is kept secret and never exposed in frontend code.

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

lisk_name_service-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

lisk_name_service-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file lisk_name_service-0.1.1.tar.gz.

File metadata

  • Download URL: lisk_name_service-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for lisk_name_service-0.1.1.tar.gz
Algorithm Hash digest
SHA256 73bbd24e8169721b06779218228643696527339b720ed260b8a3a4794336cf4a
MD5 295deb1fb1742ab5563de3fbcfbf390a
BLAKE2b-256 1aa05bdc8b5e5b2f79fa28b3301ae38affb498520293493faa35bc25778774c9

See more details on using hashes here.

File details

Details for the file lisk_name_service-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lisk_name_service-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9993c01f0affedb64c8d255fafba7d981367298d1374082142b9979e1bc13987
MD5 718ea6f7d53f61485d38adbb15ab03dd
BLAKE2b-256 3a5b3aa170db5309fcaef1c523dcdb824c2412fb32a0646795ffc87f1b544042

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