question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a starknet id hook to starknet js

See original GitHub issue

Issue Description

Hey I’m ben from starknet id. . We’re building the identity service and naming service of starknet.

Some of our partners (realms and cartridge in particular) asked us to make some hooks directly in starknet js to access domain names from a particular address and vice-versa.

Here is an example of the hook we want to make :

const addressToCheck = '0x2fd23d9182193775423497fc0c472e156c57c69e4089a1967fb288a2d84e914';

const domain = address.getDomainFromAddress(addressToCheck, "goerli");

console.log(domain); // Fricoben.stark

In the other sense, we have :

const domainToCheck = 'Fricoben.stark';

const address = address.getDomainFromAddress(domainToCheck, "goerli");

console.log(address); // 0x2fd23d9182193775423497fc0c472e156c57c69e4089a1967fb288a2d84e914

Here is the documentation about dev integration of starknet id.

I discussed this with one of you in starknet.cc and Starknet Building (hello Toni) and we can use a few solutions to make it happen.

  1. I can make the PR Myself
  2. I can use Starknet Id onlydust credit (if you have someone to propose don’t hesitate)

Tell me if it’s ok for you !

Thank you for your help, Don’t hesitate to ask questions here or on telegram (@fricoben).

Issue Analytics

  • State:closed
  • Created 2 months ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fracekcommented, Nov 8, 2022

This would be good to have in starknet.js! Then it’s super easy to add it to starknet-react too to have react hooks.

0reactions
github-actions[bot]commented, Dec 5, 2022

🎉 This issue has been resolved in version 4.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: add starknet.id getters #400 - GitHub
I needed to use some of our code as utils (because of our encoding algorithm), so I created my own utils file (these...
Read more >
Setting up a StarkNet account
Setting up the network¶. In this tutorial we will use the StarkNet CLI (command line interface) to interact with StarkNet. In order to...
Read more >
How to get starknet chainId using javascript - Stack Overflow
You can grab all chain IDs from Starknet.js import { StarknetChainId } from "starknet/constants"; const alphaGoerliChainId = StarknetChainId ...
Read more >
get-starknet - npm
Allow dApps to seamlessly connect to any wallet on StarkNet ... APIs (based on the starknet.js APIs + 3 new fields: name ,...
Read more >
StarkNet Wallets & Accounts + Syntax - YouTube
On Tuesday, 1st March we were delighted to host the StarkNet Wallets & Accounts + Syntax—the second event in our StarkNet Hackathon!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found