Examples
Bitcoin
This page provides examples of policies governing Bitcoin signing.
Note: see the language section for more details. For context on Bitcoin transaction reinsertion, see the Bitcoin network support page
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
This page provides examples of policies governing Bitcoin signing.
{
"policyName": "Enable bitcoin transactions to be sent to <BITCOIN_ADDRESS>",
"effect": "EFFECT_ALLOW",
"condition": "bitcoin.tx.outputs.all(o, o.address == <BITCOIN_ADDRESS>)"
}
{
"policyName": "Allow signing bitcoin transactions only if all outputs have value < 200000 satoshis",
"effect": "EFFECT_ALLOW",
"condition": "bitcoin.tx.outputs.all(o, o.value < 200000)"
}
{
"policyName": "Only allow spending of a single bitcoin transaction input",
"effect": "EFFECT_ALLOW",
"condition": "bitcoin.tx.inputs.all(i, i.tx_id == <TX_ID_OF_UTXO> && i.vout == <VOUT_OF_UTXO>)"
}
{
"policyName": "Allow signing Bitcoin transactions only if fee is under 10000 satoshis",
"effect": "EFFECT_ALLOW",
"condition": "bitcoin.tx.fee <= 10000"
}
{
"policyName": "Deny signing Bitcoin transactions if fee exceeds 50000 satoshis",
"effect": "EFFECT_DENY",
"condition": "bitcoin.tx.fee > 50000"
}
Was this page helpful?