cardinal-twitter
v1.0.2
Published
``` yarn add cardinal-twitter-identity ```
Downloads
4
Readme
Simplified Twitter Cardinal Identity Package
Installation
yarn add cardinal-twitter-identity
Usage
import { getIdentity } from 'cardinal-twitter-identity';
import { PublicKey } from '@solana/web3.js';
async function main() {
const publicKey = new PublicKey('...');
const identity = await getIdentity(publicKey);
console.log(identity);
// Output: {
// username: 'elonmusk',
// displayImage: '<image_url>',
// }
}