@gala-chain/chaincode • Readme | API
@gala-chain/chaincode / 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
[]
Returns
Promise
\<boolean
>