0 purchases
cardinal namespaces
Dart library for Cardinal namespaces #
This library is a partial dart implementation of Cardinal's namespace protocol, specifically enabling the use of Twitter handles as wallet identification in Flutter applications.
Implementation #
Return a given wallet's registered Twitter handle
final String twitterHandle = await tryGetName(
environment: SolanaEnvironment, // mainnet | devnet | localnet
namespacePublicKey: PublicKey, // Cardinal namespaces program's public key, value provided in this package as 'NAMESPACES_PROGRAM_ID'
publicKey: PublicKey // wallet's public key to query as a string
);
copied to clipboard
copied to clipboard
Return a given Twitter handle's registered wallet public key
final PublicKey publicKey = await getNameEntry(
environment: SolanaEnvironment, // mainnet | devnet | localnet
namespace: String, // Twitter namespaces id, value provided in this package as 'twitterNamespace'
twitterHandle: String // Twitter handle to query as a string
);
copied to clipboard
Further Help & Documentation #
We will continue to update documentation as often as possible. But if you need help, feel free to reach out in our Dialect Discord server.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.