This organization was marked as archived by an administrator on Nov 20, 2024. It is no longer maintained.
Replies: 3 comments
-
you would call lookupTxtRecord(domain: string) with a domain in this format: `_did.${username}.fission.name` |
Beta Was this translation helpful? Give feedback.
0 replies
-
example of calling lookupTextRecord
|
Beta Was this translation helpful? Give feedback.
0 replies
-
get your own rootDID:await program.components.reference.didRoot.lookup(session.username) program.session.fs.account.rootDID get the root did of any username:await program.components.reference.dns.lookupTxtRecord('_did.icidasset.fission.name') await program.components.reference.didRoot.lookup('icidasset') await program.accountDID('icidasset') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See the method
accountDID: ((username: string) => Promise<string>)
here — https://webnative.fission.app/types/ShortHands.htmlAlso you can use DNS to lookup DID by username. here's how webnative uses DNS
an example DNS lookup
see discord chat
Beta Was this translation helpful? Give feedback.
All reactions