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

Error when getting transaction history #144

Closed
viktor111 opened this issue Jul 15, 2022 · 1 comment · Fixed by #145
Closed

Error when getting transaction history #144

viktor111 opened this issue Jul 15, 2022 · 1 comment · Fixed by #145

Comments

@viktor111
Copy link

Im trying to get transaction history for address to work but get this error.

Error: Invalid category param: category must be a non-empty list containing the possible values: {external, internal, token, erc20, erc721, erc1155, specialnft}

code:

async getTransactionsAlchemy(address: string) {
        const alchemyWeb3 = createAlchemyWeb3(EthereumConstants.ALCHEMY_GOERLI_PROVIDER_URL);
        const transactions = await alchemyWeb3.alchemy.getAssetTransfers({ fromBlock: "0x0", fromAddress: address, });
        return transactions;
    }
@thebrianchen
Copy link
Member

@viktor111 Thanks for catching this! You'll need to also specify a category field, as of the new changelog entry from June 27. I'll submit an update to reflect this change in this library as well.

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

Successfully merging a pull request may close this issue.

2 participants