Some of Ts-sdk errors

Hi guys, my spark matcher has been running for about 3 days now, I looked at its logs today and realized that not a single match transaction has been executed successfully, absolutely all transactions (even those that eventually did their job) are crashing with errors
Here are some of them:

The most popular: Error: Transaction is not inserted. UTXO is not existing

 Error: Transaction is not inserted. UTXO is not existing: 0xbebaf54d4c15b15a2067b9afcaa4e849c2537af6ac2512704ff2f3878b7b5d3701: {"response":{"data":null,"errors":[{"message":"Transaction is not inserted. UTXO is not existing: 0xbebaf54d4c15b15a2067b9afcaa4e849c2537af6ac2512704ff2f3878b7b5d3701","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000200000000009896800000000000000000000000000000001800000000000000680000000000000002000000000000000c00000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000e2058c9c621c42bde654dd31560ab3bf68a5b9f517894ee7db0b6f82ea5d3e3a0000000074cffba200000000000028d8000000000000004500000000000000440000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e2058c9c621c42bde654dd31560ab3bf68a5b9f517894ee7db0b6f82ea5d3e3a0000000000000000bebaf54d4c15b15a2067b9afcaa4e849c2537af6ac2512704ff2f3878b7b5d3700000000000000015cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000001c8bca8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd453400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000407cae272bae756c5a1d25ea5c990cccaa175340085ecd33f5d6787fb0f5c109f29f0ca434e63f002d6d8cf52f892cf2cd08ce527f3276b97b6bf5f7d2963608a7"}}}

FetchError: request to https://beta-4.fuel.network/graphql failed, reason: getaddrinfo ENOTFOUND beta-4.fuel.network
 Error: Number can only safely store up to 53 bits
Error: GraphQL Error (Code: 502): {"response":{"error":"<!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 7]>    <html class=\"no-js ie7 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 8]>    <html class=\"no-js ie8 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en-US\"> <!--<![endif]-->\n<head>\n\n\n<title>beta-4.fuel.network | 502: Bad gateway</title>\n<meta charset=\"UTF-8\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n<meta name=\"robots\" content=\"noindex, nofollow\" />\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n<link rel=\"stylesheet\" id=\"cf_styles-css\" href=\"/cdn-cgi/styles/main.css\" />\n\n\n</head>\n<body>\n<div id=\"cf-wrapper\">\n    <div id=\"cf-error-details\" class=\"p-0\">\n        <header class=\"mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8\">\n            <h1 class=\"inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2\">\n              <span class=\"inline-block\">Bad gateway</span>\n              <span class=\"code-label\">Error code 502</span>\n            </h1>\n            <div>\n               Visit <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_502&utm_campaign=beta-4.fuel.network\" target=\"_blank\" rel=\"noopener noreferrer\">cloudflare.com</a> for more information.\n            </div>\n            <div class=\"mt-3\">2023-10-13 23:39:00 UTC</div>\n        </header>\n        <div class=\"my-8 bg-gradient-gray\">\n            <div class=\"w-240 lg:w-full mx-auto\">\n                <div class=\"clearfix md:px-8\">\n                  \n<div id=\"cf-browser-status\" class=\" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center\">\n  <div class=\"relative mb-10 md:m-0\">\n    \n    <span class=\"cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat\"></span>\n    <span class=\"cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4\"></span>\n    \n  </div>\n  <span class=\"md:block w-full truncate\">You</span>\n  <h3 class=\"md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3\">\n    \n    Browser\n    \n  </h3>\n  <span class=\"leading-1.3 text-2xl text-green-success\">Working</span>\n</div>\n\n<div id=\"cf-cloudflare-status\" class=\" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center\">\n  <div class=\"relative mb-10 md:m-0\">\n    <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_502&utm_campaign=beta-4.fuel.network\" target=\"_blank\" rel=\"noopener noreferrer\">\n    <span class=\"cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat\"></span>\n    <span class=\"cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4\"></span>\n    </a>\n  </div>\n  <span class=\"md:block w-full truncate\">Paris</span>\n  <h3 class=\"md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3\">\n    <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_502&utm_campaign=beta-4.fuel.network\" target=\"_blank\" rel=\"noopener noreferrer\">\n    Cloudflare\n    </a>\n  </h3>\n  <span class=\"leading-1.3 text-2xl text-green-success\">Working</span>\n</div>\n\n<div id=\"cf-host-status\" class=\"cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center\">\n  <div class=\"relative mb-10 md:m-0\">\n    \n    <span class=\"cf-icon-server block md:hidden h-20 bg-center bg-no-repeat\"></span>\n    <span class=\"cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4\"></span>\n    \n  </div>\n  <span class=\"md:block w-full truncate\">beta-4.fuel.network</span>\n  <h3 class=\"md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3\">\n    \n    Host\n    \n  </h3>\n  <span class=\"leading-1.3 text-2xl text-red-error\">Error</span>\n</div>\n\n                </div>\n            </div>\n        </div>\n\n        <div class=\"w-240 lg:w-full mx-auto mb-8 lg:px-8\">\n            <div class=\"clearfix\">\n                <div class=\"w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed\">\n                    <h2 class=\"text-3xl font-normal leading-1.3 mb-4\">What happened?</h2>\n                    <p>The web server reported a bad gateway error.</p>\n                </div>\n                <div class=\"w-1/2 md:w-full float-left leading-relaxed\">\n                    <h2 class=\"text-3xl font-normal leading-1.3 mb-4\">What can I do?</h2>\n                    <p class=\"mb-6\">Please try again in a few minutes.</p>\n                </div>\n            </div>\n        </div>\n\n        <div class=\"cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300\">\n  <p class=\"text-13\">\n    <span class=\"cf-footer-item sm:block sm:mb-1\">Cloudflare Ray ID: <strong class=\"font-semibold\">815b6b5d8cb32a0b</strong></span>\n    <span class=\"cf-footer-separator sm:hidden\">&bull;</span>\n    <span id=\"cf-footer-item-ip\" class=\"cf-footer-item hidden sm:block sm:mb-1\">\n      Your IP:\n      <button type=\"button\" id=\"cf-footer-ip-reveal\" class=\"cf-footer-ip-reveal-btn\">Click to reveal</button>\n      <span class=\"hidden\" id=\"cf-footer-ip\">15.237.16.80</span>\n      <span class=\"cf-footer-separator sm:hidden\">&bull;</span>\n    </span>\n    <span class=\"cf-footer-item sm:block sm:mb-1\"><span>Performance &amp; security by</span> <a rel=\"noopener noreferrer\" href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_502&utm_campaign=beta-4.fuel.network\" id=\"brand_link\" target=\"_blank\">Cloudflare</a></span>\n    \n  </p>\n  <script>(function(){function d(){var b=a.getElementById(\"cf-footer-item-ip\"),c=a.getElementById(\"cf-footer-ip-reveal\");b&&\"classList\"in b&&(b.classList.remove(\"hidden\"),c.addEventListener(\"click\",function(){c.classList.add(\"hidden\");a.getElementById(\"cf-footer-ip\").classList.remove(\"hidden\")}))}var a=document;document.addEventListener&&a.addEventListener(\"DOMContentLoaded\",d)})();</script>\n</div><!-- /.error-footer -->\n\n\n    </div>\n</div>\n</body>\n</html>\n","status":502,"headers":{}},"request":{"query":"query getTransactionWithReceipts($transactionId: TransactionId!) {\n  transaction(id: $transactionId) {\n    ...transactionFragment\n    receipts {\n      ...receiptFragment\n    }\n  }\n}\n\nfragment transactionFragment on Transaction {\n  id\n  rawPayload\n  gasPrice\n  receipts {\n    ...receiptFragment\n  }\n  status {\n    type: __typename\n    ... on SubmittedStatus {\n      time\n    }\n    ... on SuccessStatus {\n      block {\n        id\n      }\n      time\n      programState {\n        returnType\n        data\n      }\n    }\n    ... on FailureStatus {\n      block {\n        id\n      }\n      time\n      reason\n    }\n  }\n}\n\nfragment receiptFragment on Receipt {\n  contract {\n    id\n    bytecode\n    salt\n  }\n  pc\n  is\n  to {\n    id\n    bytecode\n    salt\n  }\n  toAddress\n  amount\n  assetId\n  gas\n  param1\n  param2\n  val\n  ptr\n  digest\n  reason\n  ra\n  rb\n  rc\n  rd\n  len\n  receiptType\n  result\n  gasUsed\n  data\n  sender\n  recipient\n  nonce\n  contractId\n  subId\n}","variables":{"transactionId":"0x8c7bc1b3f9dc8805ca66d0c1bc4131999b5bf1316b844e0cab1a8cbbcc9d4c3d"}}}
Error: Number can only safely store up to 53 bits

Spark matter code https://github.com/compolabs/spark/tree/beta-4/services/spark-matcher

Possible this issue related, can you have a look, please?

1 Like

Hi there!
Thanks for sharing your issue with us.

I took a light reading through your code, and it seems like an offchain orders matcher that read transactions from the indexer and try to match them by calling the match_orders method using the TS SDK.

In order to provide better support, I kindly ask for more details:

  • fuelup show command output.
  • Indexer node status: Is the indexer module successfully storing the order data?
  • Are you able to use some mock data to find the problematic step?
  • Replication environment: Can you provide instructions for us to run the code and replicate the error?
  • Can you determine whether the error is coming from the contract call at line 110 from spark-matcher/src/server.ts?

In the meantime, I’ll try to get more specific information about the errors you mention.

Thanks

The Transaction is not inserted error is coming from fuel-core tx pool. So maybe the errors are getting generated by the graphgql client.

fuelup show command output.

Default host: aarch64-apple-darwin
fuelup home: /Users/alexey/.fuelup

installed toolchains
--------------------
beta-3-aarch64-apple-darwin
beta-4-rc.2-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)
beta-4-aarch64-apple-darwin
hotfix
latest-2023-09-25-aarch64-apple-darwin
my-custom-toolchain

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.46.0
    - forc-client
      - forc-deploy : 0.46.0
      - forc-run : 0.46.0
    - forc-doc : 0.46.0
    - forc-explore : 0.28.1
    - forc-fmt : 0.46.0
    - forc-index : 0.21.0
    - forc-lsp : 0.46.0
    - forc-tx : 0.46.0
    - forc-wallet : 0.3.0
  fuel-core : 0.20.5
  fuel-core-keygen : Error getting version string
  fuel-indexer : 0.21.0

fuels versions
---------------
forc : 0.45
forc-wallet : 0.45

Indexer node status: Is the indexer module successfully storing the order data?

The indexer working well, you can test it here
http://spark-indexer.spark-defi.com/api/playground/composabilitylabs/spark_indexer

query orderById{
  orderentity(offset: 0, filter: {order_id: {equals: 69}}){
    order_id
    asset0
    amount0
    asset1
    amount1
    owner
    matcher_fee
    matcher_fee_used
    fulfilled0
    fulfilled1
    status
    timestamp
  }
}

Are you able to use some mock data to find the problematic step?

on the rust-sdk side, all transactions work well, and ts-sdk works well as well, but all of the succeeded transactions for some reason print the errors

Replication environment: Can you provide instructions for us to run the code and replicate the error?

git clone https://github.com/compolabs/spark.git
cd spark
git checkout beta-4
cd services/spark-mather
#
# #.env file
#NODE_ENV=development
#PORT=5003
#PRIVATE_KEY="YOUR PK WITH ETH HERE"
#CONTRACT_ADDRESS="0xa06a249aec454510179bf9b3d688d8983339ae56620e300fd1bcff34b1eb32ba"
#NODE_URL="https://beta-4.fuel.network/graphql"
#INDEXER_URL="https://spark-indexer.spark-defi.com/api/sql/composabilitylabs/spark_indexer"
#
echo "<YOUR ENV FILE>" >> .env 
npm I && npm run dev

# 🐳 To run in docker you can use the command below :
# sudo docker build --tag spark-matcher . && sudo docker run --restart=always -d spark-matcher
# and here check logs of the container

* Can you determine whether the error is coming from the contract call at line 110 from spark-matcher/src/server.ts?

Absolutely yes. All of the errors can be only here:

It can be old version of that stuff
image

Hi, Also today I saw the error “ReferenceError: structuredClone is not defined” for the first time.

ReferenceError: structuredClone is not defined

The matcher called the match_orders function, and the function call crashed, but the orders matched
Do you know what can it be?

HI there!
Thanks for sharing the required details.
We’ll take a look and try to replicate.

Seems quite weird, we might need some detailed revision.

After update of abi I have next errors

ReferenceError: structuredClone is not defined
Error: Transaction is not inserted. UTXO is not existing: 0x6fedeea563aecd645e2e9d6a854db2a4c8e943fa73e7e9c805254e13c932a45901: {"response":{"data":null,"errors":[{"message":"Transaction is not inserted. UTXO is not existing: 0x6fedeea563aecd645e2e9d6a854db2a4c8e943fa73e7e9c805254e13c932a45901","locations":[{"line":2,"column":3}],"path":["submit"]}],"status":200,"headers":{}},"request":{"query":"mutation submit($encodedTransaction: HexString!) {\n  submit(tx: $encodedTransaction) {\n    id\n  }\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000200000000009896800000000000000000000000000000001800000000000000680000000000000002000000000000000c00000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d783027480000000074cffba200000000000028d8000000000000004f00000000000000470000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d7830274800000000000000006fedeea563aecd645e2e9d6a854db2a4c8e943fa73e7e9c805254e13c932a45900000000000000015cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000001c89445c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004085b58346d1caead54bfbdf962922918327408d57d7530f2cde003ea232d7f57ba822c97cde957f8530a464d2a1ac991a52c3598e8c8007d2d49a234346d4d10b"}}}
ClientError: Invalid transaction: The specified coin doesn't exist: {"response":{"data":null,"errors":[{"message":"Invalid transaction: The specified coin doesn't exist","locations":[{"line":2,"column":3}],"path":["dryRun"]}],"status":200,"headers":{}},"request":{"query":"mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {\n  dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {\n    ...receiptFragment\n  }\n}\n\nfragment receiptFragment on Receipt {\n  contract {\n    id\n    bytecode\n    salt\n  }\n  pc\n  is\n  to {\n    id\n    bytecode\n    salt\n  }\n  toAddress\n  amount\n  assetId\n  gas\n  param1\n  param2\n  val\n  ptr\n  digest\n  reason\n  ra\n  rb\n  rc\n  rd\n  len\n  receiptType\n  result\n  gasUsed\n  data\n  sender\n  recipient\n  nonce\n  contractId\n  subId\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000000000000009896800000000000000000000000000000001800000000000000580000000000000002000000000000000200000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d7830274800000000834e57a500000000000000740000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d783027480000000000000000ac7af52cd0bcf120aea5527aee594a6a1f33f5fa0e5b001d725404f263a7e5ab00000000000000015cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000000393216c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd453400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004032e15571856afa1806ca94833882d690c68d331448543fa36dce0c6f19982c62713192256c74b4a88e1f846922133772a800a75f6a1caef18a7b04f12b4ac211","utxoValidation":true}}}

Hi @fuel , do you know what node version your matcher is running on? Could be related to this issue as structuredClone was added in Node v17.

looks like I have node v 14 :disguised_face:

1 Like
ClientError: Invalid transaction: The specified coin doesn't exist: {"response":{"data":null,"errors":[{"message":"Invalid transaction: The specified coin doesn't exist","locations":[{"line":2,"column":3}],"path":["dryRun"]}],"status":200,"headers":{}},"request":{"query":"mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {\n  dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {\n    ...receiptFragment\n  }\n}\n\nfragment receiptFragment on Receipt {\n  contract {\n    id\n    bytecode\n    salt\n  }\n  pc\n  is\n  to {\n    id\n    bytecode\n    salt\n  }\n  toAddress\n  amount\n  assetId\n  gas\n  param1\n  param2\n  val\n  ptr\n  digest\n  reason\n  ra\n  rb\n  rc\n  rd\n  len\n  receiptType\n  result\n  gasUsed\n  data\n  sender\n  recipient\n  nonce\n  contractId\n  subId\n}","variables":{"encodedTransaction":"0x0000000000000000000000000000000000000000009896800000000000000000000000000000001800000000000000580000000000000002000000000000000200000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d7830274800000000834e57a500000000000000df0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d78302748000000000000000026b824ba4adece439570ebf8cbf295eed4cfbe09c2c2c3b073f2b19df2d38e5700000000000000015cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd45340000000002fa4ae100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040b2a0611bf42f42069931a132ba53022adb7cbf19405f048a6f7307329a18519eb27b4caaf9cb4e2694cd0403388ebb634e593bf2c806300389874b514d31361f","utxoValidation":true}}}
    at makeRequest (/home/node/app/node_modules/graphql-request/build/cjs/index.js:314:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async _Provider.call (/home/node/app/node_modules/fuels/node_modules/@fuel-ts/providers/dist/index.js:3085:37)
    at async FunctionInvocationScope.simulate (/home/node/app/node_modules/@fuel-ts/program/dist/index.js:1064:20) {
  response: {
    data: null,
    errors: [ [Object] ],
    status: 200,
    headers: Headers { [Symbol(map)]: [Object: null prototype] }
  },
  request: {
    query: 'mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {\n' +
      '  dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {\n' +
      '    ...receiptFragment\n' +
      '  }\n' +
      '}\n' +
      '\n' +
      'fragment receiptFragment on Receipt {\n' +
      '  contract {\n' +
      '    id\n' +
      '    bytecode\n' +
      '    salt\n' +
      '  }\n' +
      '  pc\n' +
      '  is\n' +
      '  to {\n' +
      '    id\n' +
      '    bytecode\n' +
      '    salt\n' +
      '  }\n' +
      '  toAddress\n' +
      '  amount\n' +
      '  assetId\n' +
      '  gas\n' +
      '  param1\n' +
      '  param2\n' +
      '  val\n' +
      '  ptr\n' +
      '  digest\n' +
      '  reason\n' +
      '  ra\n' +
      '  rb\n' +
      '  rc\n' +
      '  rd\n' +
      '  len\n' +
      '  receiptType\n' +
      '  result\n' +
      '  gasUsed\n' +
      '  data\n' +
      '  sender\n' +
      '  recipient\n' +
      '  nonce\n' +
      '  contractId\n' +
      '  subId\n' +
      '}',
    variables: {
      encodedTransaction: '0x0000000000000000000000000000000000000000009896800000000000000000000000000000001800000000000000580000000000000002000000000000000200000000000000010000000000000000000000000000000000000000000000000000000000000000724028a8724428805d451000724828882d41148a2404000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d7830274800000000834e57a500000000000000df0000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebfc4ecfcb7f76b952ca76e1ee87633aef44f1cca43d1ee4ff6a296d78302748000000000000000026b824ba4adece439570ebf8cbf295eed4cfbe09c2c2c3b073f2b19df2d38e5700000000000000015cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd45340000000002fa4ae100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025cd7a90ddc6e4c9ba59c08f9fcd5ec59f1ab9998088a28176f395803c7bd4534000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040b2a0611bf42f42069931a132ba53022adb7cbf19405f048a6f7307329a18519eb27b4caaf9cb4e2694cd0403388ebb634e593bf2c806300389874b514d31361f',
      utxoValidation: true
    }
  }
}

1 Like