Invalid chain ID after passing --chain=D to mxpy

30 Views Asked by At

I try to deploy a contract and it works fine on Testnet, but changing --chain=D gives an invalid chain ID. Why?

The sent command is this:

mxpy --verbose contract deploy \
    --project=${PROJECT} \
    --recall-nonce \
    --pem=${ALICE} \
    --gas-limit=6000000 \
    --arguments 0 \
    --send \
    --outfile="deploy-devnet.interaction.json" \
    --chain=D

Related question:

1

There are 1 best solutions below

0
On

Adding

--proxy=https://devnet-api.multiversx.com

solves the problem.