# AnchorMode | Stacks.js 1.4.1 Library Reference
Documentation for Stacks.js 1.4.1 Library Reference

How a transaction should get appended to the Stacks blockchain.

In the Stacks blockchain, there are two kinds of blocks: anchored blocks and streaming microblocks. A transactions AnchorMode specifies which kind of block it should be included in.

For more information about the kinds of Stacks blocks and the various AnchorModes, check out SIP 001 and SIP 005

## Index

### Enumeration members

- Any
- OffChainOnly
- OnChainOnly

## Enumeration members

### Any

Any: = 3

- Defined in packages/transactions/src/constants.ts:58

The leader can choose where to include the transaction (anchored block or microblock)

### OffChainOnly

OffChainOnly: = 2

- Defined in packages/transactions/src/constants.ts:56

The transaction MUST be included in a microblock

### OnChainOnly

OnChainOnly: = 1

- Defined in packages/transactions/src/constants.ts:54

The transaction MUST be included in an anchored block

Generated using TypeDoc