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 lisk_name_service import LNSClient

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

try:
    address = client.resolve("vitalik.lisk")
    print("Resolved address:", address)
except Exception as e:
    print("Failed:", str(e))

API

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

Create a new client instance.

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

resolve(name: string): 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.

You must pass a valid API key. To generate one:

Connect your wallet on the LNS Dev Portal

Sign a message

Copy your API key

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-1.0.0.tar.gz (2.7 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-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lisk_name_service-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf6fee68ca07fb6d0a5a9a15bd0c99dd02cc2ba5820be33da45c6b2b191bd5af
MD5 6d08736997a410c940011f8667d19b0d
BLAKE2b-256 b705206745240ba7699bba3ceae684f957ff8e1a731b693bf684e1c293119ffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lisk_name_service-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60ca1c647744df487fd59ce405731fe10ce3371ec793458d5aab8d51e11c8cba
MD5 e3adcd16c519c11b807d2bff2280a06b
BLAKE2b-256 1d6f1d72d80e8f57f11c8bab14f8ee60e75b4910a20a87a723b2b71e008e3f76

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