Skip to main content

Class: EvmApi

moralis-monorepo / @moralisweb3/evm-api / EvmApi

Class: EvmApi

@moralisweb3/evm-api.EvmApi

Hierarchy

  • ClientEvmApi

    EvmApi

Table of contents

Methods

Properties

Methods

create

Static create(core?): EvmApi

Parameters

NameType
core?Core

Returns

EvmApi


setup

setup(): void

Returns

void

Overrides

ClientEvmApi.setup


start

start(): void

Returns

void

Overrides

ClientEvmApi.start

Properties

moduleName

Static Readonly moduleName: "evmApi"


balance

Readonly balance: Object

Type declaration

NameType
getNativeBalance(request: GetNativeBalanceRequest) => Promise<GetNativeBalanceResponseAdapter>
getNativeBalancesForAddresses(request: GetNativeBalancesForAddressesRequest) => Promise<GetNativeBalancesForAddressesResponseAdapter>

Inherited from

ClientEvmApi.balance


block

Readonly block: Object

Type declaration

NameType
getBlock(request: GetBlockRequest) => Promise<null | GetBlockResponseAdapter>
getBlockStats(request: GetBlockStatsOperationRequest) => Promise<ResponseAdapter<EvmBlockTokenStat, EvmBlockTokenStatJSON>>
getDateToBlock(request: GetDateToBlockRequest) => Promise<GetDateToBlockResponseAdapter>

Inherited from

ClientEvmApi.block


defi

Readonly defi: Object

Type declaration

NameType
getPairAddress(request: GetPairAddressRequest) => Promise<GetPairAddressResponseAdapter>
getPairPrice(request: GetPairPriceOperationRequest) => Promise<ResponseAdapter<EvmGetPairPrice, EvmGetPairPriceJSON>>
getPairReserves(request: GetPairReservesRequest) => Promise<GetPairReservesResponseAdapter>

Inherited from

ClientEvmApi.defi


events

Readonly events: Object

Type declaration

NameType
getContractEvents(request: GetContractEventsRequest) => Promise<GetContractEventsResponseAdapter>
getContractLogs(request: GetContractLogsRequest) => Promise<GetContractLogsResponseAdapter>

Inherited from

ClientEvmApi.events


ipfs

Readonly ipfs: Object

Type declaration

NameType
uploadFolder(request: UploadFolderRequest) => Promise<UploadFolderResponseAdapter>

Inherited from

ClientEvmApi.ipfs


marketData

Readonly marketData: Object

Type declaration

NameType
getHottestNFTCollectionsByTradingVolume() => Promise<ResponseAdapter<GetHottestNFTCollectionsByTradingVolumeOperationResponse, GetHottestNFTCollectionsByTradingVolumeOperationResponseJSON>>
getTopCryptoCurrenciesByMarketCap() => Promise<ResponseAdapter<GetTopCryptoCurrenciesByMarketCapOperationResponse, GetTopCryptoCurrenciesByMarketCapOperationResponseJSON>>
getTopCryptoCurrenciesByTradingVolume() => Promise<ResponseAdapter<GetTopCryptoCurrenciesByTradingVolumeOperationResponse, GetTopCryptoCurrenciesByTradingVolumeOperationResponseJSON>>
getTopERC20TokensByMarketCap() => Promise<ResponseAdapter<GetTopERC20TokensByMarketCapOperationResponse, GetTopERC20TokensByMarketCapOperationResponseJSON>>
getTopERC20TokensByPriceMovers() => Promise<ResponseAdapter<EvmMarketDataERC20TokensByPriceMovers, EvmMarketDataERC20TokensByPriceMoversJSON>>
getTopNFTCollectionsByMarketCap() => Promise<ResponseAdapter<GetTopNFTCollectionsByMarketCapOperationResponse, GetTopNFTCollectionsByMarketCapOperationResponseJSON>>

Inherited from

ClientEvmApi.marketData


nft

Readonly nft: Object

Type declaration

NameType
getContractNFTs(request: GetContractNFTsRequest) => Promise<GetContractNFTsResponseAdapter>
getMultipleNFTs(request: GetMultipleNFTsRequest) => Promise<GetMultipleNFTsResponseAdapter>
getNFTCollectionStats(request: GetNFTCollectionStatsOperationRequest) => Promise<ResponseAdapter<EvmNftCollectionStat, EvmNftCollectionStatJSON>>
getNFTContractMetadata(request: GetNFTContractMetadataRequest) => Promise<null | GetNFTContractMetadataResponseAdapter>
getNFTContractTransfers(request: GetNFTContractTransfersRequest) => Promise<GetNFTContractTransfersResponseAdapter>
getNFTLowestPrice(request: GetNFTLowestPriceRequest) => Promise<null | GetNFTLowestPriceResponseAdapter>
getNFTMetadata(request: GetNFTMetadataRequest) => Promise<null | GetNFTMetadataResponseAdapter>
getNFTOwners(request: GetNFTOwnersRequest) => Promise<GetNFTOwnersResponseAdapter>
getNFTTokenIdOwners(request: GetNFTTokenIdOwnersRequest) => Promise<GetNFTTokenIdOwnersResponseAdapter>
getNFTTokenStats(request: GetNFTTokenStatsOperationRequest) => Promise<ResponseAdapter<EvmNftTokenStat, EvmNftTokenStatJSON>>
getNFTTrades(request: GetNFTTradesOperationRequest) => Promise<PaginatedResponseV3Adapter<EvmTradeCollection, EvmTradeCollectionJSON>>
getNFTTransfers(request: GetNFTTransfersRequest) => Promise<GetNFTTransfersResponseAdapter>
getNFTTransfersByBlock(request: GetNFTTransfersByBlockRequest) => Promise<GetNFTTransfersByBlockResponseAdapter>
getNFTTransfersFromToBlock(request: GetNFTTransfersFromToBlockRequest) => Promise<GetNFTTransfersFromToBlockResponseAdapter>
getWalletNFTCollections(request: GetWalletNFTCollectionsRequest) => Promise<GetWalletNFTCollectionsResponseAdapter>
getWalletNFTTransfers(request: GetWalletNFTTransfersRequest) => Promise<GetWalletNFTTransfersResponseAdapter>
getWalletNFTs(request: GetWalletNFTsRequest) => Promise<GetWalletNFTsResponseAdapter>
reSyncMetadata(request: ReSyncMetadataRequest) => Promise<ReSyncMetadataResponseAdapter>
syncNFTContract(request: SyncNFTContractRequest) => Promise<SyncNFTContractResponseAdapter>

Inherited from

ClientEvmApi.nft


resolve

Readonly resolve: Object

Type declaration

NameType
resolveAddress(request: ResolveAddressRequest) => Promise<null | ResolveAddressResponseAdapter>
resolveAddressToDomain(request: ResolveAddressToDomainOperationRequest) => Promise<ResponseAdapter<EvmUnstoppableDomain, EvmUnstoppableDomainJSON>>
resolveDomain(request: ResolveDomainRequest) => Promise<null | ResolveDomainResponseAdapter>
resolveENSDomain(request: ResolveENSDomainRequest) => Promise<null | ResolveENSDomainResponseAdapter>

Inherited from

ClientEvmApi.resolve


token

Readonly token: Object

Type declaration

NameType
getMultipleTokenPrices(request: GetMultipleTokenPricesOperationRequest, body: GetMultipleTokenPricesOperationBody) => Promise<ResponseAdapter<GetMultipleTokenPricesOperationResponse, GetMultipleTokenPricesOperationResponseJSON>>
getTokenAllowance(request: GetTokenAllowanceRequest) => Promise<GetTokenAllowanceResponseAdapter>
getTokenMetadata(request: GetTokenMetadataRequest) => Promise<GetTokenMetadataResponseAdapter>
getTokenMetadataBySymbol(request: GetTokenMetadataBySymbolRequest) => Promise<GetTokenMetadataBySymbolResponseAdapter>
getTokenPrice(request: GetTokenPriceRequest) => Promise<GetTokenPriceResponseAdapter>
getTokenStats(request: GetTokenStatsOperationRequest) => Promise<ResponseAdapter<EvmErc20TokenStat, EvmErc20TokenStatJSON>>
getTokenTransfers(request: GetTokenTransfersRequest) => Promise<GetTokenTransfersResponseAdapter>
getWalletTokenBalances(request: GetWalletTokenBalancesRequest) => Promise<GetWalletTokenBalancesResponseAdapter>
getWalletTokenTransfers(request: GetWalletTokenTransfersRequest) => Promise<GetWalletTokenTransfersResponseAdapter>

Inherited from

ClientEvmApi.token


transaction

Readonly transaction: Object

Type declaration

NameType
getInternalTransactions(request: GetInternalTransactionsRequest) => Promise<GetInternalTransactionsResponseAdapter>
getTransaction(request: GetTransactionRequest) => Promise<null | GetTransactionResponseAdapter>
getTransactionVerbose(request: GetTransactionVerboseRequest) => Promise<null | GetTransactionVerboseResponseAdapter>
getWalletTransactions(request: GetWalletTransactionsRequest) => Promise<GetWalletTransactionsResponseAdapter>
getWalletTransactionsVerbose(request: GetWalletTransactionsVerboseRequest) => Promise<GetWalletTransactionsVerboseResponseAdapter>

Inherited from

ClientEvmApi.transaction


utils

Readonly utils: Object

Type declaration

NameType
endpointWeights() => Promise<ResponseAdapter<EndpointWeightsOperationResponse, EndpointWeightsOperationResponseJSON>>
reviewContracts(request: ReviewContractsOperationRequest, body: ReviewContractsOperationBody) => Promise<ResponseAdapter<EvmReviewContracts, EvmReviewContractsJSON>>
runContractFunction(request: RunContractFunctionRequest) => Promise<RunContractFunctionResponseAdapter>
web3ApiVersion() => Promise<ResponseAdapter<EvmWeb3version, EvmWeb3versionJSON>>

Inherited from

ClientEvmApi.utils


wallets

Readonly wallets: Object

Type declaration

NameType
getWalletActiveChains(request: GetWalletActiveChainsOperationRequest) => Promise<ResponseAdapter<EvmWalletActiveChains, EvmWalletActiveChainsJSON>>
getWalletNetWorth(request: GetWalletNetWorthOperationRequest) => Promise<ResponseAdapter<EvmNetWorthResult, EvmNetWorthResultJSON>>
getWalletStats(request: GetWalletStatsOperationRequest) => Promise<ResponseAdapter<EvmWalletStat, EvmWalletStatJSON>>
getWalletTokenBalancesPrice(request: GetWalletTokenBalancesPriceOperationRequest) => Promise<PaginatedResponseV3Adapter<EvmErc20TokenBalanceWithPriceResult, EvmErc20TokenBalanceWithPriceResultJSON>>

Inherited from

ClientEvmApi.wallets