컨트랙트를 truffle migrate --network mainnet 할 때, PollingBlockTracker와 Too Many Requests문제

안녕하세요 담당자님!

컨트랙트를 baobab에 배포하면 에러가 안나고 잘 배포되는데, mainnet에서 하면 에러가 나서 문의드립니다.

const HDWalletProvider = require("truffle-hdwallet-provider-klaytn");

const BAOBAB_NETWORK_ID = "1001";
const BAOBAB_URL = "https://api.baobab.klaytn.net:8651";

const MAINNET_NETWORK_ID = "8217";
const MAINNET_URL = "https://public-node-api.klaytnapi.com/v1/cypress"; 

const GASLIMIT = "8500000";
    baobab: {
      provider: () => new HDWalletProvider(BAOBAB_PRIVATE_KEY, BAOBAB_URL),
      network_id: BAOBAB_NETWORK_ID,
      gas: GASLIMIT,
      gasPrice: null,
    },
    mainnet: {
      provider: () => new HDWalletProvider(MAINNET_PRIVATE_KEY, MAINNET_URL), //https://public-node-api.klaytnapi.com/v1/cypress
      network_id: MAINNET_NETWORK_ID,
      gas: GASLIMIT, //8500000
      gasPrice: null,
      networkCheckTimeout: 10000,
    },

mainnet으로 truffle migrate하면 다음과 같은 에러가 발생합니다…
혹시 truffle-config-js를 잘못설정한것일까요??

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: Too Many Requests

노드주소를 바꿔서 배포 해결했습니다!! : >

2 Likes

https://public-node-api.klaytnapi.com/v1/cypress 잘 안되거 같네요. I_Do_Love님 어느 node 주소 사용하셨어요?

안녕하세요! renhaosanji님
저는 https://klaytn03.fandom.finance/ 이주소 사용했습니다 : >