I'm trying to use the data returned from 1inch's Swap API endpoint, to essentially perform a swap from a smart contract instead of from an EOA. The old oneSplit contract provided an easy way to do this, but that's since been deprecated. I'm using ether's to send a transaction object returned from the API like this one. Is it possible to somehow send this transaction in solidity, from a smart contract? (i.e when the contract receives flash loaned assets) Thanks!
"tx": {
"from": "string",
"to": "string",
"data": "string",
"value": "string",
"gasPrice": "string",
"gas": "string"
}