Here is the transaction I am trying to send using web3.eth.sendTransaction:
{
data: "0x11a861a700...."
from: "0x8ccb1711ea5562596f146608fdcf27ccf0d5429c"
gas: "0x6b540"
gasPrice: "0xaf16b1bb3"
nonce: "0x0"
to: "0x7113dd99c79aff93d54cfa4b2885576535a132de"
value: "0x38d7ea4c68000"
}
It keeps getting back with the following message:
MetaMask - RPC Error: Invalid parameters: must provide an Ethereum address.
Is there some kind of other form this TX should be fed to web3?
edit. This transaction was generated by https://1inch.exchange/#/api using the following GET request:
https://api.1inch.exchange/v1.1/swap?fromTokenSymbol=ETH&toTokenSymbol=BAT&amount=2000000000000000&fromAddress=0x8ccb1711ea5562596f146608fdcf27ccf0d5ZYZc&slippage=1&disableEstimate=true
edit. XYZ addresses are just placeholders.
0x8ccb1711ea5562596f146608fdcf27ccf0d54XYZnor0x7113dd99c79aff93d54cfa4b2885576535a13XYZis a valid Ethereum address, so what exactly are you expecting??? – goodvibration Oct 06 '20 at 09:05Web3.utils.toChecksumAddress(...). – goodvibration Oct 06 '20 at 09:16toAddressvalue in your GET request. – goodvibration Oct 06 '20 at 09:17