Wallet Provider
💳 Connecting Wallet Provider
API
For example
Context
Provider
State
Hook & HOC
For example
Wrap the parent by WalletProvider before accessing the context.
Last updated
💳 Connecting Wallet Provider
Wrap the parent by WalletProvider before accessing the context.
Last updated
Property | Type | Description | Default |
---|---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
children
ReactNode
The wrapped children.
undefined
wallet
State
The wallet data.
visible
boolean
Whether the wallet modal is visible.
address
string
The connecting wallet address.
lamports
bigint
The available number of lamports (1 SOL = 1,000,000,000 lamports) in the current wallet.