Deployment IDs
Deployment IDs in the Alkanes metaprotocol uniquely identify smart contracts and tokens on the Bitcoin blockchain.
What is a Deployment ID?
A Deployment ID (also called AlkaneId) is a unique identifier for an Alkanes contract or token. It consists of two components: a block number and a transaction index, which together precisely locate the deployment transaction on the Bitcoin blockchain.
ID Structure
Deployment IDs are represented as:
- Block: The Bitcoin block height where the contract was deployed
- Transaction: The transaction index within that block
Finding Deployment IDs
You can find Deployment IDs through:
- The Oyl Wallet interface
- Block explorers that support Alkanes
- The Oyl API
- Factory contract registry
Using Deployment IDs
Deployment IDs are used throughout the protocol to:
- Reference specific tokens in swap operations
- Identify pool contracts
- Specify routing paths for multi-hop swaps
- Query contract state
Understanding Deployment IDs is essential for working with the Oyl AMM protocol and Alkanes smart contracts on Bitcoin.