I have been trying to get all historical transactions for a NFT collection using the getNFTTransactions endpoint in Cloud code. When i call the endpoint using the SDK I only get 11 results, but if I use the raw HTTP endpoint I get 52000. Here is the two methods for calling the endpt:
Moralis.Cloud.define("getTransactions", async (request) => {
const resp = await Moralis.Web3API.account.getNFTTransfers({
chain: "eth",
address: request.params.contract,
});
const resp2 = Moralis.Cloud.httpRequest({
url: "https://deep-index.moralis.io/api/v2/nft/0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB/transfers?chain=eth",
headers: {
"X-API-Key":
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
accept: "application/json",
},
});
return resp;
});
When I return resp
I only get 11 results, but returning resp2
gives me 52,000+ results. These are supposed to be the same endpoint according to the docs so why am I getting different results?
Note: Calling these using cryptopunks contract address: 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB