Skip to main content

@bloock/sdk / RecordClient

Class: RecordClient

Provides functionality for creating records using various data sources and to interact with the Bloock Record service.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RecordClient(configData?): RecordClient

Creates a new RecordClient with default configuration.

Parameters

NameType
configData?ConfigData

Returns

RecordClient

Defined in

client/record.ts:33

Properties

configData

Private configData: ConfigData

Defined in

client/record.ts:27

Methods

fromBytes

fromBytes(bytes): RecordBuilder

Creates a RecordBuilder from a byte slice payload.

Parameters

NameType
bytesUint8Array

Returns

RecordBuilder

Defined in

client/record.ts:73


fromFile

fromFile(bytes): RecordBuilder

Creates a RecordBuilder from a byte slice representing a file.

Parameters

NameType
bytesUint8Array

Returns

RecordBuilder

Defined in

client/record.ts:82


fromHex

fromHex(hex): RecordBuilder

Creates a RecordBuilder from a hexadecimal string payload.

Parameters

NameType
hexstring

Returns

RecordBuilder

Defined in

client/record.ts:64


fromJson

fromJson(json): RecordBuilder

Creates a RecordBuilder from a JSON string payload.

Parameters

NameType
jsonany

Returns

RecordBuilder

Defined in

client/record.ts:51


fromLoader

fromLoader(loader): RecordBuilder

Creates a RecordBuilder from a data loader.

Parameters

NameType
loaderLoader

Returns

RecordBuilder

Defined in

client/record.ts:100


fromRecord

fromRecord(bytes): RecordBuilder

Creates a RecordBuilder from an existing record.

Parameters

NameType
bytesRecord

Returns

RecordBuilder

Defined in

client/record.ts:91


fromString

fromString(str): RecordBuilder

Creates a RecordBuilder from a string payload.

Parameters

NameType
strstring

Returns

RecordBuilder

Defined in

client/record.ts:42