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

Add NFTokenPage objects in account_objects response. #696

Closed
mounikakun opened this issue Jun 14, 2023 · 1 comment
Closed

Add NFTokenPage objects in account_objects response. #696

mounikakun opened this issue Jun 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mounikakun
Copy link
Collaborator

Request:

{
    "method": "account_objects",
    "params": [
        {
            "account": "rUaxN8qVfAt3StHm363JwjhuzucmDws5KH",
            "limit": 400,
            "ledger_index":"validated"
        }
    ]
}

Clio response:

{
    "result": {
        "ledger_hash": "17C8E75260D0E3084348414FE64B3067C49C5AEB12AE7E50925D2B576C306D19",
        "ledger_index": 29485971,
        "validated": true,
        "limit": 400,
        "account": "rUaxN8qVfAt3StHm363JwjhuzucmDws5KH",
        "account_objects": [],
        "status": "success"
    },
    "warnings": [
        {
            "id": 2001,
            "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
        }
    ]
}

Rippled response:

{
    "result": {
        "account": "rUaxN8qVfAt3StHm363JwjhuzucmDws5KH",
        "account_objects": [
            {
                "Flags": 0,
                "LedgerEntryType": "NFTokenPage",
                "NFTokens": [
                    {
                        "NFToken": {
                            "NFTokenID": "0000000079C992D7020E038D8B6B902801078B0BA7A74C420000099B00000000"
                        }
                    }
                ],
                "PreviousTxnID": "4B696547299B9513BA22A4C5DD5DC286710E9AAE0C6F639EFC46CA51BF7E0427",
                "PreviousTxnLgrSeq": 29485687,
                "index": "79C992D7020E038D8B6B902801078B0BA7A74C42FFFFFFFFFFFFFFFFFFFFFFFF"
            }
        ],
        "ledger_hash": "0CD1C50154F6BCDCAA2CAF0FD9D0A09D10FFB403A4F3FC428D252E4B23868A82",
        "ledger_index": 29485988,
        "status": "success",
        "validated": true
    }
}

@cindyyan317
Copy link
Collaborator

Looks like we need to sync with this PR XRPLF/rippled#4352

@cindyyan317 cindyyan317 self-assigned this Jun 15, 2023
@godexsoft godexsoft added the bug Something isn't working label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants