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);
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.