Allow signing Bitcoin transactions ONLY if all outputs are being sent to a certain address
Copy
Ask AI
{ "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)"}