Add a starknet id hook to starknet js
See original GitHub issueHey 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.
- I can make the PR Myself
- 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:
- Created 10 months ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
🎉 This issue has been resolved in version 4.15.0 🎉
The release is available on:
Your semantic-release bot 📦🚀