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

[Indexer API] - Null From Address for NFT trade - account_transactions graphql #220

Open
ivocryptotax opened this issue Dec 15, 2023 · 0 comments
Labels
indexer-api Issues relating to the Indexer API

Comments

@ivocryptotax
Copy link

Description

I'm using the indexer graphql API account_transactions for a NFT trade transaction.
It appears some data is missing in both token_activities and token_activities_v2 - previous owner (the seller) is null while the value should be 0xd6e3ad94ed9d1f628d6b4e1a287378158beb0930f4d0be0f89de683386746f53

Sharing the response here: "Token_activities_v2": [
{
"Aptos_names_from": [],
"Aptos_names_to": [],
"Before_value": null,
"From_address": null,
"Is_fungible_v2": null,
"To_address": "0x629ed8449b71c464d253159b5f8b26a5c26bce40dfdb7420a279041c380e4464",
"Token_amount": 1,
"Token_data_id": "0xab34d7afd9fb00e0008a6181dfa485ac3c6ae98b43b74b6de0fd4be1c58f9e5b",
"Token_standard": "v1",
"Transaction_timestamp": "2023-12-13T09:25:33.089239",
"Transaction_version": 359534234,
"Type": "0x3::token::DepositEvent",
"Property_version_v1": 0,
"Event_account_address": "0x629ed8449b71c464d253159b5f8b26a5c26bce40dfdb7420a279041c380e4464",
"Event_index": 0,
"Entry_function_id_str": "0x2c7bccf7b31baf770fdbcc768d9e9cb3d87805e255355df5db32ac9a669010a2::marketplace_v2::buy"
}
]

Is it a bug or intentional?

Repro

Query link:

https://cloud.hasura.io/public/graphiql?endpoint=https%3A%2F%2Findexer.mainnet.aptoslabs.com%2Fv1%2Fgraphql&variables=%7B%22transaction_version%22%3A0%2C%22account_address%22%3A%22%22%7D&query=query+SingleTransaction%28%24transaction_version%3A+bigint%2C+%24account_address+%3A+String%29+%7B%0A++account_transactions%28%0A++++where%3A+%7Btransaction_version%3A+%7B_eq%3A+%24transaction_version%7D%2C+token_activities_v2%3A+%7B%7D%2C+account_address%3A+%7B_eq%3A+%24account_address%7D%7D%0A++++offset%3A+0%0A++%29+%7B%0A++++token_activities_v2+%7B%0A++++++from_address%0A++++++is_fungible_v2%0A++++++property_version_v1%0A++++++to_address%0A++++++token_amount%0A++++++token_data_id%0A++++++token_standard%0A++++++transaction_timestamp%0A++++++transaction_version%0A++++++type%0A++++++event_index%0A++++++event_account_address%0A++++++entry_function_id_str%0A++++++aptos_names_to+%7B%0A++++++++domain%0A++++++++domain_with_suffix%0A++++++++expiration_timestamp%0A++++++++is_active%0A++++++++owner_address%0A++++++++registered_address%0A++++++++subdomain%0A++++++++token_name%0A++++++++token_standard%0A++++++%7D%0A++++++aptos_names_from+%7B%0A++++++++domain%0A++++++++domain_with_suffix%0A++++++++expiration_timestamp%0A++++++++is_active%0A++++++++is_primary%0A++++++++last_transaction_version%0A++++++++owner_address%0A++++++++registered_address%0A++++++++subdomain%0A++++++++token_name%0A++++++++token_standard%0A++++++%7D%0A++++%7D%0A++%7D%0A%7D%0A

Query variables:

{
"transaction_version": 359534234,
"account_address" : "0x629ed8449b71c464d253159b5f8b26a5c26bce40dfdb7420a279041c380e4464"
}

@ivocryptotax ivocryptotax added the indexer-api Issues relating to the Indexer API label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indexer-api Issues relating to the Indexer API
Projects
None yet
Development

No branches or pull requests

1 participant