WalletProvider manages wallet connections for the CoinVoyage PayKit SDK. It wraps PayKitProvider in your provider tree and is required to use PayButton and usePayStatus. Without it, the payment modal cannot connect to a user’s wallet. You configure it through a config prop that accepts per-chain settings — you only need to supply configuration for the chains your application uses.
Setup
ImportWalletProvider from @coin-voyage/paykit and wrap it around PayKitProvider:
All
config fields are optional. You can pass <WalletProvider> with no props and the SDK will use its default connector configuration.Configuration options
Object containing chain-type-specific wallet configuration. Every sub-key is optional — include only the chains you need to customize.
config.evm
Configuration for EVM-compatible chains (Ethereum, Polygon, Arbitrum, Base, etc.). Lets you configure the bundled wallet connectors and add custom ones.
config.solana
Configuration for the Solana chain. Provide a custom RPC endpoint or extend the list of supported wallet adapters.
config.sui
Configuration for the Sui chain.
config.utxo
Configuration for UTXO-based chains such as Bitcoin.
Examples
- Minimal setup
- EVM with WalletConnect
- Custom Solana RPC
Use
WalletProvider with no configuration when the SDK defaults are sufficient: