PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@substrate/txwrapper-substrate/lib/methods/utility

Просмотр файла: asDerivative.d.ts

import { Args, BaseTxInfo, OptionsWithMeta, UnsignedTransaction } from '@substrate/txwrapper-core';
export interface UtilityAsDerivativeArgs extends Args {
    /**
     * The sub-account index of the origin.
     */
    index: number | string;
    /**
     * The call to be dispatched from pseudonymous account derived from the origin.
     * To take advantage of txwrapper methods, this could be an array of
     * UnsignedTransaction.method.
     */
    call: {
        callIndex?: string;
        args?: string;
    } | string;
}
/**
 * Send a call through an indexed pseudonym of the sender. In other words, send a call through a
 * derivative account of the signer. The signer will need to have an already existing index derived
 * account in order to succesfully execute this call.
 *
 * Each account has 2**16 possible "pseudonyms" (alternative account IDs) and these can be
 * stacked. This can be useful as a key management tool, where you need multiple distinct accounts
 * (e.g. as controllers for many staking accounts), but where it's perfectly fine to have each of
 * them controlled by the same underlying keypair.
 *
 * Derivative accounts are, for the purposes of proxy filtering considered exactly
 * the same as the oigin and are thus hampered with the origin's filters.
 *
 * NOTE: If you need to ensure that any account-based filtering is ignored (i.e.
 * because you expect `proxy` to have been used prior in the call stack and you do not want
 * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
 * in the Multisig pallet instead.
 *
 * NOTE: Prior to version *12, this was called `as_limited_sub`.
 *
 * The dispatch origin for this call must be _Signed_.
 *
 * @param args
 * @param info
 * @param options
 */
export declare function asDerivative(args: UtilityAsDerivativeArgs, info: BaseTxInfo, options: OptionsWithMeta): UnsignedTransaction;

Выполнить команду


Для локальной разработки. Не используйте в интернете!