@gala-chain/connect ∙ API
API > FeeApi
Class: FeeApi
Base API class providing common chaincode operations. Serves as the foundation for specific API implementations.
Contents
- Extends
- Constructors
- new FeeApi(chainCodeUrl, connection)
- Properties
- chainCodeUrl
- connection
- Methods
- AuthorizeFee()
- DryRun()
- FetchFeeAutorizations()
- FetchFeeProperties()
- GetObjectByKey()
- GetObjectHistory()
- SetFeeProperties()
Extends
Constructors
new FeeApi(chainCodeUrl, connection)
new FeeApi(
chainCodeUrl,connection):FeeApi
Parameters
▪ chainCodeUrl: string
▪ connection: GalaChainProvider
Overrides
Source
chain-connect/src/chainApis/FeeApi.ts:33
Properties
chainCodeUrl
protectedchainCodeUrl:string
The URL of the chaincode service
Inherited from
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:31
connection
protectedconnection:GalaChainProvider
The GalaChain provider for network communication
Inherited from
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:32
Methods
AuthorizeFee()
AuthorizeFee(
dto):Promise\<GalaChainResponseSuccess\<FetchFeeAuthorizationsResponse>>
Parameters
▪ dto: FeeAuthorizationRequest
Source
chain-connect/src/chainApis/FeeApi.ts:37
DryRun()
DryRun(
dto):Promise\<GalaChainResponseSuccess\<DryRunResult>>
Performs a dry run of a chaincode operation without committing to the ledger.
Parameters
▪ dto: PublicProperties\<ConstructorArgs\<DryRunDto>>
The dry run request parameters
Returns
Promise resolving to the dry run results
Inherited from
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:40
FetchFeeAutorizations()
FetchFeeAutorizations(
dto):Promise\<GalaChainResponseSuccess\<FetchFeeAuthorizationsResponse>>
Parameters
▪ dto: FetchFeeAuthorizationsResponse
Source
chain-connect/src/chainApis/FeeApi.ts:48
FetchFeeProperties()
FetchFeeProperties(
dto):Promise\<GalaChainResponseSuccess\<FeeProperties>>
Parameters
▪ dto: FetchFeePropertiesRequest
Source
chain-connect/src/chainApis/FeeApi.ts:59
GetObjectByKey()
GetObjectByKey\<
T>(dto):Promise\<GalaChainResponseSuccess\<T>>
Retrieves an object from the blockchain by its key.
Type parameters
▪ T = Record\<string, unknown>
The expected type of the retrieved object
Parameters
▪ dto: PublicProperties\<ConstructorArgs\<GetObjectDto>>
The object key request parameters
Returns
Promise resolving to the retrieved object
Inherited from
GalaChainBaseApi.GetObjectByKey
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:61
GetObjectHistory()
GetObjectHistory\<
T>(dto):Promise\<GalaChainResponseSuccess\<T>>
Retrieves the history of changes for an object from the blockchain.
Type parameters
▪ T = Record\<string, unknown>
The expected type of the historical objects
Parameters
▪ dto: PublicProperties\<ConstructorArgs\<GetObjectHistoryDto>>
The object history request parameters
Returns
Promise resolving to the object's history
Inherited from
GalaChainBaseApi.GetObjectHistory
Source
chain-connect/src/chainApis/GalaChainBaseApi.ts:77
SetFeeProperties()
SetFeeProperties(
dto):Promise\<GalaChainResponseSuccess\<FeeProperties>>
Parameters
▪ dto: SetFeePropertiesRequest