1

I have cloned Astar and built it, after running the cloned Astar code i tried to deploy evm smart contract on it but it is showing Error error:evm.balanceLow. I have used SubWallet to create an evm and aster address.

5

1 Answer 1

1

To call this create extrinsic from the EVM pallet you need the local currency to pay fees for the extrinsic and the EVM currency to deploy the contract. Make sure both have balance.

You can query the ETH balance with this RPC call:

curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_getBalance", "params": ["YOUR-ADDRESS"]}' http://localhost:9933/

When running the node locally, Astar has set up an account with funds, you can take the private key from here an send funds to your account.

I also recommend to follow this tutorial from the Astar docs, to deploy the Smart Contract using Remix

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.