Skip to main content

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

Project description

Lisk Name Service SDK (JS/TS)

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.0.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.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lisk_name_service-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9ca910179d38b9b67c1c4c4291a3f15f3e64dca165c914b49c5dfd351f130278
MD5 f0fe1ac011bc70e203e414b14a58a5a2
BLAKE2b-256 b85c36cc601c7507019c79df3a69360a22d811ac73b03778e80b12cb167f1c49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lisk_name_service-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765d3c5a3fea873a60e4e587a6ae4cc72d0a5151f1f04df685c8faf483c3986c
MD5 8a0696200a042e763809d8062eaec815
BLAKE2b-256 03cb5d3ae7debc51861f2edf9344586eede65015e21072e7a8440175a0d0aa4d

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