@gala-chain/connect ∙ API
API > GalaChainBaseApi
Class: GalaChainBaseApi
Contents
- Extended By
- Constructors
- new GalaChainBaseApi(chainCodeUrl, connection)
- Properties
- chainCodeUrl
- connection
- Methods
- DryRun()
- GetObjectByKey()
- GetObjectHistory()
Extended By
Constructors
new GalaChainBaseApi(chainCodeUrl, connection)
new GalaChainBaseApi(
chainCodeUrl
,connection
):GalaChainBaseApi
Parameters
▪ chainCodeUrl: string
▪ connection: GalaChainProvider
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:21
Properties
chainCodeUrl
protected
chainCodeUrl:string
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:22
connection
protected
connection:GalaChainProvider
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:23
Methods
DryRun()
DryRun(
dto
):Promise
\<GalaChainResponseSuccess
\<DryRunResult
>>
Parameters
▪ dto: PublicProperties
\<ConstructorArgs
\<DryRunDto
>>
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:26
GetObjectByKey()
GetObjectByKey\<
T
>(dto
):Promise
\<GalaChainResponseSuccess
\<T
>>
Type parameters
▪ T = Record
\<string
, unknown
>
Parameters
▪ dto: PublicProperties
\<ConstructorArgs
\<GetObjectDto
>>
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:41
GetObjectHistory()
GetObjectHistory\<
T
>(dto
):Promise
\<GalaChainResponseSuccess
\<T
>>
Type parameters
▪ T = Record
\<string
, unknown
>
Parameters
▪ dto: PublicProperties
\<ConstructorArgs
\<GetObjectHistoryDto
>>