Skip to content

Commit f030762

Browse files
authored
docs(skill): fix deploy/verify commands and stale explorer URLs (#8)
See PR description. Fixes forge create missing --broadcast, V1 Taikoscan API deprecation, and stale preview URL in SKILL.md footer.
1 parent abb1eb7 commit f030762

3 files changed

Lines changed: 25 additions & 18 deletions

File tree

docs/pages/quickstart/connect.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| Chain ID (Hex) | `0x28C58` |
1212
| RPC URL | `https://rpc.mainnet.taiko.xyz` |
1313
| Explorer | `https://taikoscan.io` |
14-
| Explorer API | `https://api.taikoscan.io/api` |
14+
| Explorer API | `https://api.etherscan.io/v2/api?chainid=167000` |
1515
| Bridge | `https://bridge.taiko.xyz` |
1616
| Native Currency | ETH |
1717

@@ -24,7 +24,7 @@
2424
| Chain ID (Hex) | `0x28C65` |
2525
| RPC URL | `https://rpc.hoodi.taiko.xyz` |
2626
| Explorer | `https://hoodi.taikoscan.io` |
27-
| Explorer API | `https://api-hoodi.taikoscan.io/api` |
27+
| Explorer API | `https://api.etherscan.io/v2/api?chainid=167013` |
2828
| Bridge | `https://bridge.hoodi.taiko.xyz` |
2929
| Native Currency | ETH |
3030

docs/pages/resources/developer-tools.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Tool | URL | Notes |
66
| --- | --- | --- |
7-
| **Taikoscan** | [taikoscan.io](https://taikoscan.io) | Primary explorer. Etherscan-compatible API at `api.taikoscan.io/api`. |
8-
| **Taikoscan (Hoodi)** | [hoodi.taikoscan.io](https://hoodi.taikoscan.io) | Testnet explorer. API at `api-hoodi.taikoscan.io/api`. |
7+
| **Taikoscan** | [taikoscan.io](https://taikoscan.io) | Primary explorer. Verification API via Etherscan V2: `https://api.etherscan.io/v2/api?chainid=167000`. |
8+
| **Taikoscan (Hoodi)** | [hoodi.taikoscan.io](https://hoodi.taikoscan.io) | Testnet explorer. Verification API: `https://api.etherscan.io/v2/api?chainid=167013`. |
99
| **Blockscout** | [blockscout.mainnet.taiko.xyz](https://blockscout.mainnet.taiko.xyz) | Alternative explorer with open-source API. |
1010

1111
## Bridge

docs/public/SKILL.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Taiko is a based rollup on Ethereum. "Based" means Ethereum L1 validators sequen
2323
| Explorer | `https://taikoscan.io` | `https://hoodi.taikoscan.io` |
2424
| L1 | Ethereum (1) | Ethereum Hoodi (560048) |
2525
| Currency | ETH | ETH |
26-
| Bridge UI | `https://bridge.taiko.xyz` | `https://bridge.hoodi.taiko.xyz |
26+
| Bridge UI | `https://bridge.taiko.xyz` | `https://bridge.hoodi.taiko.xyz` |
2727

2828
## How Taiko Differs from Ethereum
2929

@@ -81,10 +81,12 @@ Use standard EVM tools. No Taiko-specific SDK or CLI is required.
8181
- **ethers.js**: `new JsonRpcProvider("https://rpc.mainnet.taiko.xyz")`
8282
- **cast**: `cast call --rpc-url https://rpc.mainnet.taiko.xyz ...`
8383

84-
For contract verification, use the explorer APIs:
84+
For contract verification, Taikoscan is served through the Etherscan V2 unified API. The same Etherscan API key works for every chain; the `chainid` query param routes the request.
8585

86-
- Mainnet: `https://api.taikoscan.io/api` (Etherscan-compatible)
87-
- Testnet: `https://api-hoodi.taikoscan.io/api`
86+
- Mainnet: `https://api.etherscan.io/v2/api?chainid=167000`
87+
- Testnet: `https://api.etherscan.io/v2/api?chainid=167013`
88+
89+
The old `api.taikoscan.io/api` / `api-hoodi.taikoscan.io/api` V1 endpoints are deprecated and will return an error.
8890

8991
## Contract Addresses — Mainnet L1 (Ethereum)
9092

@@ -136,26 +138,31 @@ L2 contracts are predeployed at deterministic `0x167013...` addresses:
136138
### Deploy a contract
137139

138140
```bash
139-
# Using Foundry (recommended) — use the taiko profile to target Shanghai EVM
141+
# Using Foundry (recommended) — use the taiko profile to target Shanghai EVM.
142+
# --broadcast is REQUIRED: without it forge create only simulates and nothing deploys.
140143
FOUNDRY_PROFILE=taiko forge create src/MyContract.sol:MyContract \
141144
--rpc-url https://rpc.mainnet.taiko.xyz \
142145
--private-key $PRIVATE_KEY \
146+
--broadcast \
143147
--verify \
144148
--verifier etherscan \
145-
--verifier-url https://api.taikoscan.io/api \
146-
--etherscan-api-key $TAIKOSCAN_API_KEY
149+
--verifier-url 'https://api.etherscan.io/v2/api?chainid=167000' \
150+
--etherscan-api-key $ETHERSCAN_API_KEY
147151
```
148152

149153
### Verify a contract
150154

151155
```bash
152-
forge verify-contract $CONTRACT_ADDRESS src/MyContract.sol:MyContract \
153-
--chain-id 167000 \
156+
FOUNDRY_PROFILE=taiko forge verify-contract $CONTRACT_ADDRESS \
157+
src/MyContract.sol:MyContract \
154158
--verifier etherscan \
155-
--verifier-url https://api.taikoscan.io/api \
156-
--etherscan-api-key $TAIKOSCAN_API_KEY
159+
--verifier-url 'https://api.etherscan.io/v2/api?chainid=167000' \
160+
--etherscan-api-key $ETHERSCAN_API_KEY \
161+
--watch
157162
```
158163

164+
Swap `chainid=167000``chainid=167013` for Hoodi testnet.
165+
159166
### Read on-chain state
160167

161168
```bash
@@ -217,6 +224,6 @@ For the bridge UI: `https://bridge.taiko.xyz` or `https://bridge.hoodi.taiko.xyz
217224

218225
For detailed guides, protocol design, node operation, and more:
219226

220-
- All docs: `https://taiko-agent-docs.vercel.app/llms-full.txt`
221-
- Docs index: `https://taiko-agent-docs.vercel.app/llms.txt`
222-
- Web docs: `https://taiko-agent-docs.vercel.app`
227+
- All docs: `__SITE_URL__/llms-full.txt`
228+
- Docs index: `__SITE_URL__/llms.txt`
229+
- Web docs: `__SITE_URL__`

0 commit comments

Comments
 (0)