Introduction

This guide covers how a Scrypto component controls who may call its methods. Radix gates a method on a badge, a resource the caller must prove it holds; a badge can be fungible or non-fungible. On most other smart contract platforms, access control is based on the caller's address, which each contract checks in its own code with a line such as require(msg.sender == owner).

How It Works

Access Rules

When a component is instantiated, each of its methods can be given access rules naming the badge or badges a call must present. The Radix Engine checks these rules before the method runs, so the blueprint contains no access check of its own.

enable_method_auth! {
    roles {
        admin => updatable_by: [];
        minter => updatable_by: [admin];
    },
    methods {
        mint_tokens => restrict_to: [minter, admin];
        update_price => restrict_to: [admin];
        buy => PUBLIC;
    }
}

Under methods, every method in the blueprint has to appear, with PUBLIC for the open ones. A method left out is a compile error under Scrypto 1.4.0, E0063, missing field, rather than a method that defaults to open or closed.

Proofs and the Auth Zone

To call a restricted method, the caller presents a Proof, an object the Radix Engine creates from a vault or bucket to show that the caller holds a resource, without moving the resource; no cryptography is involved (proof_common.rs). A proof placed on the Auth Zone, a container that lasts for one transaction, counts for each later call the manifest makes in that transaction.

# Transaction manifest: create proof and call restricted method
CREATE_PROOF_FROM_ACCOUNT_OF_AMOUNT
    Address("account_rdx...")
    Address("resource_rdx...admin_badge...")
    Decimal("1")
;
CALL_METHOD
    Address("component_rdx...")
    "update_price"
    Decimal("1.50")
;

The receiver-access check

Since Eagle Ray, a protocol update (a change to the rules every node runs) enacted on 11 September 2026, the Radix Engine also checks that a caller may reach the object it calls before the call runs (radixdlt-scrypto #2093). A proof taken from someone else's vault, through a reference to that vault passed into a blueprint, fails with InvalidInvokeAccess, so a badge held in another account cannot satisfy an access rule. Eagle Ray added no Scrypto API: badges, proofs, enable_method_auth! and the Auth Zone work as before, and a blueprint written against them needs no edit.

Moving Badge-Gated and Restricted Resources

A resource whose withdrawal is gated by a badge cannot be moved with the Radix Wallet's built-in transfer screen. That screen builds a plain withdraw-and-deposit transaction manifest and never creates the proof the access rule demands. Moving it takes a manifest, usually supplied by a dApp, that creates the proof first (the CREATE_PROOF_FROM_ACCOUNT_OF_AMOUNT instruction shown above) and then withdraws the resource in the same transaction.

A dApp whose users hold badge-gated assets can give them an in-app action that sends the wallet a manifest with the proof already in it. A soulbound badge cannot be moved even this way: its withdraw rule is deny_all, which no proof satisfies.

Two pull requests by community developer genkipool, opened on 23 July 2026 and last reworked on 19 and 20 November, would have the wallet attach the required badge itself. sargon #452 adds SargonOS::transfer_required_badges to Sargon, the library the Radix iOS and Android wallets share: it reads each resource's withdraw rule, fetches only the badges that rule asks for, and adds the proofs to the transfer manifest with create_proof_from_account_of_amount and create_proof_from_account_of_non_fungibles. babylon-wallet-android #1446 shows the badge a transfer needs on the transfer screen and calls into Sargon for it. As of 25 November 2026 both are open and neither is merged.

Freeze, recall, and why a deposit rule cannot check what the recipient holds are covered in Permissioned and Regulated Assets.

Common Badge Patterns

Admin Badge

Mint a single non-fungible badge at instantiation and return it to the deployer. Methods such as withdraw_fees, update_config or pause are restricted to holders of this badge.

User Badge

The User Badge Pattern issues a non-fungible badge to each user when they register. The badge's non-fungible data stores that user's state, such as balances, permissions or membership tier, and methods read it from the caller's badge, so the component keeps no separate user registry.

Multi-Signature

Access rules support boolean logic: require_n_of(2, [badge_a, badge_b, badge_c]) requires any two of three badges, for example to guard a treasury.

Soulbound Badges

Setting a resource's withdraw rule to deny_all makes a badge soulbound: it stays locked in the vault that holds it (Resource Behaviors, Radix docs). The docs name identification as its most common use.

Next Steps