The SDK returns an unsigned transaction object with the following fields:
plain textinterface IPeanutUnsignedTransaction { from?: string to?: string data?: string value?: BigInt }
Do you want to convert this to a transaction type that can be passed into an EthersV5 signer to send the transaction? You can use the following utils function:
plain textconst peanutTransaction // get this from any prepare function const convertedTransaction = peanutToEthersV5(peanutTransaction)
Or the other way around:
plain textconst ethersV5transaction const convertedTransaction = ethersV5ToPeanutTx(ethersV5transaction)