Buffer wrapper that serializes to a hex-encoded string.

### Hierarchy

- HexBuffer

## Index

### Constructors

- constructor

### Properties

- buffer

### Methods

- toJSON
- toString
- from

## Constructors

### constructor

- new HexBuffer(buffer: Buffer): HexBuffer

- - Defined in chain/misc.ts:46

  #### Parameters

  - ##### buffer: Buffer

  #### Returns HexBuffer

## Properties

### buffer

buffer: Buffer

- Defined in chain/misc.ts:47

## Methods

### toJSON

- toJSON(): string

- - Defined in chain/misc.ts:68

  #### Returns string

### toString

- toString(encoding?: string): string

- - Defined in chain/misc.ts:64

  #### Parameters

  - ##### Default value encoding: string = "hex"

  #### Returns string

### Static from

- from(value: Buffer | HexBuffer | number[] | string): HexBuffer

- - Defined in chain/misc.ts:52

  Convenience to create a new HexBuffer, does not copy data if value passed is already a buffer.

  #### Parameters

  - ##### value: Buffer | HexBuffer | number[] | string

  #### Returns HexBuffer

Generated using TypeDoc