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

Moralis.EvmApi.token.getWalletApprovals does not exist on evmapi.token #1236

Open
3 tasks done
shihao-guo opened this issue Oct 8, 2024 · 0 comments
Open
3 tasks done

Comments

@shihao-guo
Copy link

New Bug Report

Checklist

Issue Description

Moralis.EvmApi.token.getWalletApprovals does not exist on evmapi.token, this is the current method list

    readonly token: {
        getTokenAllowance: (request: GetTokenAllowanceRequest) => Promise<GetTokenAllowanceResponseAdapter>;
        getTokenMetadataBySymbol: (request: GetTokenMetadataBySymbolRequest) => Promise<GetTokenMetadataBySymbolResponseAdapter>;
        getTokenMetadata: (request: GetTokenMetadataRequest) => Promise<GetTokenMetadataResponseAdapter>;
        getTokenPrice: (request: GetTokenPriceRequest) => Promise<GetTokenPriceResponseAdapter>;
        getTokenTransfers: (request: GetTokenTransfersRequest) => Promise<GetTokenTransfersResponseAdapter>;
        getWalletTokenBalances: (request: GetWalletTokenBalancesRequest) => Promise<GetWalletTokenBalancesResponseAdapter>;
        getWalletTokenTransfers: (request: GetWalletTokenTransfersRequest) => Promise<GetWalletTokenTransfersResponseAdapter>;
        getMultipleTokenPrices: (request: GetMultipleTokenPricesOperationRequest, body: GetMultipleTokenPricesOperationBody) => Promise<ResponseAdapter<GetMultipleTokenPricesOperationResponse, GetMultipleTokenPricesOperationResponseJSON>>;
        getTokenOwners: (request: GetTokenOwnersOperationRequest) => Promise<PaginatedResponseV3Adapter<GetTokenOwnersOperationResponse, GetTokenOwnersOperationResponseJSON>>;
        getTokenStats: (request: GetTokenStatsOperationRequest) => Promise<ResponseAdapter<GetTokenStatsOperationResponse, GetTokenStatsOperationResponseJSON>>;
        getTopProfitableWalletPerToken: (request: GetTopProfitableWalletPerTokenOperationRequest) => Promise<ResponseAdapter<GetTopProfitableWalletPerTokenOperationResponse, GetTopProfitableWalletPerTokenOperationResponseJSON>>;
    };

Steps + code to reproduce

import Moralis from 'moralis';
Moralis.EvmApi.token.getWalletApprovals

Actual Outcome

Typescript compile error

error TS2339: Property 'getWalletApprovals' does not exist on type '{ getTokenAllowance: (request: GetTokenAllowanceRequest) => Promise<GetTokenAllowanceResponseAdapter>; ... 9 more ...; getTopProfitableWalletPerToken: (request: GetTopProfitableWalletPerTokenOperationRequest) => Promise<...>; }'.

Expected Outcome

Expect the method to exist as indicated here https://docs.moralis.com/web3-data-api/evm/reference/wallet-api/get-wallet-token-approvals?address=0xcB1C1FdE09f811B294172696404e88E658659905&chain=eth

Environment

[email protected]
[email protected]
[email protected]
@moralisweb3/[email protected]
@moralisweb3/[email protected]

Server

  • Moralis server version: 2.2

Client

  • Moralis SDK version: 2.27.2
  • Operating system: MacOS
  • Browser: Chrome

Logs

error TS2339: Property 'getWalletApprovals' does not exist on type '{ getTokenAllowance: (request: GetTokenAllowanceRequest) => Promise<GetTokenAllowanceResponseAdapter>; ... 9 more ...; getTopProfitableWalletPerToken: (request: GetTopProfitableWalletPerTokenOperationRequest) => Promise<...>; }'.

4 Moralis.EvmApi.token.getWalletApprovals
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

No branches or pull requests

3 participants
@shihao-guo and others