Skip to content

@gala-chain/connectAPI


API > GalaChainResponseSuccess

Class: GalaChainResponseSuccess<T>

Represents a successful response from a GalaChain operation.

Contents

Type parameters

T

The type of data returned in the response

Constructors

new GalaChainResponseSuccess(data, hash)

new GalaChainResponseSuccess\<T>(data, hash?): GalaChainResponseSuccess\<T>

Creates a new successful response.

Parameters

data: GalaChainSuccessResponse\<T>

The success response data

hash?: string

Optional transaction hash

Source

chain-connect/src/types/galaChain.ts:47

Properties

Data

readonly Data: T

The actual data returned by the operation

Source

chain-connect/src/types/galaChain.ts:38


Hash

readonly Hash?: string

Optional transaction hash for the operation

Source

chain-connect/src/types/galaChain.ts:40


Status

readonly Status: GalaChainResponseType

The response status indicating success

Source

chain-connect/src/types/galaChain.ts:36