UNPKG

@pokt-network/pocket-js

Version:

Pocket-js core package with the main functionalities to interact with the Pocket Network.

43 lines (42 loc) 1.49 kB
/// <reference types="node" /> import { TxMsg } from "./tx-msg"; /** * Model representing a MsgNodeStake to stake as an Node in the Pocket Network */ export declare class MsgProtoNodeStakeTx extends TxMsg { readonly KEY: string; readonly AMINO_KEY: string; readonly DEFAULT_PORT: string; readonly DEFAULT_PROTOCOL: string; readonly pubKey: Buffer; readonly outputAddress: Buffer; readonly chains: string[]; readonly amount: string; readonly serviceURL: URL; /** * @param {Buffer} pubKey - Public key * @param {Buffer} outputAddress - Output address when unstaking * @param {string[]} chains - String array containing a list of blockchain hashes * @param {string} amount - Amount to be sent, has to be a valid number and cannot be lesser than 0 * @param {URL} serviceURL - Service node URL, needs to be https:// */ constructor(pubKey: Buffer, outputAddress: Buffer, chains: string[], amount: string, serviceURL: URL); /** * Returns the parsed serviceURL * @returns {string} - Parsed serviceURL * @memberof MsgNodeStake */ private getParsedServiceURL; /** * Converts an Msg Object to StdSignDoc * @returns {object} - Msg type key value. * @memberof MsgNodeStake */ toStdSignDocMsgObj(): object; /** * Converts an Msg Object to StdSignDoc * @returns {any} - Msg type key value. * @memberof MsgNodeStake */ toStdTxMsgObj(): any; }