@multifarm/solana-realms
v1.0.6
Published
DAO Wallets and Assets widget developed by Multifarm for Solana Realms
Downloads
178
Readme
Multifarm - Solana Realms Widget
DAO Wallets and Assets widget developed by Multifarm for Solana Realms
Installation
The library has three peer dependencies: react
, react-dom
and recharts
.
Integrate the library into your React/Next project using the following command:
yarn add @multifarm/solana-realms recharts
Usage
Import the widget and styles from the installed library.
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.
<SolanaBreakdowns wallet={props.wallet} />
/*
export interface Wallet {
address: string;
governanceAddress?: string;
assets: Asset[];
}
export type Asset =
| Mint
| NFTCollection
| Domains
| Programs
| RealmAuthority
| Sol
| Token
| Unknown
| TokenOwnerRecordAsset
*/