Types
Glossary of general Types.
isBaseOptions
type isBaseOptions = {
chainId: number;
};
OnchainKitConfig
type OnchainKitConfig = {
address: Address | null; // Address is optional as we may not have an address for new users
apiKey: string | null; // ApiKey for Coinbase Developer Platform APIs
rpcUrl: string | null; // RPC URL for onchain requests. Defaults to using CDP Node if the API Key is set
chain: Chain; // Chain must be provided as we need to know which chain to use
schemaId: EASSchemaUid | null; // SchemaId is optional as not all apps need to use EAS
};
OnchainKitContextType
type OnchainKitContextType = OnchainKitConfig;
OnchainKitProviderReact
type OnchainKitProviderReact = {
address?: Address;
apiKey?: string;
chain: Chain;
children: ReactNode;
rpcUrl?: string;
schemaId?: EASSchemaUid;
};