Spending transactions

To build a spending transaction, you must have the following:

  • A Cardano signing key generated during wallet activation;
  • A Wallet token name -- it is the signing key's corresponding public key hash;
  • Beacon token UTxO.

The spending transaction must:

  • Locate the Wallet token -- its Minting policy and Token name(-s). Multiple token names can occur if the wallet was activated several times on different devices, for instance;
  • Have the token returned to the wallet address as the first output;
  • Be signed by the Cardano signing key generated during activation;
  • Have withdrawal with the checkSig script as validator and Signature i j as redeemer, where i is the number of output with the wallet token and j is the index of the signatory corresponding to that token;
  • Any assets sent to the recipients in the outputs.

The transaction must be balanced.