Avalanche Speedy node (FUJI) Error

What is the equivalent infura RPC node in moralis and how do you get the node link.

Example for infura for personal node would be : https://kovan.infura.io/v3/89e2348881d44f60b2e41ee6e72a2c35

Iā€™m trying to use it for Avalanche hackathon and want to implement into my truffle-config.js, instead of using infura Kovan testnet to deploy contracts and scripts

When using the speedy node Avalanche node endpoint and truffle migrating my contracts I get the error : I keep getting the error:
ā€œMigrationsā€ ā€“ only replay-protected (EIP-155) transactions allowed over RPC.

module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 7545,
      network_id: "*" // Match any network id
    },
    live: {
      provider: () => {
        return new HDWalletProvider(
          privateKeys,
           'https://speedy-nodes-nyc.moralis.io/aa7c2acc609ad50757ee9554/avalanche/testnet')
      },
      network_id: '43113',
      // ~~Necessary due to https://github.com/trufflesuite/truffle/issues/1971~~
      // Necessary due to https://github.com/trufflesuite/truffle/issues/3008
      skipDryRun: true,
    },
  },
  contracts_directory: './src/contracts/',
  contracts_build_directory: './src/abis/',
  compilers: {
    solc: {
      optimizer: {
        enabled: true,
        runs: 200
      },
      evmVersion: "petersburg",
      version: "0.6.6"
    }
  }
}```

https://admin.moralis.io/speedyNodes

that error seems like an error where it doesnā€™t accept an older type of transactions

I build my dapp using Truffle and I am using pragma solidity ^0.6.0;. What can I do to allow for Avalnche (fuji) Moralis Speedy nodes to be compatible with my dapp and be able to deploy my contracts

I donā€™t know, you can try to search on google that specific error. maybe it requires some config changes in truffle, or a new version of truffle

you can also try to deploy the contract with remix

@cryptokid
All of the Speedy nodes seem to be working fine with my app (bsc, mainet, mumbai) but I am only expericencing this issue with Avalanche speedy nodes (both avalanche mainet and fuji too). Hence, I am not all too sure if it is to do with my code or package installs.

I am getting the following error:

Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
    at PollingBlockTracker._performSync (C:\Users\DELL\Documents\MDAO-Agt\chainlink_defi\node_modules\eth-block-tracker\src\polling.js:51:24)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
UnhandledRejections detected
Promise {
  <rejected> {
    code: -32603,
    message: 'read ECONNRESET',
    data: { originalError: [Object] },
    stack: 'Error: read ECONNRESET\n' +
      '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
  }
} {
  code: -32603,
  message: 'read ECONNRESET',
  data: {
    originalError: { errno: -4077, code: 'ECONNRESET', syscall: 'read' }
  },
  stack: 'Error: read ECONNRESET\n' +
    '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
}
Promise {
  <rejected> {
    code: -32603,
    message: 'read ECONNRESET',
    data: { originalError: [Object] },
    stack: 'Error: read ECONNRESET\n' +
      '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
  }
} {
  code: -32603,
  message: 'read ECONNRESET',
  data: {
    originalError: { errno: -4077, code: 'ECONNRESET', syscall: 'read' }
  },
  stack: 'Error: read ECONNRESET\n' +
    '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
}
Promise {
  <rejected> {
    code: -32603,
    message: 'read ECONNRESET',
    data: { originalError: [Object] },
    stack: 'Error: read ECONNRESET\n' +
      '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
  }
} {
  code: -32603,
  message: 'read ECONNRESET',
  data: {
    originalError: { errno: -4077, code: 'ECONNRESET', syscall: 'read' }
  },
  stack: 'Error: read ECONNRESET\n' +
    '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
}
Promise {
  <rejected> {
    code: -32603,
    message: 'read ECONNRESET',
    data: { originalError: [Object] },
    stack: 'Error: read ECONNRESET\n' +
      '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
  }
} {
  code: -32603,
  message: 'read ECONNRESET',
  data: {
    originalError: { errno: -4077, code: 'ECONNRESET', syscall: 'read' }
  },
  stack: 'Error: read ECONNRESET\n' +
    '    at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)'
}
Promise {
  <rejected> {
    code: -32603,
    message: 'socket hang up',
    data: { originalError: [Object] },
    stack: 'Error: socket hang up\n' +
      '    at connResetException (internal/errors.js:628:14)\n' +
      '    at TLSSocket.socketOnEnd (_http_client.js:499:23)\n' +
      '    at TLSSocket.emit (events.js:412:35)\n' +
      '    at endReadableNT (internal/streams/readable.js:1317:12)\n' +
      '    at processTicksAndRejections (internal/process/task_queues.js:82:21)'
  }
} {
  code: -32603,
  message: 'socket hang up',
  data: { originalError: { code: 'ECONNRESET' } },
  stack: 'Error: socket hang up\n' +
    '    at connResetException (internal/errors.js:628:14)\n' +
    '    at TLSSocket.socketOnEnd (_http_client.js:499:23)\n' +
    '    at TLSSocket.emit (events.js:412:35)\n' +
    '    at endReadableNT (internal/streams/readable.js:1317:12)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:82:21)'
}```