subscan-explorer / subscan-issue-tracker

The issue tracker for Subscan.io.
3 stars 5 forks source link

Polymesh returns second to last transfer instead of the latest #56

Closed Noodles0x00 closed 1 year ago

Noodles0x00 commented 1 year ago

Confirmation

Affected Network(s)

polymesh

Steps to reproduce

try to call the api on a specific address with parameters

row: 1 page: 1 address: (polyx address)

Expected output

returns the very last transaction

Actual output

returns the second last transaction

Additional factoids or references

No response

Noodles0x00 commented 1 year ago

example code

def check_api(address):
    headers = {
        'Content-Type': 'application/json',
        'X-API-Key': 'api',
    }

    json_data = {
        'row': 1,
        'page': 1,
         'address': address,
    }

    response = requests.post('https://polymesh.api.subscan.io/api/v2/scan/transfers', headers=headers, json=json_data)
freehere107 commented 1 year ago

@Noodles0x00 You should query using page= 0

json_data = { 'row': 1, 'page': 0, 'address': address, }`