Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export {

export type { RpcProviderConfig } from './types/config.js'

export { Contract, type ContractClient } from './core/Contract.js'
export { HDWallet, createHDWallet, type HDWalletOptions } from './wallet/HDWallet.js'
export {
Contract,
type ContractClient,
Expand Down
9 changes: 9 additions & 0 deletions src/network/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ export interface ProviderOptions {
fetchFn?: typeof fetch
}

export interface ProviderOptions {
/** Maximum number of retry attempts on HTTP 429 rate limit responses (default: 3). */
maxRetries?: number
/** Base delay in milliseconds for exponential backoff calculations (default: 100). */
baseDelayMs?: number
/** Custom fetch implementation for network requests or testing. */
fetchFn?: typeof fetch
}

export class Provider {
public readonly network: NetworkProfile
public readonly chainId: number
Expand Down