faucet icon indicating copy to clipboard operation
faucet copied to clipboard

missing provider on ethermint

Open ryssroad opened this issue 2 years ago • 3 comments

Trying to setup faucet for EVM based chain. All started, faucet balance checked correctly, but at token request I've get following error

request tokens to  cascadia1eccss2kg6v0km8a3ld04s5lsjtv85fshpyh092 ::ffff:188.246.249.30
xxl e  Error: missing provider (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=abstract-signer/5.7.0)
    at Logger.makeError (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/logger/lib/index.js:238:21)
    at Logger.throwError (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/logger/lib/index.js:247:20)
    at Signer._checkProvider (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:395:20)
    at Wallet.<anonymous> (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:144:30)
    at step (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:48:23)
    at Object.next (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:29:53)
    at /home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:23:71
    at new Promise (<anonymous>)
    at __awaiter (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:19:12)
    at Signer.sendTransaction (/home/ubuntu/ppub-faucet-multi/node_modules/@ethersproject/abstract-signer/lib/index.js:139:16) {
  reason: 'missing provider',
  code: 'UNSUPPORTED_OPERATION',
  operation: 'sendTransaction'
}

What does it mean?

ryssroad avatar Aug 13 '23 11:08 ryssroad

my chain config

{
            type: 'Ethermint',
            ids: {
                chainId: 6102,
                cosmosChainId: 'cascadia_6102-1',
            },
            name: "cascadia_6102-1",
            endpoint: {
                // make sure that CORS is enabled in rpc section in config.toml
                // cors_allowed_origins = ["*"]
                rpc_endpoint: "https://cscd-rpc.systemd.run:443/",
                evm_endpoint: "https://testnet.cascadia.foundation:443/",
            },
            sender: {
                mnemonic: "...",
                option: {
                    hdPaths: [stringToPath("m/44'/60'/0'/0/0")],
                    prefix: "cascadia"
                }
            },
            tx: {
                amount: {
                    denom: "aCC",
                    amount: "5000000000000000000"
                },
                fee: {
                    amount: [
                        {
                            amount: "7",
                            denom: "aCC"
                        }
                    ],
                    gas: "250000"
                },
            },
            limit: {
                // how many times each wallet address is allowed in a window(24h)
                address: 100, 
                // how many times each ip is allowed in a window(24h),
                // if you use proxy, double check if the req.ip is return client's ip.
                ip: 1000 
            }
        }

ryssroad avatar Aug 13 '23 14:08 ryssroad

it means that your evm_rpc endpoint does not works

liangping avatar Aug 14 '23 01:08 liangping

But it works

~ » curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getBalance", \
"params":["0xB245E9659450cd5258857e3D01e6d26B8F4E7eA6", "latest"],"id":1}' https://testnet.cascadia.foundation
{"jsonrpc":"2.0","id":1,"result":"0x3635c9adc5dea05208"}

--------------------------------------------------------------------------------------------------------------

~ » curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt",\
"params":["0xdc2fe5cd7312206fbfe740075118a94c0931666ecedd05b4064a5d23ef678585"],"id":1}' https://testnet.cascadia.foundation

{"jsonrpc":"2.0","id":1,"result":{"blockHash":"0xcdbabb138c24de440c52e7335884d3b3eaea7cb5d49520c120b11e10e9e5d67c","blockNumber":"0x1c8d7e", \
"contractAddress":null,"cumulativeGasUsed":"0x5208","effectiveGasPrice":"0x59682f07","from":"0x19a693f94a9b2dc9dbe1371b3 \
6eef063ed43be5b","gasUsed":"0x5208","logs": \
[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 \
0000000","status":"0x1","to":"0x36ad382672ed40eded2e622d1518e88bf7007780","transactionHash":"0xdc2fe5cd7312206fbfe74 \
0075118a94c0931666ecedd05b4064a5d23ef678585","transactionIndex":"0x0","type":"0x2"}}

ryssroad avatar Aug 14 '23 07:08 ryssroad