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
Name | Type |
---|---|
core? | Core |
Returns
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
Name | Type |
---|---|
getNativeBalance | (request : GetNativeBalanceRequest ) => Promise <GetNativeBalanceResponseAdapter > |
getNativeBalancesForAddresses | (request : GetNativeBalancesForAddressesRequest ) => Promise <GetNativeBalancesForAddressesResponseAdapter > |
Inherited from
ClientEvmApi.balance
block
• Readonly
block: Object
Type declaration
Name | Type |
---|---|
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
Name | Type |
---|---|
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
Name | Type |
---|---|
getContractEvents | (request : GetContractEventsRequest ) => Promise <GetContractEventsResponseAdapter > |
getContractLogs | (request : GetContractLogsRequest ) => Promise <GetContractLogsResponseAdapter > |
Inherited from
ClientEvmApi.events
ipfs
• Readonly
ipfs: Object
Type declaration
Name | Type |
---|---|
uploadFolder | (request : UploadFolderRequest ) => Promise <UploadFolderResponseAdapter > |
Inherited from
ClientEvmApi.ipfs
marketData
• Readonly
marketData: Object
Type declaration
Name | Type |
---|---|
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
Name | Type |
---|---|
getContractNFTs | (request : GetContractNFTsRequest ) => Promise <GetContractNFTsResponseAdapter > |
getMultipleNFTs | (request : GetMultipleNFTsRequest ) => Promise <GetMultipleNFTsResponseAdapter > |
getNFTCollectionStats | (request : GetNFTCollectionStatsOperationRequest ) => Promise <ResponseAdapter <EvmNftCollectionStat , EvmNftCollectionStatJSON >> |
getNFTContractMetadata | (request : GetNFTContractMetadataRequest ) => Promise <null | GetNFTContractMetadataResponseAdapter > |
getNFTContractSalePrices | (request : GetNFTContractSalePricesOperationRequest ) => Promise <ResponseAdapter <EvmSoldPrice , EvmSoldPriceJSON >> |
getNFTContractTransfers | (request : GetNFTContractTransfersRequest ) => Promise <GetNFTContractTransfersResponseAdapter > |
getNFTLowestPrice | (request : GetNFTLowestPriceRequest ) => Promise <null | GetNFTLowestPriceResponseAdapter > |
getNFTMetadata | (request : GetNFTMetadataRequest ) => Promise <null | GetNFTMetadataResponseAdapter > |
getNFTOwners | (request : GetNFTOwnersRequest ) => Promise <GetNFTOwnersResponseAdapter > |
getNFTSalePrices | (request : GetNFTSalePricesOperationRequest ) => Promise <ResponseAdapter <EvmSoldPrice , EvmSoldPriceJSON >> |
getNFTTokenIdOwners | (request : GetNFTTokenIdOwnersRequest ) => Promise <GetNFTTokenIdOwnersResponseAdapter > |
getNFTTokenStats | (request : GetNFTTokenStatsOperationRequest ) => Promise <ResponseAdapter <EvmNftTokenStat , EvmNftTokenStatJSON >> |
getNFTTrades | (request : GetNFTTradesOperationRequest ) => Promise <PaginatedResponseV3Adapter <EvmTradeCollection , EvmTradeCollectionJSON >> |
getNFTTradesByToken | (request : GetNFTTradesByTokenOperationRequest ) => 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
Name | Type |
---|---|
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
Name | Type |
---|---|
getMultipleTokenPrices | (request : GetMultipleTokenPricesOperationRequest , body : GetMultipleTokenPricesOperationBody ) => Promise <ResponseAdapter <GetMultipleTokenPricesOperationResponse , GetMultipleTokenPricesOperationResponseJSON >> |
getTokenAllowance | (request : GetTokenAllowanceRequest ) => Promise <GetTokenAllowanceResponseAdapter > |
getTokenMetadata | (request : GetTokenMetadataRequest ) => Promise <GetTokenMetadataResponseAdapter > |
getTokenMetadataBySymbol | (request : GetTokenMetadataBySymbolRequest ) => Promise <GetTokenMetadataBySymbolResponseAdapter > |
getTokenOwners | (request : GetTokenOwnersOperationRequest ) => Promise <PaginatedResponseV3Adapter <EvmErc20TokenOwnerCollection , EvmErc20TokenOwnerCollectionJSON >> |
getTokenPrice | (request : GetTokenPriceRequest ) => Promise <GetTokenPriceResponseAdapter > |
getTokenStats | (request : GetTokenStatsOperationRequest ) => Promise <ResponseAdapter <EvmErc20TokenStat , EvmErc20TokenStatJSON >> |
getTokenTransfers | (request : GetTokenTransfersRequest ) => Promise <GetTokenTransfersResponseAdapter > |
getTopProfitableWalletPerToken | (request : GetTopProfitableWalletPerTokenOperationRequest ) => Promise <ResponseAdapter <EvmWalletTopProfitableWalletPerTokenResponse , EvmWalletTopProfitableWalletPerTokenResponseJSON >> |
getWalletTokenBalances | (request : GetWalletTokenBalancesRequest ) => Promise <GetWalletTokenBalancesResponseAdapter > |
getWalletTokenTransfers | (request : GetWalletTokenTransfersRequest ) => Promise <GetWalletTokenTransfersResponseAdapter > |
Inherited from
ClientEvmApi.token
transaction
• Readonly
transaction: Object
Type declaration
Name | Type |
---|---|
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
Name | Type |
---|---|
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
Name | Type |
---|---|
getDefiPositionsByProtocol | (request : GetDefiPositionsByProtocolOperationRequest ) => Promise <ResponseAdapter <EvmGetDefiPositionsByProtocol , EvmGetDefiPositionsByProtocolJSON >> |
getDefiPositionsSummary | (request : GetDefiPositionsSummaryOperationRequest ) => Promise <ResponseAdapter <GetDefiPositionsSummaryOperationResponse , GetDefiPositionsSummaryOperationResponseJSON >> |
getDefiSummary | (request : GetDefiSummaryOperationRequest ) => Promise <ResponseAdapter <EvmWalletDefiSummary , EvmWalletDefiSummaryJSON >> |
getWalletActiveChains | (request : GetWalletActiveChainsOperationRequest ) => Promise <ResponseAdapter <EvmWalletActiveChains , EvmWalletActiveChainsJSON >> |
getWalletApprovals | (request : GetWalletApprovalsOperationRequest ) => Promise <PaginatedResponseV3Adapter <EvmWalletApprovals , EvmWalletApprovalsJSON >> |
getWalletHistory | (request : GetWalletHistoryOperationRequest ) => Promise <PaginatedResponseV3Adapter <EvmWalletHistory , EvmWalletHistoryJSON >> |
getWalletNetWorth | (request : GetWalletNetWorthOperationRequest ) => Promise <ResponseAdapter <EvmNetWorthResult , EvmNetWorthResultJSON >> |
getWalletProfitability | (request : GetWalletProfitabilityOperationRequest ) => Promise <ResponseAdapter <EvmWalletProfitabilityResponse , EvmWalletProfitabilityResponseJSON >> |
getWalletProfitabilitySummary | (request : GetWalletProfitabilitySummaryOperationRequest ) => Promise <ResponseAdapter <EvmGetWalletProfitabilitySummary , EvmGetWalletProfitabilitySummaryJSON >> |
getWalletStats | (request : GetWalletStatsOperationRequest ) => Promise <ResponseAdapter <EvmWalletStat , EvmWalletStatJSON >> |
getWalletTokenBalancesPrice | (request : GetWalletTokenBalancesPriceOperationRequest ) => Promise <PaginatedResponseV3Adapter <EvmErc20TokenBalanceWithPriceResult , EvmErc20TokenBalanceWithPriceResultJSON >> |
Inherited from
ClientEvmApi.wallets