Moralis EVM API

REST API for EVM chain data (NFTs, tokens, balances, transactions, blocks, resolve domain) across Ethereum, Polygon, Arbitrum, Optimism, Base, Avalanche, BNB, etc.

OpenAPI Specification

moralis-evm-api-openapi.json Raw ↑
{"openapi":"3.0.0","info":{"title":"EVM API","version":"2.2"},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","x-default":"test"}},"schemas":{"tokenExplorerMetrics":{"type":"string","enum":["experiencedBuyers","tokenAge","holders","buyers","sellers","netBuyers","experiencedSellers","netExperiencedBuyers","fullyDilutedValuation","marketCap","usdPrice","usdPricePercentChange","liquidityChange","liquidityChangeUSD","volumeUsd","buyVolumeUsd","sellVolumeUsd","netVolumeUsd","securityScore","totalHolders","totalLiquidityUsd"]},"tokenExplorerTimeFrames":{"type":"string","enum":["oneMonth","tenMinutes","thirtyMinutes","oneHour","fourHours","twelveHours","oneDay","oneWeek"]},"decodedCall":{"type":"object","properties":{"signature":{"type":"string","example":"transfer(address,uint256)"},"label":{"type":"string","example":"transfer"},"type":{"type":"string","example":"function"},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"_to"},"value":{"type":"string","example":"0x1CA455A55108874A95C84620dDA2566c54D17953"},"type":{"type":"string","example":"address"}}}}}},"decodedEvent":{"type":"object","properties":{"signature":{"type":"string","example":"Transfer(address,address,uint256)"},"label":{"type":"string","example":"Transfer"},"type":{"type":"string","example":"event"},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"from"},"value":{"type":"string","example":"0x26C5011483Add49801eA8E3Ee354fE013895aCe5"},"type":{"type":"string","example":"address"}}}}}},"logCollection":{"required":["result"],"properties":{"page":{"type":"integer","description":"The current page of the result","example":"1"},"page_size":{"type":"integer","description":"The number of results per page","example":"100"},"cursor":{"type":"string","description":"The cursor to get to the next page"},"result":{"type":"array","items":{"$ref":"#/components/schemas/logEventByAddress"}}}},"ContractTokenDetails":{"type":"object","properties":{"address":{"type":"string"},"address_label":{"type":"string","nullable":true},"token_name":{"type":"string"},"token_logo":{"type":"string"},"token_symbol":{"type":"string"}},"required":["address","token_name","token_logo","token_symbol"]},"ContractSpenderDetails":{"type":"object","properties":{"address":{"type":"string"},"address_label":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"symbol":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true}},"required":["address"]},"CommonContractData":{"type":"object","properties":{"value":{"type":"string"},"value_formatted":{"type":"string","nullable":true},"token":{"$ref":"#/components/schemas/ContractTokenDetails"},"spender":{"$ref":"#/components/schemas/ContractSpenderDetails"}},"required":["value","token","spender"]},"ApprovalResponse":{"type":"object","properties":{"approvals":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalData"}}}},"RevokeResponse":{"type":"object","properties":{"revokes":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalData"}}}},"SetApprovalAllResponse":{"type":"object","properties":{"set_approvals_all":{"type":"array","items":{"$ref":"#/components/schemas/SetApprovalAllData"}}}},"SetRevokeAllResponse":{"type":"object","properties":{"set_revokes_all":{"type":"array","items":{"$ref":"#/components/schemas/SetApprovalAllData"}}}},"ApprovalData":{"type":"object","properties":{"value":{"type":"string"},"value_formatted":{"type":"string","nullable":true},"token":{"$ref":"#/components/schemas/TokenDetails"},"spender":{"$ref":"#/components/schemas/SpenderDetails"}}},"SetApprovalAllData":{"type":"object","properties":{"token":{"$ref":"#/components/schemas/TokenDetails"},"operator":{"$ref":"#/components/schemas/SpenderDetails"}}},"TokenDetails":{"type":"object","properties":{"address":{"type":"string"},"address_label":{"type":"string","nullable":true},"token_name":{"type":"string"},"token_logo":{"type":"string"},"token_symbol":{"type":"string"}}},"TransactionTypes":{"type":"array","items":{"type":"string","enum":["buy","sell","addLiquidity","removeLiquidity"]},"default":["buy","sell","addLiquidity","removeLiquidity"]},"BuySellTransactionTypes":{"type":"array","items":{"type":"string","enum":["buy","sell"]},"default":["buy","sell"]},"SpenderDetails":{"type":"object","properties":{"address":{"type":"string"},"address_label":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"symbol":{"type":"string","nullable":true},"logo":{"type":"string","nullable":true},"entity":{"type":"string","nullable":true},"entity_logo":{"type":"string","nullable":true}}},"ResolveContractInteractionResponse":{"oneOf":[{"$ref":"#/components/schemas/ApprovalResponse"},{"$ref":"#/components/schemas/RevokeResponse"},{"$ref":"#/components/schemas/SetApprovalAllResponse"},{"$ref":"#/components/schemas/SetRevokeAllResponse"}]},"logEventByAddress":{"required":["transaction_hash","address","block_timestamp","block_number","block_hash","data","topic0","topic1","topic2","topic3","transaction_index","log_index"],"properties":{"transaction_hash":{"type":"string","description":"The transaction hash","example":"0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09"},"address":{"type":"string","description":"The address of the contract","example":"0x057Ec652A4F150f7FF94f089A38008f49a0DF88e"},"block_timestamp":{"type":"string","description":"The block timestamp","example":"2021-04-02T10:07:54.000Z"},"block_number":{"type":"string","description":"The block number","example":12526958},"block_hash":{"type":"string","description":"The block hash","example":"0x0372c302e3c52e8f2e15d155e2c545e6d802e479236564af052759253b20fd86"},"data":{"type":"string","description":"The data of the log","example":"0x00000000000000000000000000000000000000000000000de05239bccd4d537400000000000000000000000000024dbc80a9f80e3d5fc0a0ee30e2693781a443"},"topic0":{"type":"string","example":"0x2caecd17d02f56fa897705dcc740da2d237c373f70686f4e0d9bd3bf0400ea7a"},"topic1":{"type":"string","example":"0x000000000000000000000000031002d15b0d0cd7c9129d6f644446368deae391"},"topic2":{"type":"string","example":"0x000000000000000000000000d25943be09f968ba740e0782a34e710100defae9"},"topic3":{"type":"string","example":null},"transaction_index":{"type":"integer","description":"The Transaction index of the log within the block","example":12},"log_index":{"type":"integer","description":"The log index of the log within the block","example":15}}},"logEvent":{"required":["transaction_hash","address","block_timestamp","block_number","block_hash","data"],"properties":{"transaction_hash":{"type":"string","description":"The transaction hash","example":"0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09"},"address":{"type":"string","description":"The address of the contract","example":"0x18F97EF6B2cbac5CA85b375b7093C4A207340d06"},"block_timestamp":{"type":"string","description":"The block timestamp","example":"2021-04-02T10:07:54.000Z"},"block_number":{"type":"string","description":"The block number","example":12526958},"block_hash":{"type":"string","description":"The block hash","example":"0x0372c302e3c52e8f2e15d155e2c545e6d802e479236564af052759253b20fd86"},"data":{"type":"object","description":"The content of the event","properties":{"from":{"type":"string","readOnly":true,"example":"0x54ff6974c715956a5049a123408bff91fbe29f01"},"to":{"type":"string","readOnly":true,"example":"0x74de5d4fcbf63e00296fd95d33236b9794016631"},"value":{"type":"string","readOnly":true,"example":"260103496340000000000"}}}}},"log":{"type":"object","required":["log_index","transaction_hash","transaction_index","address","data","topic0","block_timestamp","block_number","block_hash"],"properties":{"log_index":{"type":"string","example":"273"},"transaction_hash":{"type":"string","description":"The hash of the transaction","example":"0xdd9006489e46670e0e85d1fb88823099e7f596b08aeaac023e9da0851f26fdd5"},"transaction_index":{"type":"string","example":"204"},"address":{"type":"string","description":"The address of the contract","example":"0x3105d328c66d8d55092358cf595d54608178e9b5"},"data":{"type":"string","description":"The data of the log","example":"0x00000000000000000000000000000000000000000000000de05239bccd4d537400000000000000000000000000024dbc80a9f80e3d5fc0a0ee30e2693781a443"},"topic0":{"type":"string","example":"0x2caecd17d02f56fa897705dcc740da2d237c373f70686f4e0d9bd3bf0400ea7a"},"topic1":{"type":"string","nullable":true,"example":"0x000000000000000000000000031002d15b0d0cd7c9129d6f644446368deae391"},"topic2":{"type":"string","nullable":true,"example":"0x000000000000000000000000d25943be09f968ba740e0782a34e710100defae9"},"topic3":{"type":"string","nullable":true,"example":null},"block_timestamp":{"type":"string","description":"The timestamp of the block","example":"2021-05-07T11:08:35.000Z"},"block_number":{"type":"string","description":"The block number","example":"12386788"},"block_hash":{"type":"string","description":"The hash of the block","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"}}},"logVerbose":{"required":["log_index","transaction_hash","transaction_index","address","data","topic0","block_timestamp","block_number","block_hash","decoded_event"],"properties":{"log_index":{"type":"string","example":"273"},"transaction_hash":{"type":"string","description":"The hash of the transaction","example":"0xdd9006489e46670e0e85d1fb88823099e7f596b08aeaac023e9da0851f26fdd5"},"transaction_index":{"type":"string","example":"204"},"address":{"type":"string","description":"The address of the contract","example":"0x3105d328c66d8d55092358cf595d54608178e9b5"},"data":{"type":"string","description":"The data of the log","example":"0x00000000000000000000000000000000000000000000000de05239bccd4d537400000000000000000000000000024dbc80a9f80e3d5fc0a0ee30e2693781a443"},"topic0":{"type":"string","example":"0x2caecd17d02f56fa897705dcc740da2d237c373f70686f4e0d9bd3bf0400ea7a"},"topic1":{"type":"string","example":"0x000000000000000000000000031002d15b0d0cd7c9129d6f644446368deae391"},"topic2":{"type":"string","example":"0x000000000000000000000000d25943be09f968ba740e0782a34e710100defae9"},"topic3":{"type":"string","example":null},"block_timestamp":{"type":"string","description":"The timestamp of the block","example":"2021-05-07T11:08:35.000Z"},"block_number":{"type":"string","description":"The block number","example":"12386788"},"block_hash":{"type":"string","description":"The hash of the block","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"decoded_event":{"type":"object","description":"The decoded data of the log","$ref":"#/components/schemas/decodedEvent"}}},"logResponse":{"required":["result"],"properties":{"cursor":{"type":"string","description":"The cursor to get to the next page"},"result":{"type":"array","items":{"$ref":"#/components/schemas/log"}}}},"blockTransaction":{"type":"object","required":["hash","nonce","transaction_index","from_address","value","gas_price","input","receipt_cumulative_gas_used","receipt_gas_used","receipt_status","block_timestamp","block_number","block_hash"],"properties":{"hash":{"type":"string","description":"The hash of the transaction","example":"0x1ed85b3757a6d31d01a4d6677fc52fd3911d649a0af21fe5ca3f886b153773ed"},"nonce":{"type":"string","description":"The nonce","example":"1848059"},"transaction_index":{"type":"string","example":"108"},"from_address_entity":{"type":"string","description":"The from address entity","example":"Opensea"},"from_address_entity_logo":{"type":"string","description":"The logo of the from address entity","example":"https://opensea.io/favicon.ico"},"from_address":{"type":"string","description":"The from address","example":"0x267be1c1d684f78cb4f6a176c4911b741e4ffdc0"},"from_address_label":{"type":"string","nullable":true,"description":"The label of the from address","example":"Binance 1"},"to_address_entity":{"type":"string","description":"The to address entity","example":"Beaver Build"},"to_address_entity_logo":{"type":"string","description":"The logo of the to address entity","example":"https://beaverbuild.com/favicon.ico"},"to_address":{"type":"string","nullable":true,"description":"The to address","example":"0x003dde3494f30d861d063232c6a8c04394b686ff"},"to_address_label":{"type":"string","nullable":true,"description":"The label of the to address","example":"Binance 2"},"value":{"type":"string","description":"The value sent","example":"115580000000000000"},"gas":{"type":"string","example":"30000"},"gas_price":{"type":"string","description":"The gas price","example":"52500000000"},"input":{"type":"string","example":"0x"},"receipt_cumulative_gas_used":{"type":"string","example":"4923073"},"receipt_gas_used":{"type":"string","example":"21000"},"receipt_contract_address":{"type":"string","nullable":true,"example":null},"receipt_root":{"type":"string","nullable":true,"example":null},"receipt_status":{"type":"string","example":"1"},"block_timestamp":{"type":"string","description":"The block timestamp","example":"2021-05-07T11:08:35.000Z"},"block_number":{"type":"string","description":"The block number","example":"12386788"},"block_hash":{"type":"string","description":"The hash of the block","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"logs":{"type":"array","description":"The logs of the transaction","items":{"$ref":"#/components/schemas/log"}},"internal_transactions":{"type":"array","description":"The internal transactions of the transaction","items":{"$ref":"#/components/schemas/internalTransaction"}}}},"blockTransactionDecoded":{"type":"object","required":["hash","nonce","transaction_index","from_address","value","gas_price","input","receipt_cumulative_gas_used","receipt_gas_used","receipt_status","transaction_fee","block_timestamp","block_number","block_hash","logs","decoded_call"],"properties":{"hash":{"type":"string","description":"The hash of the transaction","example":"0x1ed85b3757a6d31d01a4d6677fc52fd3911d649a0af21fe5ca3f886b153773ed"},"nonce":{"type":"string","description":"The nonce","example":"1848059"},"transaction_index":{"type":"string","example":"108"},"from_address_entity":{"type":"string","description":"The from address entity","example":"Opensea"},"from_address_entity_logo":{"type":"string","description":"The logo of the from address entity","example":"https://opensea.io/favicon.ico"},"from_address":{"type":"string","description":"The from address","example":"0x267be1c1d684f78cb4f6a176c4911b741e4ffdc0"},"from_address_label":{"type":"string","nullable":true,"description":"The label of the from address","example":"Binance 1"},"to_address_entity":{"type":"string","description":"The to address entity","example":"Beaver Build"},"to_address_entity_logo":{"type":"string","description":"The logo of the to address entity","example":"https://beaverbuild.com/favicon.ico"},"to_address":{"type":"string","description":"The to address","example":"0x003dde3494f30d861d063232c6a8c04394b686ff"},"to_address_label":{"type":"string","nullable":true,"description":"The label of the to address","example":"Binance 2"},"value":{"type":"string","description":"The value sent","example":"115580000000000000"},"gas":{"type":"string","example":"30000"},"gas_price":{"type":"string","description":"The gas price","example":"52500000000"},"input":{"type":"string","example":"0x"},"receipt_cumulative_gas_used":{"type":"string","example":"4923073"},"receipt_gas_used":{"type":"string","example":"21000"},"receipt_contract_address":{"type":"string","example":null},"receipt_root":{"type":"string","example":null},"receipt_status":{"type":"string","example":"1"},"transaction_fee":{"type":"string","example":"0.00034"},"block_timestamp":{"type":"string","description":"The block timestamp","example":"2021-05-07T11:08:35.000Z"},"block_number":{"type":"string","description":"The block number","example":"12386788"},"block_hash":{"type":"string","description":"The hash of the block","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"logs":{"type":"array","description":"The logs of the transaction","items":{"$ref":"#/components/schemas/logVerbose"}},"decoded_call":{"type":"object","description":"The decoded data of the transaction","$ref":"#/components/schemas/decodedCall"}}},"block":{"type":"object","required":["timestamp","number","hash","parent_hash","nonce","sha3_uncles","logs_bloom","transactions_root","state_root","receipts_root","miner","difficulty","total_difficulty","size","extra_data","gas_limit","gas_used","transaction_count","transactions"],"properties":{"timestamp":{"type":"string","description":"The block timestamp","example":"2021-05-07T11:08:35.000Z"},"number":{"type":"string","description":"The block number","example":12386788},"hash":{"type":"string","description":"The block hash","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"parent_hash":{"type":"string","description":"The block hash of the parent block","example":"0x011d1fc45839de975cc55d758943f9f1d204f80a90eb631f3bf064b80d53e045"},"nonce":{"type":"string","description":"The nonce","example":"0xedeb2d8fd2b2bdec"},"sha3_uncles":{"type":"string","example":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"},"logs_bloom":{"type":"string","example":"0xdde5fc46c5d8bcbd58207bc9f267bf43298e23791a326ff02661e99790da9996b3e0dd912c0b8202d389d282c56e4d11eb2dec4898a32b6b165f1f4cae6aa0079498eab50293f3b8defbf6af11bb75f0408a563ddfc26a3323d1ff5f9849e95d5f034d88a757ddea032c75c00708c9ff34d2207f997cc7d93fd1fa160a6bfaf62a54e31f9fe67ab95752106ba9d185bfdc9b6dc3e17427f844ee74e5c09b17b83ad6e8fc7360f5c7c3e4e1939e77a6374bee57d1fa6b2322b11ad56ad0398302de9b26d6fbfe414aa416bff141fad9d4af6aea19322e47595e342cd377403f417dfd396ab5f151095a5535f51cbc34a40ce9648927b7d1d72ab9daf253e31daf"},"transactions_root":{"type":"string","example":"0xe4c7bf3aff7ad07f9e80d57f7189f0252592fee6321c2a9bd9b09b6ce0690d27"},"state_root":{"type":"string","example":"0x49e3bfe7b618e27fde8fa08884803a8458b502c6534af69873a3cc926a7c724b"},"receipts_root":{"type":"string","example":"0x7cf43d7e837284f036cf92c56973f5e27bdd253ca46168fa195a6b07fa719f23"},"miner":{"type":"string","description":"The address of the miner","example":"0xea674fdde714fd979de3edf0f56aa9716b898ec8"},"difficulty":{"type":"string","description":"The difficulty of the block","example":"7253857437305950"},"total_difficulty":{"type":"string","description":"The total difficulty","example":"24325637817906576196890"},"size":{"type":"string","description":"The block size","example":"61271"},"extra_data":{"type":"string","example":"0x65746865726d696e652d6575726f70652d7765737433"},"gas_limit":{"type":"string","description":"The gas limit","example":"14977947"},"gas_used":{"type":"string","description":"The gas used","example":"14964688"},"transaction_count":{"type":"string","description":"The number of transactions in the block","example":"252"},"transactions":{"type":"array","description":"The transactions in the block","items":{"$ref":"#/components/schemas/blockTransaction"}}}},"blockTransactionVerbose":{"type":"object","required":["hash","nonce","transaction_index","from_address","value","gas_price","input","receipt_cumulative_gas_used","receipt_gas_used","receipt_status","transaction_fee","block_timestamp","block_number","block_hash","logs","decoded_call"],"properties":{"hash":{"type":"string","description":"The hash of the transaction","example":"0x1ed85b3757a6d31d01a4d6677fc52fd3911d649a0af21fe5ca3f886b153773ed"},"nonce":{"type":"string","description":"The nonce","example":"1848059"},"transaction_index":{"type":"string","example":"108"},"from_address_entity":{"type":"string","description":"The from address entity","example":"Opensea"},"from_address_entity_logo":{"type":"string","description":"The logo of the from address entity","example":"https://opensea.io/favicon.ico"},"from_address":{"type":"string","description":"The from address","example":"0x267be1c1d684f78cb4f6a176c4911b741e4ffdc0"},"from_address_label":{"type":"string","nullable":true,"description":"The label of the from address","example":"Binance 1"},"to_address_entity":{"type":"string","description":"The to address entity","example":"Beaver Build"},"to_address_entity_logo":{"type":"string","description":"The logo of the to address entity","example":"https://beaverbuild.com/favicon.ico"},"to_address":{"type":"string","description":"The to address","example":"0x003dde3494f30d861d063232c6a8c04394b686ff"},"to_address_label":{"type":"string","nullable":true,"description":"The label of the to address","example":"Binance 2"},"value":{"type":"string","description":"The value sent","example":"115580000000000000"},"gas":{"type":"string","example":"30000"},"gas_price":{"type":"string","description":"The gas price","example":"52500000000"},"input":{"type":"string","example":"0x"},"receipt_cumulative_gas_used":{"type":"string","example":"4923073"},"receipt_gas_used":{"type":"string","example":"21000"},"receipt_contract_address":{"type":"string","example":null},"receipt_root":{"type":"string","example":null},"receipt_status":{"type":"string","example":"1"},"transaction_fee":{"type":"string","example":"0.00034"},"block_timestamp":{"type":"string","description":"The block timestamp","example":"2021-05-07T11:08:35.000Z"},"block_number":{"type":"string","description":"The block number","example":"12386788"},"block_hash":{"type":"string","description":"The hash of the block","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"logs":{"type":"array","description":"The logs of the transaction","items":{"$ref":"#/components/schemas/logVerbose"}},"decoded_call":{"type":"object","description":"The decoded data of the transaction","$ref":"#/components/schemas/decodedCall"}}},"blockDate":{"type":"object","required":["date","block","timestamp"],"properties":{"date":{"type":"string","description":"The date of the block","example":"2020-01-01T00:00:00+00:00"},"block":{"type":"number","description":"The block number","example":9193266},"timestamp":{"type":"number","description":"The timestamp of the block","example":1577836811},"block_timestamp":{"type":"string","description":"The timestamp of the block","example":"2019-12-31T23:59:45.000Z"},"hash":{"type":"string","description":"The block hash","example":"0x9b559aef7ea858608c2e554246fe4a24287e7aeeb976848df2b9a2531f4b9171"},"parent_hash":{"type":"string","description":"The block hash of the parent block","example":"0x011d1fc45839de975cc55d758943f9f1d204f80a90eb631f3bf064b80d53e045"}}},"RunContractDto":{"required":["abi"],"properties":{"abi":{"type":"array","items":{"type":"object"},"description":"The contract ABI","example":[]},"params":{"type":"object","description":"The params for the given function","example":{}}}},"tokenItem":{"properties":{"token_address":{"type":"string","description":"The contract address","example":"0x06012c8cf97bead5deae237070f9587f8e7a266d"},"token_id":{"type":"string","description":"The id of the token","example":100}}},"GetMultipleNftsDto":{"required":["tokens"],"properties":{"tokens":{"type":"array","maxItems":25,"description":"The tokens to be fetched (max 25 tokens)","example":[{"token_address":"0xa4991609c508b6d4fb7156426db0bd49fe298bd8","token_id":"12"},{"token_address":"0x3c64dc415ebb4690d1df2b6216148c8de6dd29f7","token_id":"1"},{"token_address":"0x3c64dc415ebb4690d1df2b6216148c8de6dd29f7","token_id":"200"}],"items":{"$ref":"#/components/schemas/tokenItem"}},"normalizeMetadata":{"type":"boolean","description":"Should normalized metadata be returned?","example":false},"media_items":{"type":"boolean","description":"Should preview media data be returned?","example":false}}},"tokenPriceItem":{"required":["token_address"],"properties":{"token_address":{"type":"string","description":"The contract address","example":"0x06012c8cf97bead5deae237070f9587f8e7a266d"},"exchange":{"type":"string","description":"The exchange","example":"uniswapv3"},"to_block":{"type":"string","description":"The block number","example":12526958}}},"GetMultipleTokenPricesDto":{"required":["tokens"],"properties":{"tokens":{"type":"array","maxItems":30,"description":"The tokens to be fetched","example":[{"token_address":"0xdac17f958d2ee523a2206206994597c13d831ec7"},{"token_address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},{"token_address":"0xae7ab96520de3a18e5e111b5eaab095312d7fe84","exchange":"uniswapv2","to_block":"16314545"},{"token_address":"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}],"items":{"$ref":"#/components/schemas/tokenPriceItem"}}}},"tokenAndChainItem":{"required":["chain","tokenAddress"],"properties":{"chain":{"type":"string","description":"The chain to query","$ref":"#/components/schemas/chainList"},"tokenAddress":{"type":"string","description":"The token address","example":"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}}},"GetMultipleTokenAnalyticsDto":{"required":["tokens"],"properties":{"tokens":{"type":"array","maxItems":30,"description":"The tokens to be fetched","example":[{"chain":"0x1","tokenAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7"},{"chain":"solana","tokenAddress":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"items":{"$ref":"#/components/schemas/tokenAndChainItem"}}}},"GetTimeSeriesTokenAnalyticsDto":{"required":["tokens"],"properties":{"tokens":{"type":"array","maxItems":30,"description":"The tokens to be fetched","example":[{"chain":"0x1","tokenAddress":"0xdac17f958d2ee523a2206206994597c13d831ec7"},{"chain":"solana","tokenAddress":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"items":{"$ref":"#/components/schemas/tokenAndChainItem"}}}},"transactionCollection":{"required":["result"],"properties":{"cursor":{"type":"string","description":"The cursor to get to the next page"},"page":{"type":"integer","description":"The current page of the result","example":"2"},"page_size":{"type":"integer","description":"The number of results per page","example":"100"},"result":{"type":"array","items":{"$ref":"#/components/schemas/transaction"}}}},"transactionCollectionVerbose":{"required":["result"],"properties":{"cursor":{"type":"string","description":"The cursor to get to the next page"},"page":{"type":"integer","description":"The current page of the result","example":"2"},"page_size":{"type":"integer","description":"The number of results per page","example":"100"},"result":{"type":"array","items":{"$ref":"#/components/schemas/blockTransactionVerbose"}}}},"defiPositionDetails":{"properties":{"fee_tier":{"type":"number","nullable":true,"description":"The fee tier of the position"},"range_tnd":{"type":"number","nullable":true,"description":"The range trend of the position"},"reserves":{"type":"array","nullable":true,"items":{"type":"string"},"description":"The reserves of the position"},"current_price":{"type":"number","nullable":true,"description":"The current price of the position"},"is_in_range":{"type":"boolean","nullable":true,"description":"Whether the position is in range"},"price_upper":{"type":"number","nullable":true,"description":"The upper price of the range"},"price_lower":{"type":"number","nullable":true,"description":"The lower price of the range"},"price_label":{"type":"string","nullable":true,"description":"The price label"},"liquidity":{"type":"number","nullable":true,"description":"The liquidity of the position"},"range_start":{"type":"number","nullable":true,"description":"The start of the range"},"pool_address":{"type":"string","nullable":true,"description":"The address of the pool"},"position_key":{"type":"string","nullable":true,"description":"The key of the position"},"nft_metadata":{"type":"object","nullable":true,"additionalProperties":true,"description":"Metadata of the NFT"},"asset_standard":{"type":"string","nullable":true,"description":"The standard of the asset"},"apy":{"type":"number","nullable":true,"description":"The annual percentage yield"},"is_debt":{"type":"boolean","nullable":true,"description":"Whether the position is a debt"},"is_variable_debt":{"type":"boolean","nullable":true,"description":"Whether the position is a variable debt"},"is_stable_debt":{"type":"boolean","nullable":true,"description":"Whether the position is a stable debt"},"shares":{"type":"string","nullable":true,"description":"The shares of the position"},"reserve0":{"type":"string","nullable":true,"description":"The first reserve of the position"},"reserve1":{"type":"string","nullable":true,"description":"The second reserve of the position"},"factory":{"type":"string","description":"The factory of the position"},"pair":{"type":"string","nullable":true,"description":"The pair of the position"},"share_of_pool":{"type":"number","nullable":true,"description":"The share of the pool"},"no_price_available":{"type":"boolean","nullable":true,"description":"Whether the price is available"},"shares_in_strategy":{"type":"string","nullable":true,"description":"The shares in the strategy"},"strategy_address":{"type":"string","nullable":true,"description":"The address of the strategy"},"base_type":{"type":"string","nullable":true,"description":"The base type of the position"},"health_factor":{"type":"number","nullable":true,"description":"The health factor of the position in percent"},"is_enabled_collateral":{"type":"boolean","nullable":true,"description":"Whether the supply position is enabled as collateral"}}},"defiTokenBalance":{"required":["name","decimals","symbol","contract_address","token_type","balance","balance_formatted"],"properties":{"token_type":{"type":"string","description":"The token type (supply/defi/borrow token)","example":"defi-token"},"name":{"type":"string","description":"The name of the token","example":"Wrapped Ether"},"symbol":{"type":"string","description":"The symbol of the token","example":"WETH"},"contract_address":{"type":"string","description":"The contract address","example":"0x06012c8cf97bead5deae237070f9587f8e7a266d"},"decimals":{"type":"number","description":"The decimals of the token","example":"18"},"logo":{"type":"string","description":"The logo of the token","example":"https://cdn.moralis.io/tokens/0x0000000000085d4780b73119b644ae5ecd22b376.png"},"thumbnail":{"type":"string","description":"The thumbnail of the token","example":"https://cdn.moralis.io/tokens/0x0000000000085d4780b73119b644ae5ecd22b376.png"},"balance":{"type":"string","description":"The balance of the token","example":"1000000"},"balance_formatted":{"type":"string","description":"The balance of the token formatted","example":"1.000000"},"usd_price":{"type":"number","description":"The USD price of the token","example":"1000000"},"usd_value":{"type":"number","description":"The USD value of the token","example":"1000000"}}},"defiPositionSummaryResponse":{"properties":{"protocol_name":{"type":"string","description":"The name of the protocol","example":"Uniswap v2"},"protocol_id":{"type":"string","description":"The id of the protocol","example":"uniswap-v2"},"protocol_url":{"type":"string","description":"The url of the protocol","example":"https://app.uniswap.org/pools/v2"},"protocol_logo":{"type":"string","description":"The logo of the protocol","example":"https://cdn.moralis.io/defi/uniswap.png"},"position":{"type":"object","description":"The position of the protocol","$ref":"#/components/schemas/defiProtocolPosition"}}},"defiProtocolBalance":{"required":["total_usd_value","positions"],"properties":{"total_usd_value":{"type":"number","description":"The total USD value of the protocol","example":"1000000"},"total_unclaimed_usd_value":{"type":"number","description":"The total unclaimed USD value of the protocol","example":"1000000"},"positions":{"type":"number","description":"The number of positions","example":"100"}}},"defiProtocolPosition":{"required":["label","tokens","balance_usd","total_unclaimed_usd_value"],"properties":{"label":{"type":"string","description":"The label of the position","example":"liquidity"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/defiTokenBalance"}},"address":{"type":"string","description":"The address of the position","example":"0x06012c8cf97bead5deae237070f9587f8e7a266d"},"balance_usd":{"type":"number","description":"The balance in USD","example":"1000000"},"total_unclaimed_usd_value":{"type":"number","description":"The total unclaimed USD value of the position","example":"1000000"},"position_details":{"type":"object","description":"The details of the position","$ref":"#/components/schemas/defiPositionDetails"}}},"defiProtocolSummary":{"properties":{"protocol_name":{"type":"string","description":"The name of the protocol","example":"Uniswap"},"protocol_id":{"type":"string","description":"The id of the protocol","example":"uniswap"},"

# --- truncated at 32 KB (362 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/moralis/refs/heads/main/openapi/moralis-evm-api-openapi.json