Overview
GoldRush offers the most comprehensive Optimism Data API suite for developers, analysts, and enterprises. Whether you’re building a DeFi dashboard, a wallet, a trading bot, an AI agent or a compliance platform, our Optimism Data APIs provide fast, accurate, and developer-friendly access to the essential onchain data you need.Supported APIs
Foundational API
Access structured historical blockchain data across 100+ chains using REST APIs.
Get token balances, transaction histories, decoded event logs, NFT assets, token holders and more.
Use cases: Wallets, portfolio trackers, crypto accounting & tax tools, and DeFi dashboards.
Use cases: Wallets, portfolio trackers, crypto accounting & tax tools, and DeFi dashboards.
Mainnet
API Usage
To use this blockchain network in GoldRush API calls, use:Chain Name
optimism-mainnet(mainnet)
Example API Calls
SDK Usage
Foundational API Support
This chain supports 28 GoldRush Foundational APIs:Wallet API
- Historical Token Balance API on Optimism
- Token Holders API on Optimism
dateblock-height - ERC-20 Token Balance API on Optimism
- Native Token Balance API on Optimism
- ERC-20 Token Transfers API on Optimism
- Historical Portfolio Value API on Optimism
NFT API
Pricing API
Security API
Transactions API
- Transaction API on Optimism
with-input-datawith-internalwith-classification - Wallet Transaction Summary API on Optimism
- Earliest Wallet Transactions API on Optimism
with-input-datawith-internalwith-classification - Wallet Transaction History API on Optimism
with-input-datawith-internalwith-classification - Paginated Wallet Transactions API on Optimism
with-input-datawith-internalwith-classification - Time Bucket Transactions API on Optimism
- Block Transactions API by Page on Optimism
- Block Transactions API on Optimism
Block Explorer API
- Block API on Optimism
- Block Heights API on Optimism
- Chain Status API on Optimism
- Contract Event Logs API on Optimism
- Event Logs API on Optimism
- Event Logs by Topic Hash API on Optimism
- Gas Price API on Optimism
- Supported Chains API on Optimism
Internal Transactions (with-internal)
Optimism supports internal transactions (traces). The Transactions API endpoints marked with-input-data with-internal above accept the with-internal=true query parameter, which includes internal transactions (the value transfers triggered by contract execution that are not recorded as standalone onchain transactions) in the response.
Internal transactions are included in the response by passing
with-internal and cost 0.05 credits/item.Example API Call
Recent transactions with internal transactions
Transaction Classification (with-classification)
Optimism supports transaction classification. Pass with-classification=true to the Transactions API to get a type (such as swap or send_token), a category, a plain-English description, and the assets sent and received for each transaction.
Transaction classification costs
0.05 credits/item.Example API Call
Recent transactions with classification
Optimism FAQ
What is the Optimism chain ID?
The Optimism mainnet chain ID is 10 (hex0xa). In GoldRush API calls, use the chain name optimism-mainnet.
What is the native gas token on Optimism?
Optimism uses ETH as its native gas token.What is the Optimism block explorer?
You can look up Optimism blocks, transactions and addresses on Optimistic Etherscan. To read the same data from code, use the GoldRush API.Which GoldRush APIs support Optimism?
Optimism is supported by the Foundational API (28 endpoints).Does GoldRush return internal transactions (traces) on Optimism?
Yes. Passwith-internal=true to the Transactions API to include internal transactions, at 0.05 credits per item.