# Build an nft pc

{% code fullWidth="false" expandable="true" %}

```typescript
import { Pc, Cl } from '@stacks/transactions';

// Ensure a specific NFT will be sent
const sendPC = Pc.principal("ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM")
  .willSendAsset()
  .nft('ST1HTBVD3JG9C05J7HBJTHGR0GGW7KXW28M5JS8QE.cool-nfts::nft-token', Cl.uint(42));

// Ensure a specific NFT will NOT be sent
const keepPC = Pc.principal("ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM")
  .willNotSendAsset()
  .nft('ST1HTBVD3JG9C05J7HBJTHGR0GGW7KXW28M5JS8QE.cool-nfts::nft-token', Cl.uint(1));
```

{% endcode %}

### Description

Create post-conditions for NFT transfers to ensure specific tokens are or aren't transferred

### Use Cases

* Protecting valuable NFTs from accidental transfers
* Ensuring specific NFTs are transferred in marketplace transactions
* Safeguarding NFT collections during contract interactions

### Key Concepts

* **Asset identifier** - Contract address + asset name with `::` separator
* **Token ID** - The specific NFT ID as a Clarity value (using `Cl.uint()`)
* NFT post-conditions use the `.nft()` method


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacks.co/cookbook/stacks.js/cryptography-and-security/build-an-nft-pc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
