@dfinity/principal
Version:
JavaScript and TypeScript library to work with Internet Computer principals
17 lines (10 loc) • 421 B
Markdown
JavaScript and TypeScript module to work with Internet Computer Principals.
```ts
import { Principal } from '@icp-sdk/core/principal';
const canisterId = Principal.fromText('uqqxf-5h777-77774-qaaaa-cai');
const anonymousPrincipal = Principal.anonymous();
```
Additional API Documentation can be found [here](https://js.icp.build/core/latest/libs/principal/api/).