prepare
Prepares a finalized Universal Bridge quote for the provided sell request with transaction data. This function will return everything quote does, with the addition of a series of prepared transactions and the associated expiration timestamp.
This will return a quote that might look like:
The transactions array is a series of ox EIP-1559 transactions that must be executed one after the other in order to fulfill the complete route. There are a few things to keep in mind when executing these transactions:
Approvals and other preparation transactions are not included in the transactions array.
All transactions are assumed to be executed by the
senderaddress, regardless of which chain they are on. The final transaction will use thereceiveras the recipient address.If an
expirationtimestamp is provided, all transactions must be executed before that time to guarantee successful execution at the specified price.
NOTE: To get the status of each transaction, use Bridge.status rather than checking for transaction inclusion. This function will ensure full bridge completion on the destination chain.
You can access this functions input and output types with Sell.prepare.Options and Sell.prepare.Result , respectively.