@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
40 lines (39 loc) • 1.33 kB
TypeScript
/// <reference types="node" />
import { TxMsg } from "./tx-msg";
/**
* Model representing a MsgNodeStake to stake as an Node in the Pocket Network
*/
export declare class MsgNodeStake extends TxMsg {
readonly AMINO_KEY: string;
readonly DEFAULT_PORT: string;
readonly DEFAULT_PROTOCOL: string;
readonly pubKey: Buffer;
readonly chains: string[];
readonly amount: string;
readonly serviceURL: URL;
/**
* @param {string} pubKey - Public key
* @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, 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;
}