Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sui RPC] sui_getTransactionBlock with showBalanceChanges returns Storage error (https://transactions-mirror.sui.io) #20034

Open
fl0ydj opened this issue Oct 25, 2024 · 3 comments
Assignees

Comments

@fl0ydj
Copy link

fl0ydj commented Oct 25, 2024

Steps to Reproduce Issue

Call https://fullnode.mainnet.sui.io:443 with

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getTransactionBlock",
  "params": [
      "Bbj3oei7DvkV4tVNyQHeSK1gD97qGMGiTZ4vF5MybCFb",
        {
        "showBalanceChanges": true,
        "showInput":true,
        "showEffects":true
      }
  ]
}

Expected Result

res to contain balance changes

Actual Result

res doesn't contain balance changes. And errors is

"errors": [
            "Cannot retrieve balance changes: Storage error: error sending request for url (https://transactions-mirror.sui.io/mainnet/RiKJQKkuBeqDVS3Gf0lb8z77iUGlc69efXVxB9QTyty9Hh4UAAAAAA/ob)"
        ]

System Information

@geomel
Copy link
Contributor

geomel commented Oct 26, 2024

I don't see any errors when querying Sui's public FN.

curl --location --request POST 'https://fullnode.mainnet.sui.io' \
--header 'content-type: application/json' \
--data-raw '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getTransactionBlock",
  "params": [
    "Bbj3oei7DvkV4tVNyQHeSK1gD97qGMGiTZ4vF5MybCFb",
    {
      "showInput": true,
      "showRawInput": false,
      "showEffects": true,
      "showEvents": true,
      "showObjectChanges": false,
      "showBalanceChanges": false
    }
  ]
}'
{
  "jsonrpc": "2.0",
  "result": {
    "digest": "Bbj3oei7DvkV4tVNyQHeSK1gD97qGMGiTZ4vF5MybCFb",
    "transaction": {
      "data": {
        "messageVersion": "v1",
        "transaction": {
          "kind": "ProgrammableTransaction",
          "inputs": [
            {
              "type": "pure",
              "valueType": "u64",
              "value": "200000000"
            },
            {
              "type": "pure",
              "valueType": "address",
              "value": "0x33be13ab72e55950aca9be1cbea531048d157d9510b1edfe8981cf66401a65d2"
            }
          ],
          "transactions": [
            {
              "SplitCoins": [
                "GasCoin",
                [
                  { "Input": 0 }
                ]
              ]
            },
            {
              "TransferObjects": [
                [
                  { "Result": 0 }
                ],
                { "Input": 1 }
              ]
            }
          ]
        },
        "sender": "0x693eba48b2364b8f052113b9b8441c2c652aea86ef611ef5e309d15fa263878f",
        "gasData": {
          "payment": [
            {
              "objectId": "0x0a77bc17e50b9becf5a514a5bbce43a8cf105c799c8d7229f45ee08d5968096f",
              "version": 337518268,
              "digest": "6jcGPG1vgs4KRjKu81uZzHQsce28nyxkrxSBUbps9aab"
            },
            {
              "objectId": "0x46228940a92e05ea83552dc67f495bf33efb8941a573af5e7d757107d413cadc",
              "version": 337518269,
              "digest": "HnesSNa2kvm79AhRan8phVqn7VyWTiJcqoz5McwFBGbp"
            }
          ],
          "owner": "0x693eba48b2364b8f052113b9b8441c2c652aea86ef611ef5e309d15fa263878f",
          "price": "750",
          "budget": "1519760"
        }
      },
      "txSignatures": [
        "AIg4RtFtg8LjqKEWfqXO22E8e5ZH7bZukp0lez/m7W/fxTNMEiPH1/UjHUZFuGs92sh5/k/AV252XvndYIDApwfd0YTnTgqgssomLxXwvLdgV65Nhn8h8YVJtoiJXuCpCg=="
      ]
    },
    "effects": {
      "messageVersion": "v1",
      "status": { "status": "success" },
      "executedEpoch": "561",
      "gasUsed": {
        "computationCost": "750000",
        "storageCost": "1976000",
        "storageRebate": "1956240",
        "nonRefundableStorageFee": "19760"
      },
      "modifiedAtVersions": [
        {
          "objectId": "0x0a77bc17e50b9becf5a514a5bbce43a8cf105c799c8d7229f45ee08d5968096f",
          "sequenceNumber": "337518268"
        },
        {
          "objectId": "0x46228940a92e05ea83552dc67f495bf33efb8941a573af5e7d757107d413cadc",
          "sequenceNumber": "337518269"
        }
      ],
      "transactionDigest": "Bbj3oei7DvkV4tVNyQHeSK1gD97qGMGiTZ4vF5MybCFb",
      "created": [
        {
          "owner": {
            "AddressOwner": "0x33be13ab72e55950aca9be1cbea531048d157d9510b1edfe8981cf66401a65d2"
          },
          "reference": {
            "objectId": "0x304c076a36afc234ce7e919c12413c258a8794dfdd092530d0ef948630bd68e9",
            "version": 337518270,
            "digest": "FKWQixxdCLbWGi7HznmuBN3ZodtsMT5d242ZmFvH3LPL"
          }
        }
      ],
      "mutated": [
        {
          "owner": {
            "AddressOwner": "0x693eba48b2364b8f052113b9b8441c2c652aea86ef611ef5e309d15fa263878f"
          },
          "reference": {
            "objectId": "0x0a77bc17e50b9becf5a514a5bbce43a8cf105c799c8d7229f45ee08d5968096f",
            "version": 337518270,
            "digest": "Cw9NSsw888LNzaJQFXdSi82hQfPGGYkmiuqWA8KtDZRX"
          }
        }
      ],
      "deleted": [
        {
          "objectId": "0x46228940a92e05ea83552dc67f495bf33efb8941a573af5e7d757107d413cadc",
          "version": 337518270,
          "digest": "7gyGAp71YXQRoxmFBaHxofQXAipvgHyBKPyxmdSJxyvz"
        }
      ],
      "gasObject": {
        "owner": {
          "AddressOwner": "0x693eba48b2364b8f052113b9b8441c2c652aea86ef611ef5e309d15fa263878f"
        },
        "reference": {
          "objectId": "0x0a77bc17e50b9becf5a514a5bbce43a8cf105c799c8d7229f45ee08d5968096f",
          "version": 337518270,
          "digest": "Cw9NSsw888LNzaJQFXdSi82hQfPGGYkmiuqWA8KtDZRX"
        }
      },
      "dependencies": [
        "5WVptuAQSW48cuXBm1eLHgGTEXJnKxWpQ8JV3Sp3iR5P",
        "Fae8Pi4T9noP46XViAiRu1C87ZYTWNdnYq6Y6GCjtcJ2"
      ]
    },
    "events": [],
    "timestampMs": "1729853518356",
    "checkpoint": "72684369"
  },
  "id": 1
}

@geomel geomel self-assigned this Oct 27, 2024
@fl0ydj
Copy link
Author

fl0ydj commented Oct 28, 2024

Just tried this again. Now getting an error that the tx can't be found anymore. Probably due to pruning?

Might have been a temporary issue generally. Curious about the root cause though based on the error message if you have ideas? Other than that, feel free to close.

@fl0ydj
Copy link
Author

fl0ydj commented Oct 30, 2024

Received the exact same error message now for a different transaction (4ZG8ac5gx6y1ySoKfQjMoiVMhWD11WMoCArTF5GaohKP):

"errors":["Cannot retrieve balance changes: Storage error: error sending request for url (https://transactions-mirror.sui.io/mainnet/MS43oFm8UcBSsfqibGlEILri06-t9dXKH2x7mn48tq2t7GcYAAAAAA/ob)"]

Again with showBalanceChanges=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants