Converts stx address in to StandardPrincipalCV clarity type
returns instance of type StandardPrincipalCV
import { standardPrincipalCVFromAddress, Address } from '@stacks/transactions'; const address: Address = { type: 0, version: 22, hash160: 'a5d9d331000f5b79578ce56bd157f29a9056f0d6' }; const principalCV = standardPrincipalCVFromAddress(address); // { type: 5, address: { type: 0, version: 22, hash160: 'a5d9d331000f5b79578ce56bd157f29a9056f0d6' } }
clarity test cases for more examples
Generated using TypeDoc
Converts stx address in to StandardPrincipalCV clarity type
Returns
returns instance of type StandardPrincipalCV
Example
Visit
clarity test cases for more examples