@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
Name | Type |
---|---|
configData? | ConfigData |
Returns
Defined in
Properties
configData
• Private
configData: ConfigData
Defined in
Methods
fromBytes
▸ fromBytes(bytes
): RecordBuilder
Creates a RecordBuilder from a byte slice payload.
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Defined in
fromFile
▸ fromFile(bytes
): RecordBuilder
Creates a RecordBuilder from a byte slice representing a file.
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
Defined in
fromHex
▸ fromHex(hex
): RecordBuilder
Creates a RecordBuilder from a hexadecimal string payload.
Parameters
Name | Type |
---|---|
hex | string |
Returns
Defined in
fromJson
▸ fromJson(json
): RecordBuilder
Creates a RecordBuilder from a JSON string payload.
Parameters
Name | Type |
---|---|
json | any |
Returns
Defined in
fromLoader
▸ fromLoader(loader
): RecordBuilder
Creates a RecordBuilder from a data loader.
Parameters
Name | Type |
---|---|
loader | Loader |
Returns
Defined in
fromRecord
▸ fromRecord(bytes
): RecordBuilder
Creates a RecordBuilder from an existing record.
Parameters
Name | Type |
---|---|
bytes | Record |
Returns
Defined in
fromString
▸ fromString(str
): RecordBuilder
Creates a RecordBuilder from a string payload.
Parameters
Name | Type |
---|---|
str | string |