UNPKG

417 BJavaScriptView Raw
1import { encodeAddress } from './encode.js';
2import { createKeyMulti } from './keyMulti.js';
3/**
4 * @name encodeMultiAddress
5 * @summary Creates a multisig address.
6 * @description
7 * Creates a Substrate multisig address based on the input address and the required threshold.
8 */
9export function encodeMultiAddress(who, threshold, ss58Format) {
10 return encodeAddress(createKeyMulti(who, threshold), ss58Format);
11}