@gala-chain/chaincode ∙ API
API > fetchOrCreateBalance
Function: fetchOrCreateBalance()
fetchOrCreateBalance(
ctx
,owner
,tokenClassKey
):Promise
\<TokenBalance
>
Parameters
▪ ctx: GalaChainContext
▪ owner: string
▪ tokenClassKey: NonFunctionProperties
\<TokenClassKey
>