openapi: 3.2.0 info: contact: name: Blockdaemon email: info@blockdaemon.com description: The Blockdaemon DeFi API provides a single interface to a multitude of DeFi projects and blockchains title: Blockdaemon DeFi Weth API version: 1.0.0 x-logo: altText: Blockdaemon logo backgroundColor: '#fafafa' url: https://storage.googleapis.com/blockdaemon-app-static-images/marketing/PNG/dark-logo.png servers: - url: https://svc.blockdaemon.com security: - ApiKeyAuth: [] tags: - name: weth paths: /defi/v1/weth/getbalance: get: tags: - weth summary: Get Balance description: 'Retrieves the current WETH balance for a specified wallet address across multiple networks. It accepts optional parameters (RPC, chain ID, chain symbol) to target a specific network, making it ideal for portfolio tracking and wallet management. > 💡 **Compute Unit Value:** `45` (Fixed)' operationId: wethGetbalance parameters: - name: chainId in: query required: false schema: type: string description: The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains). enum: - '1' - '11155111' - '56' - '97' - '43114' - '43113' - '137' - '80002' - '25' - '338' - '42161' - '250' - '4002' - '10' - '11155420' - '8453' - '84532' - '324' - '300' example: '1' description: The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains). - name: chainSymbol in: query required: false schema: type: string description: The abbreviated chain name for queries or transactions. example: ETH description: The abbreviated chain name for queries or transactions. - name: address in: query required: true schema: type: string description: The public address to get the balance of. example: '0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402' description: The public address to get the balance of. - name: vsCurrencies in: query required: false schema: type: string description: A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies. example: usd,eur,gbp description: A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies. responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer msg: type: string data: type: object example: status: 200 msg: success data: balance: '462462170932810524189278' prices: inr: - '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2': '312980.5979501781' usd: - '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2': '3621.388291112711' eur: - '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2': '3082.250487885014' x-bd-cu: '45' x-bd-cu-type: fixed x-internal: false /defi/v1/weth/historical/logs: get: tags: - weth summary: Historical Logs description: 'Returns a chronological history of WETH deposit and withdrawal events within a specified block range, including contract addresses, event topics, parameters, and block metadata. Users can filter by event type, chain ID, chain symbol, and block range, enabling robust auditing and analysis of historical token activity. > 💡 **Compute Unit Value:** `70` (Fixed)' operationId: wethHistoricalLogs parameters: - name: chainId in: query required: false schema: type: string description: The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains). enum: - '1' example: '1' description: The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains). - name: chainSymbol in: query required: false schema: type: string description: The abbreviated chain name for queries or transactions. example: ETH description: The abbreviated chain name for queries or transactions. - name: startBlock in: query required: false schema: type: string description: Starting block of the range. By default, latestBlock - 100. example: '100000' description: Starting block of the range. By default, latestBlock - 100. - name: endBlock in: query required: false schema: type: string description: Last block of the range. By default, it is the latestBlock. example: '100010' description: Last block of the range. By default, it is the latestBlock. - name: type in: query required: true schema: type: string description: 'Type of WETH event: Deposit or Withdrawal.' enum: - Approval - Transfer example: Approval description: 'Type of WETH event: Deposit or Withdrawal.' - name: page in: query required: false schema: type: string description: The page number to fetch. By default, 1. example: '1' description: The page number to fetch. By default, 1. responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer msg: type: string data: type: object example: status: 200 msg: success data: logs: - address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' topics: - '0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c' - '0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d' params: dst: '0x7a250d5630b4cf539739df2c5dacb4c659f2488d' wad: '100000000000000000' data: '0x000000000000000000000000000000000000000000000000016345785d8a0000' blockNumber: '17320569' blockHash: '0xcbc13d3439e115dcb6203a45d82da137b7f546286224f29248192a7e428e29d6' timeStamp: '1684828271' gasPrice: '101893509354' gasUsed: '142805' logIndex: '0' transactionHash: '0xa36d80f70960af4a7f67145670e589795edd3fda2c3334eb7c6fce962f06d99e' transactionIndex: '4' x-bd-cu: '70' x-bd-cu-type: fixed x-internal: false components: securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key description: '`X-API-Key: ` header must be set to authenticate API requests.You can create tokens in the "Configure" tab of your API access area at https://app.blockdaemon.com.' externalDocs: description: Blockdaemon DeFi documentation url: http://www.blockdaemon.com/api/defi x-provenance: method: searched source: https://docs.blockdaemon.com/reference harvested: '2026-10-14' tool: harvest-readme-openapi.py note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored. assembled_from: - https://docs.blockdaemon.com/reference/aagetpaymasterdata.md - https://docs.blockdaemon.com/reference/aagetsignaturemessage.md - https://docs.blockdaemon.com/reference/aagetuserops.md - https://docs.blockdaemon.com/reference/aasenduserops.md - https://docs.blockdaemon.com/reference/accountv1allowance.md - https://docs.blockdaemon.com/reference/accountv1portfolio.md - https://docs.blockdaemon.com/reference/bridgeaddliquidity.md - https://docs.blockdaemon.com/reference/bridgegetliquidity.md - https://docs.blockdaemon.com/reference/bridgegetroute.md - https://docs.blockdaemon.com/reference/bridgegetsignature.md - https://docs.blockdaemon.com/reference/bridgegetsupportedchains.md - https://docs.blockdaemon.com/reference/bridgegetsupportedtokens.md - https://docs.blockdaemon.com/reference/bridgeprice.md - https://docs.blockdaemon.com/reference/bridgequotes.md - https://docs.blockdaemon.com/reference/bridgeremoveliquidity.md - https://docs.blockdaemon.com/reference/bridgeswap.md - https://docs.blockdaemon.com/reference/bridgeswaps.md - https://docs.blockdaemon.com/reference/bridgeswapwithapproval.md - https://docs.blockdaemon.com/reference/bridgetokens.md - https://docs.blockdaemon.com/reference/bridgetransactions.md - https://docs.blockdaemon.com/reference/bridgeunlock.md - https://docs.blockdaemon.com/reference/chaincreateaccount.md - https://docs.blockdaemon.com/reference/chaincreatefeetransaction.md - https://docs.blockdaemon.com/reference/chaindecodetransaction.md - https://docs.blockdaemon.com/reference/chainestimategas.md - https://docs.blockdaemon.com/reference/chaingenericsmartcontractmethod.md - https://docs.blockdaemon.com/reference/chaingetapprovaldata.md - https://docs.blockdaemon.com/reference/chaingetbalance.md - https://docs.blockdaemon.com/reference/chaingetblock.md - https://docs.blockdaemon.com/reference/chaingetevents.md - https://docs.blockdaemon.com/reference/chaingetgasfees.md - https://docs.blockdaemon.com/reference/chaingetgasprice.md - https://docs.blockdaemon.com/reference/chaingethistoricalrewards.md - https://docs.blockdaemon.com/reference/chaingetlatestledger.md - https://docs.blockdaemon.com/reference/chaingetstakepositions.md - https://docs.blockdaemon.com/reference/chaingetstorage.md - https://docs.blockdaemon.com/reference/chaingetsuibalance.md - https://docs.blockdaemon.com/reference/chaingettokenaddress.md - https://docs.blockdaemon.com/reference/chaingettransaction.md - https://docs.blockdaemon.com/reference/chaingetusertransactions.md - https://docs.blockdaemon.com/reference/chainregistercoin.md - https://docs.blockdaemon.com/reference/chainsendtransaction.md - https://docs.blockdaemon.com/reference/chainsimulatetransaction.md - https://docs.blockdaemon.com/reference/dexaddliquidity.md - https://docs.blockdaemon.com/reference/dexcancelorder.md - https://docs.blockdaemon.com/reference/dexcreateorder.md - https://docs.blockdaemon.com/reference/dexfillorder.md - https://docs.blockdaemon.com/reference/dexgetactiveamount.md - https://docs.blockdaemon.com/reference/dexgethistoricaltimeseries.md - https://docs.blockdaemon.com/reference/dexgethistoricaltransactions.md - https://docs.blockdaemon.com/reference/dexgetindividualposition.md - https://docs.blockdaemon.com/reference/dexgetliquiditybytick.md - https://docs.blockdaemon.com/reference/dexgetliquiditysources.md - https://docs.blockdaemon.com/reference/dexgetmakerorders.md - https://docs.blockdaemon.com/reference/dexgetorders.md - https://docs.blockdaemon.com/reference/dexgetpool.md - https://docs.blockdaemon.com/reference/dexgetpoolchartdata.md - https://docs.blockdaemon.com/reference/dexgetpoolindividualliquidity.md - https://docs.blockdaemon.com/reference/dexgetpoolliquidity.md - https://docs.blockdaemon.com/reference/dexgetpooltradedata.md - https://docs.blockdaemon.com/reference/dexgetroute.md - https://docs.blockdaemon.com/reference/dexgettokenidprice.md - https://docs.blockdaemon.com/reference/dexgettokenliquidity.md - https://docs.blockdaemon.com/reference/dexgetuserliquidity.md - https://docs.blockdaemon.com/reference/dexgetusertokenids.md - https://docs.blockdaemon.com/reference/dexgetwalletposition.md - https://docs.blockdaemon.com/reference/dexprice.md - https://docs.blockdaemon.com/reference/dexpublishorder.md - https://docs.blockdaemon.com/reference/dexquotes.md - https://docs.blockdaemon.com/reference/dexremoveliquidity.md - https://docs.blockdaemon.com/reference/dexswap.md - https://docs.blockdaemon.com/reference/dexswaps.md - https://docs.blockdaemon.com/reference/dexswapwithapproval.md - https://docs.blockdaemon.com/reference/fungibletokenapprove.md - https://docs.blockdaemon.com/reference/fungibletokenconvertbasetokentowraptoken.md - https://docs.blockdaemon.com/reference/fungibletokenconvertwraptokentobasetoken.md - https://docs.blockdaemon.com/reference/fungibletokengettokendetails.md - https://docs.blockdaemon.com/reference/fungibletokengettokensupply.md - https://docs.blockdaemon.com/reference/fungibletokengetuserbalance.md - https://docs.blockdaemon.com/reference/fungibletokenhistoricallogs.md - https://docs.blockdaemon.com/reference/fungibletokenhistoricaltransactions.md - https://docs.blockdaemon.com/reference/fungibletokenhistoricalusertransactions.md - https://docs.blockdaemon.com/reference/fungibletokenhistoricalweth.md - https://docs.blockdaemon.com/reference/fungibletokentransfer.md - https://docs.blockdaemon.com/reference/fungibletokentransferfrom.md - https://docs.blockdaemon.com/reference/getapimetadatav2.md - https://docs.blockdaemon.com/reference/lendborrowallow.md - https://docs.blockdaemon.com/reference/lendborrowborrow.md - https://docs.blockdaemon.com/reference/lendborrowbundleactions.md - https://docs.blockdaemon.com/reference/lendborrowclaimrewards.md - https://docs.blockdaemon.com/reference/lendborrowdeposit.md - https://docs.blockdaemon.com/reference/lendborrowdepositwithapproval.md - https://docs.blockdaemon.com/reference/lendborrowentermarket.md - https://docs.blockdaemon.com/reference/lendborrowentermarketstatus.md - https://docs.blockdaemon.com/reference/lendborrowexitisolationmode.md - https://docs.blockdaemon.com/reference/lendborrowexitmarket.md - https://docs.blockdaemon.com/reference/lendborrowgetassetinfo.md - https://docs.blockdaemon.com/reference/lendborrowgetclaimedrewards.md - https://docs.blockdaemon.com/reference/lendborrowgetgovernordata.md - https://docs.blockdaemon.com/reference/lendborrowgetmaxamounts.md - https://docs.blockdaemon.com/reference/lendborrowgetuseraccountdata.md - https://docs.blockdaemon.com/reference/lendborrowmigrate.md - https://docs.blockdaemon.com/reference/lendborrowpool.md - https://docs.blockdaemon.com/reference/lendborrowpools.md - https://docs.blockdaemon.com/reference/lendborrowrepay.md - https://docs.blockdaemon.com/reference/lendborrowsetuseremode.md - https://docs.blockdaemon.com/reference/lendborrowtransfer.md - https://docs.blockdaemon.com/reference/lendborrowuserpositions.md - https://docs.blockdaemon.com/reference/lendborrowwithdraw.md - https://docs.blockdaemon.com/reference/lendborrowwithdrawwithapproval.md - https://docs.blockdaemon.com/reference/liquidstakingapprovewithdrawal.md - https://docs.blockdaemon.com/reference/liquidstakingburn.md - https://docs.blockdaemon.com/reference/liquidstakingclaim.md - https://docs.blockdaemon.com/reference/liquidstakingdecreaseallowance.md - https://docs.blockdaemon.com/reference/liquidstakingdelegate.md - https://docs.blockdaemon.com/reference/liquidstakinggetallowance.md - https://docs.blockdaemon.com/reference/liquidstakinggetapr.md - https://docs.blockdaemon.com/reference/liquidstakinggetprotocolapr.md - https://docs.blockdaemon.com/reference/liquidstakinggetrewards.md - https://docs.blockdaemon.com/reference/liquidstakinggetstake.md - https://docs.blockdaemon.com/reference/liquidstakinggetwithdrawalrequests.md - https://docs.blockdaemon.com/reference/liquidstakinggetwithdrawalstatus.md - https://docs.blockdaemon.com/reference/liquidstakingincreaseallowance.md - https://docs.blockdaemon.com/reference/liquidstakingmint.md - https://docs.blockdaemon.com/reference/liquidstakingrequestwithdrawal.md - https://docs.blockdaemon.com/reference/liquidstakingrestake.md - https://docs.blockdaemon.com/reference/liquidstakingstake.md - https://docs.blockdaemon.com/reference/liquidstakingundelegate.md - https://docs.blockdaemon.com/reference/liquidstakingunwrap.md - https://docs.blockdaemon.com/reference/liquidstakingwrap.md - https://docs.blockdaemon.com/reference/nftgetbalance.md - https://docs.blockdaemon.com/reference/nftgetmetadata.md - https://docs.blockdaemon.com/reference/nftgetowner.md - https://docs.blockdaemon.com/reference/nfthistoricallogs.md - https://docs.blockdaemon.com/reference/nfthistoricaltransactions.md - https://docs.blockdaemon.com/reference/oraclegetprice.md - https://docs.blockdaemon.com/reference/oraclegetsupportedtokens.md - https://docs.blockdaemon.com/reference/rwaburn.md - https://docs.blockdaemon.com/reference/rwafreeze.md - https://docs.blockdaemon.com/reference/rwagetallassets.md - https://docs.blockdaemon.com/reference/rwagetasset.md - https://docs.blockdaemon.com/reference/rwagetownerassets.md - https://docs.blockdaemon.com/reference/rwaissue.md - https://docs.blockdaemon.com/reference/rwaregister.md - https://docs.blockdaemon.com/reference/rwasettrustline.md - https://docs.blockdaemon.com/reference/rwatransfer.md - https://docs.blockdaemon.com/reference/rwaunfreeze.md - https://docs.blockdaemon.com/reference/stablecoingetprice.md - https://docs.blockdaemon.com/reference/syntheticdepositpeggedtoken.md - https://docs.blockdaemon.com/reference/syntheticgetprice.md - https://docs.blockdaemon.com/reference/syntheticwithdrawpeggedtoken.md - https://docs.blockdaemon.com/reference/wethgetbalance.md - https://docs.blockdaemon.com/reference/wethhistoricallogs.md - https://docs.blockdaemon.com/reference/yieldaggregatoraddliquidity.md - https://docs.blockdaemon.com/reference/yieldaggregatordepositpool.md - https://docs.blockdaemon.com/reference/yieldaggregatordepositvault.md - https://docs.blockdaemon.com/reference/yieldaggregatorgetbalance.md - https://docs.blockdaemon.com/reference/yieldaggregatorgetmarketdata.md - https://docs.blockdaemon.com/reference/yieldaggregatorgetmarkets.md - https://docs.blockdaemon.com/reference/yieldaggregatorgetmarkettokens.md - https://docs.blockdaemon.com/reference/yieldaggregatorgetvaults.md - https://docs.blockdaemon.com/reference/yieldaggregatormint.md - https://docs.blockdaemon.com/reference/yieldaggregatorredeem.md - https://docs.blockdaemon.com/reference/yieldaggregatorremoveliquidity.md - https://docs.blockdaemon.com/reference/yieldaggregatorswap.md - https://docs.blockdaemon.com/reference/yieldaggregatortransferliquidity.md - https://docs.blockdaemon.com/reference/yieldaggregatorwithdrawpool.md - https://docs.blockdaemon.com/reference/yieldaggregatorwithdrawvault.md merge: pages: 168 deduped: 167 conflicts_kept_first: 0