Public Provider Adapters
Public providers enable the SDK to perform read-only blockchain operations such as fetching balances, estimating gas, and reading smart contract data. They are required when initializing the Manifold Client.
Available Adapters
Multi-Network Support
The SDK supports multiple networks simultaneously. Provide a public client/provider for each network you want to support:
const publicProvider = createPublicProviderViem({
1: mainnetClient, // Ethereum Mainnet
8453: baseClient, // Base
10: optimismClient, // Optimism
360: shapeClient, // Shape
11155111: sepoliaClient // Sepolia Testnet
});Network Requirements
The public provider must include a client/provider for the network where the NFT product is deployed. The SDK will automatically use the appropriate provider based on the product's network.
Code
Message
INVALID_INPUT
Public provider is required
NETWORK_NOT_SUPPORTED
No provider available for network
WRONG_NETWORK
Provider is connected to wrong network
Last updated