You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `transactions` array is a series of [ox](https://oxlib.sh) 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:
84
+
- Approvals will have the `approval` action specified. You can perform approvals with `sendAndConfirmTransaction`, then proceed to the next transaction.
85
+
- All transactions are assumed to be executed by the `sender` address, regardless of which chain they are on. The final transaction will use the `receiver` as the recipient address.
86
+
- If an `expiration` timestamp is provided, all transactions must be executed before that time to guarantee successful execution at the specified price.
87
+
88
+
NOTE: To get the status of each non-approval transaction, use `Bridge.status` rather than checking for transaction inclusion. This function will ensure full completion of the transfer.
89
+
90
+
You can include arbitrary data to be included on any webhooks and status responses with the `purchaseData` option:
91
+
92
+
```ts
93
+
const quote =awaitBridge.Transfer.prepare({
94
+
chainId: 1,
95
+
tokenAddress: NATIVE_TOKEN_ADDRESS,
96
+
amount: toWei("0.01"),
97
+
sender: "0x...",
98
+
receiver: "0x...",
99
+
purchaseData: {
100
+
reference: "payment-123",
101
+
metadata: {
102
+
note: "Transfer to Alice"
103
+
}
104
+
},
105
+
client: thirdwebClient,
106
+
});
107
+
```
108
+
109
+
## Fees
110
+
There may be fees associated with the transfer. These fees are paid by the `feePayer` address, which defaults to the `sender` address. You can specify a different address with the `feePayer` option. If you do not specify an option or explicitly specify `sender`, the fees will be added to the input amount. If you specify the `receiver` as the fee payer the fees will be subtracted from the destination amount.
111
+
112
+
For example, if you were to request a transfer with `feePayer` set to `receiver`:
0 commit comments