depositWETH
Convert ETH to WETH by depositing ETH into the WETH contract on a specified blockchain chain. Input chain ID and ETH amount to receive WETH tokens.
Instructions
Deposit ETH into the WETH contract, receiving WETH in return
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount of ETH to deposit (in ether) | |
chainId | Yes | Chain ID to deposit on |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "Amount of ETH to deposit (in ether)",
"type": "number"
},
"chainId": {
"description": "Chain ID to deposit on",
"type": "number"
}
},
"required": [
"chainId",
"amount"
],
"type": "object"
}