You may encounter error code polygon.sc.invalid when, for example, your request works with a cURL request but the same code fails in JavaScript:

  statusCode: 403,
  errorCode: 'polygon.sc.invalid',
  message: 'Invalid parameters for smart contract invocation.'

Ensure that you are using correct syntax for your objects, especially inverted commas and quotation marks.

Last updated