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
Copy file name to clipboardExpand all lines: examples/03-multichain-bridge-dapp/README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,49 @@ Optional: copy `.env.example` to `.env`. Set `RPC_<NETWORK_ID>` (e.g. `RPC_ETHER
53
53
-**Validation:**`isValidAddress(receiver, networkInfo(destNetworkId).family)` (shared-utils) handles all families.
54
54
-**Pools:** Not every token is enabled on every lane. PoolInfo shows support and rate limits; unsupported lanes show "Lane Not Supported."
55
55
56
+
## SDK Inspector
57
+
58
+
The app includes an SDK Inspector panel (toggle via the `</>` button) that visualizes every CCIP SDK call in real time, grouped into four phases: **Setup**, **Fee Estimation**, **Transfer**, and **Tracking**. Each entry shows the method name, arguments, result, latency, and an educational annotation explaining _what_ the call does and _why_ it happens at that point in the flow.
59
+
60
+
The inspector is **optional instrumentation** layered on top of the SDK calls -- it does not change the SDK's behavior or API surface. If you are reading the source code to learn how to build your own frontend, here is how to navigate it:
61
+
62
+
### Reading through the inspector code
63
+
64
+
SDK calls in hooks like `useTransfer.ts` are wrapped in `logSDKCall()`:
65
+
66
+
```ts
67
+
// The wrapper adds inspector instrumentation around the SDK call.
68
+
// The actual SDK usage is always the second argument (the lambda).
() =>chain.getTokenInfo(tokenAddress) // <-- this is the SDK call
72
+
);
73
+
```
74
+
75
+
To extract the SDK pattern, read the lambda. The config object above it (`method`, `phase`, `displayArgs`, `annotation`) is purely for the inspector UI.
76
+
77
+
### What you can ignore
78
+
79
+
| File / directory | Purpose | Needed for your app? |
0 commit comments