@pokt-network/pocket-js
Version:
Pocket-js core package with the main functionalities to interact with the Pocket Network.
29 lines (28 loc) • 975 B
TypeScript
/// <reference types="node" />
/**
* Represents a /v1/rawtx RPC request
*/
export declare class RawTxRequest {
/**
* Util function to create a RawTxRequest using Buffer or strings
* @param {Buffer | string} address - The address hex of the sender
* @param {Buffer | string} tx - The transaction bytes
* @returns {RawTxRequest} - Raw transaction request object.
* @memberof RawTxRequest
*/
static with(address: Buffer | string, tx: Buffer | string): RawTxRequest;
readonly address: string;
readonly txHex: string;
/**
* Constructor for this class
* @param {string} address - The address hex of the sender
* @param {string} txHex - The transaction bytes in hex format
*/
constructor(address: string, txHex: string);
/**
* JSON representation of this model
* @returns {object} The JSON request specified by the /v1/rawtx RPC call
* @memberof RawTxRequest
*/
toJSON(): {};
}