| Precompile | Address | Purpose |
|---|---|---|
| BIP-322 Verifier | 0xFE | Verify Bitcoin wallet signatures |
| BTC Transaction | 0xFD | Get Bitcoin transaction details |
| Last Satoshi Location | 0xFC | Track individual satoshi locations |
| Locked PkScript | 0xFB | Check BRC-20 token holder locks |
| OP_RETURN TX ID | 0xFA | Get the activating Bitcoin transaction ID |
BIP-322 Verifier — 0xFE
BIP-322 Verifier — 0xFE
Verifies BIP-322 signatures, which are the generic Bitcoin message signing format. EVM addresses in BRC2.0 are generated from Bitcoin scripts and cannot sign messages directly — this precompile enables signature-based authorization using Bitcoin wallets instead.Use cases: Caller verification, authentication and authorization using Bitcoin wallets, Bitcoin identity verification.
Parameters
The Bitcoin output script (pkscript) associated with the signing wallet.
The message that was signed.
The BIP-322 signature bytes produced by the Bitcoin wallet.
Returns
true if the signature is valid for the given pkscript and message, false otherwise.Example usage
BTC Transaction — 0xFD
BTC Transaction — 0xFD
Retrieves full details of a Bitcoin transaction by its transaction ID. Contracts can use this to confirm that specific Bitcoin transactions occurred, enabling payment-triggered logic without any off-chain oracle.Use case: Trustless Bitcoin payment verification — contracts can confirm that specific Bitcoin transactions occurred, enabling payment-triggered logic.
Parameters
The Bitcoin transaction ID to look up.
Returns
The Bitcoin block height at which this transaction was confirmed.
Transaction IDs of all inputs.
Output indices of all inputs (corresponding to
vin_txids).The scriptPubKey of each input’s source output.
The value in satoshis of each input.
The scriptPubKey of each output.
The value in satoshis of each output.
Example usage
Last Satoshi Location — 0xFC
Last Satoshi Location — 0xFC
Tracks the current location of an individual satoshi given its prior location in a specific transaction output. This enables on-chain logic that follows ordinal satoshi provenance.
Parameters
The transaction ID where the satoshi was last known to reside.
The output index within that transaction.
The ordinal offset of the specific satoshi within the output.
Returns
The transaction ID of the satoshi’s most recent move.
The output index in the most recent transaction.
The ordinal offset in the most recent output.
The pkscript of the previous owner.
The pkscript of the current owner.
Locked PkScript — 0xFB
Locked PkScript — 0xFB
Checks whether a BRC-20 token holder has locked their inscriptions to a specific Bitcoin script for at least a given number of blocks. This enables on-chain staking and governance systems where users lock ordinals on Bitcoin to prove commitment.Use case: Staking and governance — users lock ordinals on Bitcoin to prove commitment; contracts verify the lock status and grant voting rights or rewards.
Parameters
The Bitcoin wallet script (pkscript) of the token holder to check.
The minimum number of blocks the inscriptions must be locked.
Returns
The locked pkscript if the holder has an active lock meeting the block count requirement, otherwise empty bytes.
Example usage
OP_RETURN TX ID — 0xFA
OP_RETURN TX ID — 0xFA
Returns the Bitcoin transaction ID of the transaction that sent the current BRC2.0 inscription to
OP_RETURN, thereby activating it. This allows contracts to bind their state or events to a specific Bitcoin transaction.Use cases: Binding contract state or events to a specific Bitcoin transaction, deterministic linkage between on-chain BTC activity and EVM-level logic, implementing receipt-style verification, replay protection, and audit trails.Returns
The Bitcoin transaction ID (txid) of the transaction that activated the current BRC2.0 inscription.