Exercise 13

Objectives: interacting with a live chain, aleph-client, multisig

Content: We are going to perform a multisig action programmatically.

  1. Create a new Rust crate within repository, e.g. multisig.

  2. Add aleph-client as a dependency (you can provide a relative path pointing to aleph-client directory).

  3. Familiarize yourself with aleph_client::pallets::multisig module.

  4. Implement a short scenario: in a group of 4 accounts, with threshold 3, perform signature aggregation to dispatch some transfer on behalf of the group.

  5. Launch live local chain.

  6. Run your program. Verify in UI that every step is properly announced with corresponding events.

Since you need to work with some accounts, the easiest way it to use //Alice, //Bob, //0, //1, etc., which should be already visible in the UI.

For the accounts and threshold used in your program, create a multisig account in your PolkadotUI wallet and endow it with some tokens. Otherwise, even if there are enough approvals, the call will not be successful.

Similarly, every approving account should have some available balance (for transaction fees).

You can check howcliaincreates aConnectioninstance, which is essential for any chain interaction withaleph-client.

References:

Last updated

Was this helpful?