Contract 3d19336d8b3c5e20a8208a95445736dda55bf4aa780bd0fcd71c66f06b8bdf48

← Back to Index 📥 Download WASM

Meta

cliver 23.4.1#a152ec2488c25136808ad28277c24b3a0765ffd4
rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.92.0

Instances

  • CD45PQFHSIUMIC4MVZXCQ2RD6REKXJMEHWRN56TWT3C4DV2U4DHVJRZH

Interface

Execute multiple contract invocations with optimized auth

For single-wallet operations (transfer + swap + fee), only ONE passkey signature is required because the caller's auth covers all sub-invocations.

For multi-wallet operations (ARBBOT style), separate auth is required only when from_addr differs from caller.

Arguments:

  • caller: The wallet/account calling Router.exec() - must sign
  • invocations: Vec of (contract, method, args, can_fail)
fn exec(
    env: soroban_sdk::Env,
    caller: soroban_sdk::Address,
    invocations: soroban_sdk::Vec<
        (
            soroban_sdk::Address,
            soroban_sdk::Symbol,
            soroban_sdk::Vec,
            bool,
        ),
    >,
) -> soroban_sdk::Vec

Imports

WebAssembly Text (WAT) ▶