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
description="Easily understandable data API to query blockchain data."
30
-
iconUrl={<BracesIcon />}
30
+
iconUrl={<BracesIcon/>}
31
31
/>
32
32
33
33
<FeatureCard
@@ -58,7 +58,7 @@ Insight is a tool that lets you retrieve blockchain data from any EVM chain, enr
58
58
59
59
## Video Tutorials
60
60
61
-
<Grid>
61
+
<divclassName="grid gap-4 lg:grid-cols-2">
62
62
63
63
<ArticleCard
64
64
title="Insight Introduction"
@@ -72,7 +72,7 @@ Insight is a tool that lets you retrieve blockchain data from any EVM chain, enr
72
72
href="https://m.youtube.com/watch?v=HvqewXLVRig"
73
73
/>
74
74
75
-
</Grid>
75
+
</div>
76
76
77
77
## Supported Chains
78
78
Insight is supported on select EVM compatible chains. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist?service=insight).
You can create a payment with either the input amount (sell) or output amount (buy) of a token. Most examples focus on buying a specific amount, but you can just as easily sell a specific amount of tokens.
To generate a sale, use the same inputs as `Buy.prepare`, but with the `Sell.prepare` function. The following function will sell 50 USDT on Arbitrum. The returned `destinationAmount` will indicate how much USDC on Optimism you'll receive after fees.
38
+
To generate a sale, use the same inputs as `Buy.prepare`, but with the `Sell.prepare` function. The following function will sell 50 USDT on Arbitrum. The returned `destinationAmount` will indicate how much USDC on Optimism you'll receive after fees.
47
39
48
-
```typescript
49
-
import { Bridge } from"thirdweb";
40
+
```typescript
41
+
import { Bridge } from"thirdweb";
50
42
51
-
const preparedQuote =awaitBridge.Sell.prepare({
52
-
originChainId: 42161,
53
-
originTokenAddress: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", // USDT on Arbitrum
54
-
destinationChainId: 10,
55
-
destinationTokenAddress: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85", // USDC on Optimism
56
-
amount: 50_000_000n, // 50 USDT in wei (USDT has 6 decimals)
0 commit comments