SDK Reference
SDK Usage Guide
Installation
npm install spree-evm-sdkAvailable Contract Wrappers
Wrapper
Description
Initialization
import { Factory, Points } from 'spree-evm-sdk';
const factory = new Factory({
rpcUrl: process.env.RPC_URL, // Your chain's RPC endpoint
chainId: BigInt(process.env.CHAIN_ID), // Your deployment chain ID
contractAddress: process.env.FACTORY_ADDRESS as `0x${string}`,
from: '0x...', // Your wallet address
defaultGasPriceWei: 1_000_000_000n, // 1 gwei
defaultGasLimit: 500_000n
});Common Operations
Gas Overrides
Nonce Management
Error Handling
Last updated