toTokenOwnerAddress
@opcat-labs/cat-sdk / toTokenOwnerAddress
Function: toTokenOwnerAddress()
toTokenOwnerAddress(
addressOrScriptHex,forceContractAddress):ByteString
Defined in: packages/cat-sdk/src/utils/index.ts:103
Parameters
addressOrScriptHex
string
the address or script hex
forceContractAddress
boolean = false
whether to force the contract address, default is false
Returns
ByteString
the token owner address, p2pkh script hex or contract script hash