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

[JSON-RPC] Missing transaction blocks using suix_queryTransactionBlocks when filtering by object changes #19594

Open
Jey-T opened this issue Sep 27, 2024 · 3 comments
Assignees
Labels

Comments

@Jey-T
Copy link

Jey-T commented Sep 27, 2024

Steps to Reproduce Issue

I was trying to get all the transactionBlocks involving a particular NFT's changes through the JSON-RPC api, with the suix_queryTransactionBlocks query.

I sent this post request (using postman) to the public sui JSON-RPC endpoint for mainnet (https://fullnode.mainnet.sui.io:443)

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "suix_queryTransactionBlocks",
    "params": [
        {
            "filter": {
                "ChangedObject": "0x58f50bf7701d21c270da1f8d32874b07e7b8c34a7a04fa078d56d7e885a7e608"
            },
            "options": null
        },
        null,
        100,
        false
    ]
}

Expected Result

When you look at the object on suivision you can see multiple transactions related to the object, so you expect to get these transactionsBlocks in the response.

image

Actual Result

The response is an empty array

    "jsonrpc": "2.0",
    "result": {
        "data": [],
        "nextCursor": null,
        "hasNextPage": false
    },
    "id": 1
}

System Information

  • OS: MacOS Sonoma 14.5
@bmwill bmwill removed their assignment Sep 29, 2024
@stefan-mysten stefan-mysten self-assigned this Oct 3, 2024
@Tahlil
Copy link

Tahlil commented Oct 17, 2024

I am facing the exact same issue. It worked with the same codebase just last month.

@stefan-mysten
Copy link
Contributor

Which RPC are you using? Try one that does not prune history.

@Jey-T
Copy link
Author

Jey-T commented Oct 17, 2024

It works using another RPC (I tried using blockvision's public mainnet RPC endpoint https://sui-mainnet-endpoint.blockvision.org/).

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

No branches or pull requests

4 participants