DAO Wallets and Assets widget developed by Multifarm for Solana Realms
npm install @multifarm/solana-realmsDAO Wallets and Assets widget developed by Multifarm for Solana Realms
The library has three peer dependencies: react, react-dom and recharts.
Integrate the library into your React/Next project using the following command:
``bash`
yarn add @multifarm/solana-realms recharts
Import the widget and styles from the installed library.
`typescript`
import { SolanaBreakdowns } from '@multifarm/solana-realms';
import '@multifarm/solana-realms/dist/multifarm-solana-realms.css';
Render the widget in the desired place and pass it wallet addresses that it should analyse.
`typescript
/*
export interface Wallet {
address: string;
governanceAddress?: string;
assets: Asset[];
}
export type Asset =
| Mint
| NFTCollection
| Domains
| Programs
| RealmAuthority
| Sol
| Token
| Unknown
| TokenOwnerRecordAsset
*/
``