Core SDK Reference
SurfClient
import { SurfClient } from '@surf_liquid/core-sdk';
const client = new SurfClient({
provider: window.ethereum, // any EIP-1193 wallet provider
walletAddress: '0xUserAddress',
chainId: 8453, // Base mainnet (1 = Ethereum, 137 = Polygon)
appId: 'YOUR_APP_ID',
autoApprove: true, // automatic ERC-20 approvals
});Wallet Connection
Authentication
Vault Operations
Analytics
Asset and APY Discovery
TypeScript Support
Utility Functions
Output Formats
Format
File
Last updated