Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing provider on ethermint #8

Open
ryssroad opened this issue Aug 13, 2023 · 3 comments
Open

missing provider on ethermint #8

ryssroad opened this issue Aug 13, 2023 · 3 comments

Comments

@ryssroad
Copy link

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
Copy link
Author

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 
            }
        }

@liangping
Copy link
Member

it means that your evm_rpc endpoint does not works

@ryssroad
Copy link
Author

ryssroad commented Aug 14, 2023

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"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants