Skip to main content
Defined in the Base Account SDK
Creates a Base Account SDK instance that provides an EIP-1193 compliant Ethereum provider and additional account management functionality. This is the primary entry point for integrating Base Account into your application.

Parameters

CreateProviderOptions
required
Configuration options for creating the SDK instance.

Returns

BaseAccountSDK
SDK instance with provider and sub-account management capabilities.

Integration Examples

With Viem

With Wagmi

Configuration Options

Sub-Account Configuration

Configure sub-account behavior with three independent options:
Common Configurations:

Attribution

Configure transaction attribution for analytics and tracking:

Paymaster Integration

Enable gasless transactions with paymaster URLs:

Error Handling

The SDK initialization is synchronous and will validate preferences during creation:

TypeScript Support

The SDK is fully typed for TypeScript development:
The SDK automatically manages Cross-Origin-Opener-Policy validation and telemetry initialization. Make sure your application’s headers allow popup windows if using the default wallet interface.
The createBaseAccountSDK function is the primary entry point for Base Account integration. It provides both a standard EIP-1193 provider and advanced features like sub-account management and gasless transactions.