2025-01-24 16:13:46 +00:00
2025-01-13 18:50:04 +00:00
2025-01-13 18:50:04 +00:00
2025-01-13 18:50:04 +00:00
2025-01-13 18:50:04 +00:00
2025-01-13 18:50:04 +00:00
2024-09-10 20:01:18 +00:00
2024-09-10 20:01:18 +00:00
2024-11-18 01:58:25 +00:00
2025-01-13 18:50:04 +00:00
2024-09-05 04:21:04 +00:00
2024-09-10 20:01:18 +00:00
2024-11-18 01:58:25 +00:00

See the protocol specification, docs or web wallet / demo

Installing

NPM

npm i banani-bns

Web

Add thebns-browser.js file in this browser to your site. Then, in your <head>, add:

<script src="/path/to/bns-browser.js"></script>

You can now access the library through window.bns in your scripts.

Example

Resolving

import { banani, Resolver } from "banani-bns";

const rpc = new banani.RPC("https://kaliumapi.appditto.com/api");
const tld_mapping = {
  "mictest": "ban_1dzpfrgi8t4byzmdeidh57p14h5jwbursf1t3ztbmeqnqqdcbpgp9x8j3cw6",
  "jtv": "ban_3gipeswotbnyemcc1dejyhy5a1zfgj35kw356dommbx4rdochiteajcsay56",
  "ban": "ban_1fdo6b4bqm6pp1w55duuqw5ebz455975o4qcp8of85fjcdw9qhuzxsd3tjb9",
};

const resolver = new Resolver(rpc, tld_mapping);

console.log(await resolver.resolve("nishina247", "mictest"));
Description
The official Banano Name System (pronounced 'benis')
Readme MIT 356 KiB
Languages
TypeScript 46.1%
HTML 44.8%
JavaScript 9.1%