Add script to query karura gas prices
This commit is contained in:
parent
cb73b7b718
commit
42d054282a
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
curl --location --request GET 'https://eth-rpc-karura.aca-api.network/' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"jsonrpc": "2.0",
|
||||
"method": "eth_getEthGas",
|
||||
"params": [
|
||||
{
|
||||
"gasLimit": 21000000,
|
||||
"storageLimit": 64100
|
||||
}
|
||||
],
|
||||
"id": 1
|
||||
}'
|
||||
printf "\n"
|
|
@ -174,13 +174,14 @@ module.exports = {
|
|||
provider: () => {
|
||||
return new HDWalletProvider(
|
||||
process.env.MNEMONIC,
|
||||
// To use this local host, needed to run this: ENDPOINT_URL=wss://karura-rpc-1.aca-api.network npx @acala-network/eth-rpc-adapter@latest
|
||||
// NOTE: To use this local host, needed to run this: ENDPOINT_URL=wss://karura-rpc-1.aca-api.network npx @acala-network/eth-rpc-adapter@latest
|
||||
"http://localhost:8545"
|
||||
//"https://eth-rpc-karura.aca-api.network/"
|
||||
);
|
||||
},
|
||||
network_id: 686,
|
||||
gasPrice: "0x2f7e8803ea",
|
||||
// NOTE: run ./karura-gas-prices and update the following two values, otherwise the transactions will likely fail
|
||||
gasPrice: "0x2f8b8903ea",
|
||||
gasLimit: "0x329b140",
|
||||
gas: "0x329b140",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue