getContractKeyOrFail
Get the contractKey
for a given contractId
. Throws an error if the contractId
is not found.
It retrun type is non-nullable so it can eliminate the need to check for undefined
in the return value.
Usage
const contractId = '0x....'
const contractKey = await client.getContractKeyOrFail(contractId)
Returns
Promise<string>
The contractKey for the given contractId.