Skip to content

Cannot create the Refinable client on mainnet #87

Description

@rg-softwares

Everything is working fine on testnet, but while creating the Refinable client on mainnet I do get access denied.
My wallet address is right as submitted.

    const wallet = initializeWallet(PRIVATE_KEY, chainId);
    const address = await wallet.getAddress();
    console.log(address);

    let environment = [Chain.BscTestnet, Chain.EthereumRinkeby, Chain.PolygonTestnet].includes(chainId)
        ? Environment.Testnet
        : Environment.Mainnet;
    if (chainId === Chain.Local) {
        environment = Environment.Local;
    }

    const client = await Refinable.create(API_KEY, {
        waitConfirmations: 1,
        environment,
    });

    const connection = await client.connect(ClientType.Evm, wallet);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions