QueryBridgeParams Configuration for the bridge query
Promise resolving to BridgeQueryResult or null if received amount cannot be determined
Error if bridge plugin does not return a received amount
const result = await queryBridge({
  fromChain: optimism,
  toChain: base,
  amount: BigInt("1000000"), // 1 USDC
  account: myMultichainAccount,
  tokenMapping: {
    deployments: [
      { chainId: 10, address: "0x123..." },
      { chainId: 8453, address: "0x456..." }
    ],
    on: (chainId) => deployments.find(d => d.chainId === chainId).address
  }
});
if (result) {
  console.log(`Expected to receive: ${result.receivedAtDestination}`);
  console.log(`Expected duration: ${result.bridgingDurationExpectedMs}ms`);
}
Queries a bridge operation to determine expected outcomes and fees