Skip to content

Whether to use unique_id or metadata.message_id in cross-transfer API for pagination #161

@pratts

Description

@pratts

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have read the Subscan API documentation (if it seemed to be an API bug).

Affected Network(s)

Polkadot, Kusama

Steps to reproduce

  1. Call the API for cross chain transfer (/api/scan/xcm/list) for a wallet.
  2. Try to use the metadata.message_id field in the last transfer entity in after_id field for next api call for pagination.
  3. In the API response for first call, the metadata field is not available, hence no parameter for pagination.

Expected output

  1. Call the API for cross chain transfer (/api/scan/xcm/list) for a wallet.
  2. Try to use the metadata.message_id field in the last transfer entity in after_id field for next api call for pagination.
  3. In the API response for first call, the metadata field is available and I am able to paginate to next page based on after_id.

Actual output

  1. Call the API for cross chain transfer (/api/scan/xcm/list) for a wallet.
  2. Try to use the metadata.message_id field in the last transfer entity in after_id field for next api call for pagination.
  3. In the API response for first call, the metadata field is available and I am able to paginate to next page based on after_id.

Additional factoids or references

There is one more field named unique_id in the cross-chain API response. It is shown as optional in the API doc.

  1. Is is actually optional or always available in the response ?
  2. Is it safe to use it to paginate based on after_id field in the API body ?

Metadata

Metadata

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions