When I get nft of this contract address 0x913e00d95621579e7f5cb1ab327f8256c0f74edd in bsc with limit and offset, when offset > total, it still return data
await MoralisBSC.Web3API.token.getAllTokenIds({
address: '0x913e00d95621579e7f5cb1ab327f8256c0f74edd',
limit: 1,
offset: 1500,
order: 'DESC',
chain: '0x38'
})
the response show that total is 1240 but this query still return value
{
total: 1240,
page: 0,
page_size: 1,
cursor: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGVyZSI6eyJ0b2tlbl9hZGRyZXNzIjoiMHg5MTNlMDBkOTU2MjE1NzllN2Y1Y2IxYWIzMjdmODI1NmMwZjc0ZWRkIn0sImxpbWl0IjoxLCJvZmZzZXQiOjEsIm9yZGVyIjpbWyJibG9ja19udW1iZXJfbWludGVkIiwiREVTQyJdLFsidG9rZW5faGFzaCIsIkRFU0MiXV0sImdyb3VwIjpbInRva2VuX2hhc2giLCJ0b2tlbl9hZGRyZXNzIiwidG9rZW5faWQiLCJibG9ja19udW1iZXJfbWludGVkIl0sInBhZ2UiOjEsImtleSI6ImZmZTg0NjE2MmY2M2FiODI4MDE2NTNmMDVlODQwMGVjIiwiaWF0IjoxNjUwNDM4NTY0fQ.A173xHdpxbDo6_TyyuNFixHU1BTz_iXDm5_zrGp7Icg',
result: [
{
token_hash: 'ffe846162f63ab82801653f05e8400ec',
token_address: '0x913e00d95621579e7f5cb1ab327f8256c0f74edd',
token_id: '943',
block_number_minted: '15528636',
amount: '1',
contract_type: 'ERC721',
name: 'CryptoGuns Squad Members',
symbol: 'SquadMembers',
token_uri: 'https://www.cryptoguns.io/json/pump',
metadata: '{"name":"Pump","image":"https://www.cryptoguns.io/characters/pump.jpg","attributes":[{"trait_type":"Class","value":"Heavy"},{"trait_type":"Health","value":"1200"},{"trait_type":"Mana","value":"150"},{"trait_type":"Attack","value":"110"},{"trait_type":"Special","value":"400"}]}',
synced_at: '2022-04-16T14:46:27.311Z'
}
]
}
What I expect and what Moralis work before is when the data exceed the total, it will not return some random data like that
The same with when I got limit 500, offset 1000, it still return 500 records when it should only return 240