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 XCM transfer query #491

Open
Chralt98 opened this issue Jan 24, 2024 · 1 comment
Open

Add XCM transfer query #491

Chralt98 opened this issue Jan 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Chralt98
Copy link
Member

It's currently complicated to filter the historicalAccountBalances for xcm transfers. I would expect to query historicalXcmTransfers. You can index the TransferredMultiAssets event from here (orml-xtokens pallet). Here is the reference to the subscan information. I would want to know from which account the XCM transfer originated, what the destination account is, what parachain it goes to, how much and which assets are involved etc (the more information the better)..

@Chralt98 Chralt98 added the enhancement New feature or request label Jan 24, 2024
@saboonikhil
Copy link
Member

What do you think about this?

query MyQuery {
  historicalAccountBalances(
    limit: 10
    where: { extrinsic: { name_containsInsensitive: "xtokens" } }
  ) {
    accountId
    assetId
    blockNumber
    dBalance
    event
    timestamp
  }
}

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

No branches or pull requests

2 participants