1

对于 ETH,我得到这样的交易:

const trx = await this.web3.eth.getTransaction(transactionHash);

一切正常。但是现在我想通过哈希获取ETC的交易,它不起作用。它抛出错误:

Returned error: {"jsonrpc":"2.0","error":"Action not found.","id":4}

我怎样才能获得 ETC 的交易,请帮助 .. 我的配置:

    mainnet: {
        provider: "https://blockscout.com/etc/mainnet/api/eth-rpc",
        options: {
            chainId: 1,
            gasPrice: 20 * 1000000000,
            gasAmountToSend: 50 * 1000,
        },
    },
    testnet: {
        provider: "https://blockscout.com/etc/kotti/api/eth-rpc",
        options: {
            chainId: 1,
            gasAmountToSend: 50 * 1000,
        },
    },
    derivationPath: "m/44'/61'/0'/0",
    },
4

0 回答 0