diff --git a/build-on-abstract/smart-contracts/foundry/compiling-contracts.mdx b/build-on-abstract/smart-contracts/foundry/compiling-contracts.mdx index 63ff098..5d64917 100644 --- a/build-on-abstract/smart-contracts/foundry/compiling-contracts.mdx +++ b/build-on-abstract/smart-contracts/foundry/compiling-contracts.mdx @@ -21,8 +21,8 @@ Smart contracts must be compiled to [Zksync VM](https://docs.zksync.io/zksync-pr mode = "3" [etherscan] - abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"} - abstractMainnet = { chain = "2741", url = "https://api.abscan.org/api", key = ""} + abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"} + abstractMainnet = { chain = "2741", url = "https://api.etherscan.io/v2/api?chainid=2741", key = ""} ``` diff --git a/build-on-abstract/smart-contracts/foundry/deploying-contracts.mdx b/build-on-abstract/smart-contracts/foundry/deploying-contracts.mdx index 289c05c..88d05dc 100644 --- a/build-on-abstract/smart-contracts/foundry/deploying-contracts.mdx +++ b/build-on-abstract/smart-contracts/foundry/deploying-contracts.mdx @@ -42,8 +42,8 @@ forge create src/Counter.sol:Counter \ --zksync \ --verify \ --verifier etherscan \ - --verifier-url https://api-sepolia.abscan.org/api \ - --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD + --verifier-url https://api.etherscan.io/v2/api?chainid=11124 \ + --etherscan-api-key ``` ```bash Mainnet @@ -54,8 +54,8 @@ forge create src/Counter.sol:Counter \ --zksync \ --verify \ --verifier etherscan \ - --verifier-url https://api.abscan.org/api \ - --etherscan-api-key + --verifier-url https://api.etherscan.io/v2/api?chainid=2741 \ + --etherscan-api-key ``` @@ -89,8 +89,8 @@ forge create src/Counter.sol:Counter \ --constructor-args 1000000000000000000 0x9C073184e74Af6D10DF575e724DC4712D98976aC \ --verify \ --verifier etherscan \ - --verifier-url https://api-sepolia.abscan.org/api \ - --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD + --verifier-url https://api.etherscan.io/v2/api?chainid=11124 \ + --etherscan-api-key ``` ```bash Mainnet @@ -102,8 +102,8 @@ forge create src/Counter.sol:Counter \ --constructor-args 1000000000000000000 0x9C073184e74Af6D10DF575e724DC4712D98976aC \ --verify \ --verifier etherscan \ - --verifier-url https://api.abscan.org/api \ - --etherscan-api-key + --verifier-url https://api.etherscan.io/v2/api?chainid=2741 \ + --etherscan-api-key ``` diff --git a/build-on-abstract/smart-contracts/foundry/get-started.mdx b/build-on-abstract/smart-contracts/foundry/get-started.mdx index 9ce06f3..5d172f4 100644 --- a/build-on-abstract/smart-contracts/foundry/get-started.mdx +++ b/build-on-abstract/smart-contracts/foundry/get-started.mdx @@ -99,7 +99,7 @@ fallback_oz = true enable_eravm_extensions = true # Note: System contract calls (NonceHolder and ContractDeployer) can only be called with this set to true [etherscan] -abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"} +abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = ""} abstractMainnet = { chain = "2741", url = "", key = ""} # You can replace these values or leave them blank to override via CLI ``` @@ -187,8 +187,8 @@ forge create src/Counter.sol:Counter \ --zksync \ --verify \ --verifier etherscan \ - --verifier-url https://api-sepolia.abscan.org/api \ - --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD \ + --verifier-url https://api.etherscan.io/v2/api?chainid=11124 \ + --etherscan-api-key \ --broadcast ``` @@ -200,8 +200,8 @@ forge create src/Counter.sol:Counter \ --zksync \ --verify \ --verifier etherscan \ - --verifier-url https://api.abscan.org/api \ - --etherscan-api-key \ + --verifier-url https://api.etherscan.io/v2/api?chainid=2741 \ + --etherscan-api-key \ --broadcast ``` diff --git a/build-on-abstract/smart-contracts/foundry/verifying-contracts.mdx b/build-on-abstract/smart-contracts/foundry/verifying-contracts.mdx index ef89847..0b27d62 100644 --- a/build-on-abstract/smart-contracts/foundry/verifying-contracts.mdx +++ b/build-on-abstract/smart-contracts/foundry/verifying-contracts.mdx @@ -26,8 +26,8 @@ Verify an existing contract by running the following command: forge verify-contract 0x85717893A18F255285AB48d7bE245ddcD047dEAE \ src/Counter.sol:Counter \ --verifier etherscan \ - --verifier-url https://api-sepolia.abscan.org/api \ - --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD \ + --verifier-url https://api.etherscan.io/v2/api?chainid=11124 \ + --etherscan-api-key \ --zksync ``` @@ -35,8 +35,8 @@ forge verify-contract 0x85717893A18F255285AB48d7bE245ddcD047dEAE \ forge verify-contract 0x85717893A18F255285AB48d7bE245ddcD047dEAE \ src/Counter.sol:Counter \ --verifier etherscan \ - --verifier-url https://api.abscan.org/api \ - --etherscan-api-key \ + --verifier-url https://api.etherscan.io/v2/api?chainid=2741 \ + --etherscan-api-key \ --zksync ``` diff --git a/build-on-abstract/smart-contracts/hardhat/get-started.mdx b/build-on-abstract/smart-contracts/hardhat/get-started.mdx index 6effbba..477fd07 100644 --- a/build-on-abstract/smart-contracts/hardhat/get-started.mdx +++ b/build-on-abstract/smart-contracts/hardhat/get-started.mdx @@ -112,7 +112,7 @@ const config: HardhatUserConfig = { network: "abstractTestnet", chainId: 11124, urls: { - apiURL: "https://api-sepolia.abscan.org/api", + apiURL: "https://api.etherscan.io/v2/api?chainid=11124", browserURL: "https://sepolia.abscan.org/", }, }, @@ -120,7 +120,7 @@ const config: HardhatUserConfig = { network: "abstractMainnet", chainId: 2741, urls: { - apiURL: "https://api.abscan.org/api", + apiURL: "https://api.etherscan.io/v2/api?chainid=2741", browserURL: "https://abscan.org/", }, }, diff --git a/build-on-abstract/smart-contracts/hardhat/verifying-contracts.mdx b/build-on-abstract/smart-contracts/hardhat/verifying-contracts.mdx index bd7c28b..8cc6748 100644 --- a/build-on-abstract/smart-contracts/hardhat/verifying-contracts.mdx +++ b/build-on-abstract/smart-contracts/hardhat/verifying-contracts.mdx @@ -35,7 +35,7 @@ const config: HardhatUserConfig = { network: "abstractTestnet", chainId: 11124, urls: { - apiURL: "https://api-sepolia.abscan.org/api", + apiURL: "https://api.etherscan.io/v2/api?chainid=11124", browserURL: "https://sepolia.abscan.org/", }, }, @@ -43,7 +43,7 @@ const config: HardhatUserConfig = { network: "abstractMainnet", chainId: 2741, urls: { - apiURL: "https://api.abscan.org/api", + apiURL: "https://api.etherscan.io/v2/api?chainid=2741", browserURL: "https://abscan.org/", }, }, diff --git a/connect-to-abstract.mdx b/connect-to-abstract.mdx index 8fe791f..97842e1 100644 --- a/connect-to-abstract.mdx +++ b/connect-to-abstract.mdx @@ -13,5 +13,5 @@ Use the information below to connect and submit transactions to Abstract. | RPC URL | `https://api.mainnet.abs.xyz` | `https://api.testnet.abs.xyz` | | RPC URL (Websocket) | `wss://api.mainnet.abs.xyz/ws` | `wss://api.testnet.abs.xyz/ws` | | Explorer | `https://abscan.org/` | `https://sepolia.abscan.org/` | -| Verify URL | `https://api.abscan.org/api` | `https://api-sepolia.abscan.org/api` | +| Verify URL | `https://api.etherscan.io/v2/api?chainid=2741` | `https://api.etherscan.io/v2/api?chainid=11124` | | Currency Symbol | ETH | ETH | \ No newline at end of file diff --git a/cookbook/random-number-generation.mdx b/cookbook/random-number-generation.mdx index 4d566a6..1025f70 100644 --- a/cookbook/random-number-generation.mdx +++ b/cookbook/random-number-generation.mdx @@ -189,8 +189,8 @@ Test your game contract behaviour with Absmate's mock contracts. --broadcast \ --verify \ --verifier etherscan \ - --verifier-url https://api-sepolia.abscan.org/api \ - --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD + --verifier-url https://api.etherscan.io/v2/api?chainid=11124 \ + --etherscan-api-key ``` diff --git a/how-abstract-works/system-contracts/using-system-contracts.mdx b/how-abstract-works/system-contracts/using-system-contracts.mdx index 0c83983..4d8e7aa 100644 --- a/how-abstract-works/system-contracts/using-system-contracts.mdx +++ b/how-abstract-works/system-contracts/using-system-contracts.mdx @@ -159,7 +159,7 @@ fallback_oz = true enable_eravm_extensions = true # Note: System contract calls (NonceHolder and ContractDeployer) can only be called with this set to true [etherscan] -abstractTestnet = { chain = "11124", url = "https://api-sepolia.abscan.org/api", key = "TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD"} +abstractTestnet = { chain = "11124", url = "https://api.etherscan.io/v2/api?chainid=11124", key = ""} abstractMainnet = { chain = "2741", url = "", key = ""} # You can replace these values or leave them blank to override via CLI ```