xJonathanLEI / starkli

Starkli (/ˈstɑːrklaɪ/), a ⚡ blazing ⚡ fast ⚡ CLI tool for Starknet powered by 🦀 starknet-rs 🦀
https://book.starkli.rs
Apache License 2.0
164 stars 47 forks source link

Error deploying contract using infura #35

Closed maxgiraldo closed 1 year ago

maxgiraldo commented 1 year ago

Command ran:

starkli deploy {class_hash} {wallet_hash} --network=goerli-1 --rpc=https://goerli.infura.io/v3/{api_key}

Error: code=-32601, message="The method starknet_chainId does not exist/is not available"
xJonathanLEI commented 1 year ago

https://goerli.infura.io/v3 is an Ethereum endpoint. Find the correct Starknet endpoints and try again.