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

Getting error in Balance change section in 'suix_queryTransactionBlocks' JSON RPC API #20877

Open
nishit9457 opened this issue Jan 14, 2025 · 5 comments
Assignees

Comments

@nishit9457
Copy link

nishit9457 commented Jan 14, 2025

Hi Team,

I am calling 'suix_queryTransactionBlocks' endpoint and at a certain point instead of balance change data in SUI Mainnet, I am getting this error -

 "errors": [
                    "Failed to fetch balance changes Client(UserInputError(ObjectNotFound { object_id: 0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2, version: Some(SequenceNumber(6379298)) }))"
                ]

Full Request -

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "suix_queryTransactionBlocks",
    "params": [
        {
            "filter": {
                "ToAddress": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e"
            },
            "options": {
                "showBalanceChanges": true,
                "showEffects": true,
                "showEvents": true,
                "showInput": true
            }
        },"KXfFB72bY2DFmqafTRTJbCs1MNpSkmeLMPZHB51FaBN"
    ]
}

Full Response -

{
	"digest": "6dzaLotZM62JQnMhjU65EM3m3igAV5rxCbeZpgHApvb2",
	"transaction": {
		"data": {
			"messageVersion": "v1",
			"transaction": {
				"kind": "ProgrammableTransaction",
				"inputs": [
					{
						"type": "pure",
						"valueType": "u64",
						"value": "1"
					},
					{
						"type": "object",
						"objectType": "sharedObject",
						"objectId": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6",
						"initialSharedVersion": "6379298",
						"mutable": true
					},
					{
						"type": "object",
						"objectType": "immOrOwnedObject",
						"objectId": "0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2",
						"version": "6379298",
						"digest": "2prqxa492JHpPQoy7WhNUdpTv26eGDGCA6vxFDSBKNrA"
					},
					{
						"type": "object",
						"objectType": "sharedObject",
						"objectId": "0xc38ba43a611f1571d78bffd3e85e6137d77e30a76f735c93821b24971b82619f",
						"initialSharedVersion": "5800631",
						"mutable": false
					},
					{
						"type": "pure",
						"valueType": "0x2::object::ID",
						"value": "0x79d26a30b1d04fbec5f72b5dc376acd141b243d4a183cf618df5d6620da5abb1"
					},
					{
						"type": "pure",
						"valueType": "u64",
						"value": "9270000000"
					},
					{
						"type": "pure",
						"valueType": "address",
						"value": "0xc9182656feffdd873fcac97b4dfc5fa515fbf51342369fc4fe6ab5d0de747835"
					}
				],
				"transactions": [
					{
						"SplitCoins": [
							"GasCoin",
							[
								{
									"Input": 0
								}
							]
						]
					},
					{
						"MoveCall": {
							"package": "0x6ea97b03c441edd54ae89224bf9560e583ee66c37e6c246f5db35258e580ba94",
							"module": "hyperspace",
							"function": "install",
							"type_arguments": [
								"0x9a84b6a7914aedd6741e73cc2ca23cbc77e22ed3c5f884c072a51868fedde45b::hyperspace_mp::Hyperspace_mp"
							],
							"arguments": [
								{
									"Input": 1
								},
								{
									"Input": 2
								},
								{
									"Input": 3
								}
							]
						}
					},
					{
						"MoveCall": {
							"package": "0x0000000000000000000000000000000000000000000000000000000000000002",
							"module": "kiosk",
							"function": "set_owner",
							"arguments": [
								{
									"Input": 1
								},
								{
									"Input": 2
								}
							]
						}
					},
					{
						"MoveCall": {
							"package": "0x6ea97b03c441edd54ae89224bf9560e583ee66c37e6c246f5db35258e580ba94",
							"module": "hyperspace",
							"function": "list",
							"type_arguments": [
								"0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1::suifrens::SuiFren<0x8894fa02fc6f36cbc485ae9145d05f247a78e220814fb8419ab261bd81f08f32::bullshark::Bullshark>",
								"0x9a84b6a7914aedd6741e73cc2ca23cbc77e22ed3c5f884c072a51868fedde45b::hyperspace_mp::Hyperspace_mp"
							],
							"arguments": [
								{
									"Input": 1
								},
								{
									"Input": 2
								},
								{
									"Input": 4
								},
								{
									"Input": 5
								}
							]
						}
					},
					{
						"TransferObjects": [
							[
								{
									"Result": 0
								}
							],
							{
								"Input": 6
							}
						]
					}
				]
			},
			"sender": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e",
			"gasData": {
				"payment": [
					{
						"objectId": "0x0261b636996ea933fdddf2c6847551b9435a9e6fdd997e283c775aae042394e5",
						"version": 12836063,
						"digest": "HT9M9b5oFxEopwDhCT87p9mhakf8MEyDYgRLLhFE463u"
					}
				],
				"owner": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e",
				"price": "790",
				"budget": "12700244"
			}
		},
		"txSignatures": [
			"ADqQ0Z0H8PC4Yqr49FrZRRJhwOhSulphOE9sJC+9sfIsgvV0yvPpKj8CLilLJqPeBcQdS44tez/nYzLLEM7fUADp0iU9HADXVT30JWdxZKQKjABC05gURiTVdJzaPxHJFQ=="
		]
	},
	"effects": {
		"messageVersion": "v1",
		"status": {
			"status": "success"
		},
		"executedEpoch": "107",
		"gasUsed": {
			"computationCost": "790000",
			"storageCost": "14272800",
			"storageRebate": "4130676",
			"nonRefundableStorageFee": "41724"
		},
		"modifiedAtVersions": [
			{
				"objectId": "0x0261b636996ea933fdddf2c6847551b9435a9e6fdd997e283c775aae042394e5",
				"sequenceNumber": "12836063"
			},
			{
				"objectId": "0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2",
				"sequenceNumber": "6379298"
			},
			{
				"objectId": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6",
				"sequenceNumber": "6379298"
			}
		],
		"sharedObjects": [
			{
				"objectId": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6",
				"version": 6379298,
				"digest": "5uDCnodinrF7fY7KuroMLDLA3QwRaK6k4BFbiVCv5mzM"
			},
			{
				"objectId": "0xc38ba43a611f1571d78bffd3e85e6137d77e30a76f735c93821b24971b82619f",
				"version": 12853800,
				"digest": "8aLVAytMBwuMZbwpTC73ZAz3RsWsdbwvAd1E3MbsWKbi"
			}
		],
		"transactionDigest": "6dzaLotZM62JQnMhjU65EM3m3igAV5rxCbeZpgHApvb2",
		"created": [
			{
				"owner": {
					"ObjectOwner": "0x55a2d1f594afd4f8a0062f2f92c1338ddec0662b66aa5eb9d663504d37f8107d"
				},
				"reference": {
					"objectId": "0x1e4934e32f9a9b100476ff900dd2250e55d551995f046e30079eb926cea37cfc",
					"version": 12853801,
					"digest": "H4qMkeC7anCXZTsyo4GUyiDr1V9w5RGuJzt6FMWgTXfL"
				}
			},
			{
				"owner": {
					"AddressOwner": "0xc9182656feffdd873fcac97b4dfc5fa515fbf51342369fc4fe6ab5d0de747835"
				},
				"reference": {
					"objectId": "0x4839376cd003585931058c8e314cf2bd1c31ce3bb72a655cb68606c502375739",
					"version": 12853801,
					"digest": "4wygfyLnjafgAeN2PptjVbQYa6Zd8WcUTKtJumj5SjxH"
				}
			},
			{
				"owner": {
					"ObjectOwner": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6"
				},
				"reference": {
					"objectId": "0x5ffafbc9a6f24296d5eea414090d77fc1f853c847c08b6fdd8a3084d3a0bf393",
					"version": 12853801,
					"digest": "4L61eGXLZdpNrnojEkPRLNgW1QghH7JVWW9suU8UWhQP"
				}
			},
			{
				"owner": {
					"ObjectOwner": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6"
				},
				"reference": {
					"objectId": "0xeb587e7483e4e0bf77bcf3d108fff3657c2fa7abe2718a153ada898cde219846",
					"version": 12853801,
					"digest": "me8aVs5ALGxaj6FcJdjs3EWpzKcqUT9WAUsFNAEaG1T"
				}
			}
		],
		"mutated": [
			{
				"owner": {
					"AddressOwner": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e"
				},
				"reference": {
					"objectId": "0x0261b636996ea933fdddf2c6847551b9435a9e6fdd997e283c775aae042394e5",
					"version": 12853801,
					"digest": "d1h8moyoAxom8NdmPaytYrmeH7tnBs3sKqGssaxHuuz"
				}
			},
			{
				"owner": {
					"AddressOwner": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e"
				},
				"reference": {
					"objectId": "0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2",
					"version": 12853801,
					"digest": "6Wm4THQ338nxtJUfYDewVGfP9a7SeH1fqqB3WTRhPfys"
				}
			},
			{
				"owner": {
					"Shared": {
						"initial_shared_version": 6379298
					}
				},
				"reference": {
					"objectId": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6",
					"version": 12853801,
					"digest": "48icJQfn13GM8fGxJRdErHWfFhRqf52MEU3Hv5A6Qok2"
				}
			}
		],
		"gasObject": {
			"owner": {
				"AddressOwner": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e"
			},
			"reference": {
				"objectId": "0x0261b636996ea933fdddf2c6847551b9435a9e6fdd997e283c775aae042394e5",
				"version": 12853801,
				"digest": "d1h8moyoAxom8NdmPaytYrmeH7tnBs3sKqGssaxHuuz"
			}
		},
		"eventsDigest": "8fpiGNxDRJm7WP3v7cEYRQRKANLvGzMCiQeoEpbMV8WZ",
		"dependencies": [
			"1xA35n8VW19r7TSSN2LEcKqxG73aTqav9dwkNaPBUuT",
			"yWPaLRcURJBCtKUF8Tgj5j7v2SVw6M95M37tzEJeuro",
			"7scjopYSDoUUirzNmbJs1o54yHm9eiSu7fj4EZUUFp3p",
			"9eAtptEvo2Nugre64dnjD8m87YZWppwTctUfktPXQCUi",
			"AvPP9Gq3XAtJ7eLiM76qP3b9D2v1ZxZ5rHwNj3nw2PAf",
			"EqvWxVeAm94HoLmqK9V7N2dxymihJX4KLkTFr2kUvtrq",
			"F2kRgDrFzQeZgGkiBLCRKbVb8PA2RajadrrqhvszTvuL",
			"J3f9EcVfjNQFaoAt4x8im6TtuCrCejxXtMXZVWMNrBco"
		]
	},
	"events": [
		{
			"id": {
				"txDigest": "6dzaLotZM62JQnMhjU65EM3m3igAV5rxCbeZpgHApvb2",
				"eventSeq": "0"
			},
			"packageId": "0x9a84b6a7914aedd6741e73cc2ca23cbc77e22ed3c5f884c072a51868fedde45b",
			"transactionModule": "hyperspace",
			"sender": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e",
			"type": "0x9a84b6a7914aedd6741e73cc2ca23cbc77e22ed3c5f884c072a51868fedde45b::hyperspace::ItemListed<0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1::suifrens::SuiFren<0x8894fa02fc6f36cbc485ae9145d05f247a78e220814fb8419ab261bd81f08f32::bullshark::Bullshark>, 0x9a84b6a7914aedd6741e73cc2ca23cbc77e22ed3c5f884c072a51868fedde45b::hyperspace_mp::Hyperspace_mp>",
			"parsedJson": {
				"id": "0x79d26a30b1d04fbec5f72b5dc376acd141b243d4a183cf618df5d6620da5abb1",
				"kiosk": "0x9fbec065009fc2ab1c0562d3e666b33d25a58629305412e56afd92d7c33dbea6",
				"price": "9270000000"
			},
			"bcsEncoding": "base64",
			"bcs": "n77AZQCfwqscBWLT5mazPSWlhikwVBLlav2S18M9vqZ50mowsdBPvsX3K13DdqzRQbJD1KGDz2GN9dZiDaWrsYD5iCgCAAAA"
		}
	],
	"timestampMs": "1690603543766",
	"checkpoint": "8905759",
	**"errors": [
		"Failed to fetch balance changes Client(UserInputError(ObjectNotFound { object_id: 0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2, version: Some(SequenceNumber(6379298)) }))"
	]**
}
@MystenLabs MystenLabs deleted a comment Jan 14, 2025
@stefan-mysten
Copy link
Member

@nishit9457 did you experience this error over some number of queries? I tried it on my machine a few times and it seemed to have worked. I used fullnode.mainnet.sui.io as the RPC.

I am thinking that maybe it was a transient error with serving the data.

@nishit9457
Copy link
Author

Hi @stefan-mysten I am using the same URL and I am getting this error every time I am requesting. just now I again got this error -
"errors": [
"Failed to fetch balance changes Client(UserInputError(ObjectNotFound { object_id: 0x9dd9b93fdacd904e02a741cca109673bf1022291e4ceadc9c18aeaa1a5b6ebf2, version: Some(SequenceNumber(6379298)) }))"
]

@stefan-mysten
Copy link
Member

Hmm, interesting. Do you have a VPN that you could try to use and switch location to Europe / US or Asia, and see if you observe any differences?

Alternatively, can you try to use another RPC? For example:

curl -X POST -H "Content-Type: application/json" --data '{
         "jsonrpc": "2.0",
         "id": 1,
         "method": "suix_queryTransactionBlocks",
         "params": [
             {
                 "filter": {
                     "ToAddress": "0x36a05394e882fb4160790c9214c7f00438e6a11ef07c5ace2ad818d34cda575e"
                 },
                 "options": {
                     "showBalanceChanges": true,
                     "showEffects": true,
                     "showEvents": true,
                     "showInput": true
                 }
             },"KXfFB72bY2DFmqafTRTJbCs1MNpSkmeLMPZHB51FaBN"
         ]
     }
     '  https://sui-mainnet.public.blastapi.io
     ```

@nishit9457
Copy link
Author

I tried switching tunnel, everywhere I am getting this error even I tried this URL https://sui-mainnet.public.blastapi.io but response has error again.

image

@stefan-mysten
Copy link
Member

Thanks @nishit9457. I am not sure what else to suggest as I have difficulties in replicating this issue.

@stefan-mysten stefan-mysten self-assigned this Jan 14, 2025
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