How to use dfx to call a function whose parameter is of type Blob

I want to test the function wallet_call in cycle wallet:

// Call Forwarding
  wallet_call: (record {
    canister: principal;
    method_name: text;
    args: blob;
    cycles: nat64;
  }) -> (WalletResultCall);

the args is blob type, and I need to convert args to blob. So how to pack a bunch of different types(like Principal, Text, Nat and so on) of parameters into blob

I find same info here:

Use didcto encode the params as a blob. We did something similar with our wrapped cycles repo

1 Like

If it help, I can build you a UI to construct candid blobs?

1 Like

Great!

1 Like