@gala-chain/connect ∙ API
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
readonlyData:T
The actual data returned by the operation
Source
chain-connect/src/types/galaChain.ts:38
Hash
readonlyHash?:string
Optional transaction hash for the operation
Source
chain-connect/src/types/galaChain.ts:40
Status
readonlyStatus:GalaChainResponseType
The response status indicating success