Account Provider
🏦 SPL Accounts Provider
API
<AccountProvider> ... </AccountProvider>Property
Type
Description
Default
For example
import { AccountProvider } from '@sentre/senhub'
// Wrap a paragraph as a child.
<AccountProvider>
<p>Hello world</p>
</AccountProvider>Context
type Provider = {
accounts: State
}
type State = Record<string, AccountData>
type AccountData = {
mint: string;
owner: string;
amount: bigint;
delegate_option: number;
delegate: string;
state: number;
is_native_option: number;
is_native: bigint;
delegated_amount: bigint;
close_authority_option: number;
close_authority: string;
}Provider
Property
Type
Description
AccountData
Property
Type
Description
Hook & HOC
For example
Last updated