@thetanuts-finance/thetanuts-client
Table of Contents
Features
Installation
Quick Start
Key Concepts
Chain Configuration
Decimal Handling
Type
Decimals
Example
RFQ: collateralAmount is ALWAYS 0
With Signer (for transactions)
Referrer (Fee Sharing)
Modules
Module
Purpose
Requires Signer
Supported Chains
Chain
Chain ID
Status
Configuration Options
RFQ Key Management
Environment
Default Storage
Persistence
Automatic Key Management
Custom Storage Location (Node.js)
Key Backup Warning
Memory Storage (Testing Only)
Examples
Check Token Balance
Get Protocol Stats
Subscribe to Real-time Updates
Calculate Option Payoff
Common Workflows
Workflow 1: Browse and Fill an Order
Workflow 2: Create a Custom Option via RFQ
Workflow 2b: Create a Butterfly RFQ
Workflow 2c: Early Settlement (Accept MM Offer Before Deadline)
Workflow 2d: Create a Condor RFQ
All Option Structures Summary
Structure
Strikes
Implementation
Strike Order
Workflow 3: Monitor Positions with WebSocket
Understanding Collateral vs Contracts
Collateral Formulas by Option Type
Option Type
# Strikes
Formula
Example
Using previewFillOrder
Why This Matters
Error Handling
Error Codes
Code
Description
Using instanceof for Typed Error Handling
instanceof for Typed Error HandlingRetry Pattern for Transient Errors
Production Checklist
Compatibility
Requirement
Minimum Version
Supported Chains
Chain
Chain ID
Network
Build Formats
Custom Logger
Directory Structure
Development
Documentation
Document
Description
Code Examples
API Reference
License
Links
Last updated

