Skip to content

@gala-chain/chaincodeAPI


API > verifyAndUseAllowances

Function: verifyAndUseAllowances()

verifyAndUseAllowances(ctx, grantedBy, tokenInstanceKey, quantity, tokenInstance, authorizedOnBehalf, actionType, useAllowancesArr): Promise\<boolean>

Parameters

ctx: GalaChainContext

grantedBy: string

tokenInstanceKey: TokenInstanceKey

quantity: BigNumber

tokenInstance: TokenInstance

authorizedOnBehalf: string

actionType: AllowanceType

useAllowancesArr: string[]

Source

chaincode/src/allowances/verifyAndUseAllowances.ts:25