cardinal_namespaces 0.1.0 copy "cardinal_namespaces: ^0.1.0" to clipboard
cardinal_namespaces: ^0.1.0 copied to clipboard

A dart implementation of Cardinal's decentralized utility layer built on Solana.

Twitter Follow Discord

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 #

  1. 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
    );
    
  2. 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
    );
    

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.

0
likes
90
pub points
0%
popularity

Publisher

unverified uploader

A dart implementation of Cardinal's decentralized utility layer built on Solana.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

borsh, borsh_annotation, build_runner, crypto, flutter, recase, solana

More

Packages that depend on cardinal_namespaces