Solana.SPL.Token.MultiSig (Solana.SPL v0.1.1) View Source

Functions for dealing with multi-signature accounts.

Multi-signature accounts can used in place of any single owner/delegate accounts in any token instruction that require an owner/delegate to be present.

Link to this section Summary

Types

t()

Multi-signature account metadata.

Functions

The size of a serialized multi-signature account.

Creates the instructions to initialize a multisignature account.

Link to this section Types

Specs

t() :: %Solana.SPL.Token.MultiSig{
  initialized?: boolean(),
  signers: [Solana.key()],
  signers_required: byte(),
  signers_total: byte()
}

Multi-signature account metadata.

Link to this section Functions

The size of a serialized multi-signature account.

Specs

from_account_info(info :: map()) :: t() | :error

Translates the result of a Solana.RPC.Request.get_account_info/2 into a Solana.SPL.Token.MultiSig.t/0.

Creates the instructions to initialize a multisignature account.

These instructions must be included in the same Transaction.

Options

  • :payer - Required. The account that will pay for the multisig creation

  • :balance - Required. The lamport balance the multisig account should have

  • :signers - Required. The full set of signers; should be a list of 11 members or fewer

  • :signatures_required - Required. number of signatures required; should be between 1 and 11 (inclusive)

  • :new - Required. public key for the new multisig account