Skip to main content
This guide demonstrates how to fetch token data, quote, and execute token swaps using the Holdstation ethers-v5 SDK.

Installation


Setup


Contract Address

Include your target contract address in the configuration:

Overall Flow

  1. Fetch token metadata (if you need decimals, symbol, etc.)
  1. Preview routes (optional)
  1. Get a live quote
  1. Execute the swap

Detailed Examples

Token Metadata


Quote

Simple Quote

Smart Quote


SwapParams Interfaces

Quote Input

Swap Input


Full Example & Further Reading

For a complete, end‑to‑end swap example, and to explore all available methods, check out the SDK repo and docs: πŸ”— Documentation & Examples https://www.npmjs.com/package/@holdstation/worldchain-sdk