Create a Proxy Account
This tutorial walks you through creating a standard proxy and executing a call from the proxy account using the Polkadot.js web app. You will set up a delegate account, add it as a proxy to your real account with a chosen ProxyType, and optionally use announcements for delayed execution.
A standard proxy links a delegator to a known account. The delegator specifies:
- The delegate account.
- The allowed
ProxyType(scope of permissions). - An optional delay.
The delegate has access to funds in the real account and can then execute calls on behalf of the real account within the constraints of the specified ProxyType.
Delegating through a standard proxy is a good option when you want to entrust control to trusted individuals or organizations who can act on your behalf. In this setup, the delegate maintains their own independent signing capability, which allows them to initiate and authorize actions without relying on your key. This approach provides maximum operational flexibility while also making the delegate responsible for managing the security of their own keys.
Prerequisites
- A locally running subtensor development chain. For more information, see run a local Bittensor blockchain instance.
- Polkadot‑JS browser app and Polkadot‑JS browser extension installed.
- An accessible 'Alice' wallet. For more information, see Provision Wallets for Local Deploy.
- At least 3 different accounts in your Polkadot-JS app:
- Real (delegator) account that controls funds and adds the proxy.
- Delegate account to perform allowed actions.
- A recipient account to receive transferred funds.
To import accounts into the Polkadot-JS web app, see create and import accounts to the Polkadot-JS extension.
Step 1: Connect Polkadot‑JS to your local chain
- Open the Polkadot‑JS app.
- In the network selector, choose Development → custom endpoint
ws://127.0.0.1:9944. - Confirm your local chain metadata loads and your test accounts appear in the Accounts tab.
If the web app does not connect to your local chain, your browser’s privacy or security settings may be blocking it. Try adjusting those settings and reconnecting.
Step 2: Add a Proxy
-
In the navbar menu, navigate to Developers → Extrinsics.
-
Under “using the selected account”, pick the funded delegator account.
-
Under “submit the following extrinsic”, choose the
proxypallet and calladdProxy(delegate, proxyType, delay). -
Fill the parameters:
delegate: select the imported delegate account from the Accounts dropdown.proxyType: selectSmallTransfer; this should allow us to transfer amounts that do not exceed 0.5τ.delay: optionally, include a delay in blocks.
-
Click Submit Transaction and sign with the delegator account.
Your delegate is now authorized to execute small transfers on behalf of the real account.
A delegator can assign multiple proxies to the same delegate account. However, each proxy entry must use a unique ProxyType. Attempting to register a duplicate entry with the same delegate and ProxyType will result in a proxy.Duplicate error.
Checking an Account’s Proxies
You can check which proxies are associated with an account to see their delegate addresses, proxy types, and any configured delays. To do this:
- From the Developer dropdown, navigate to Chain state → Storage.
- Click the selected state query menu and select
proxy.proxies. - Select the account used to create the proxy.
- Click the + icon to run the query.
This returns the set of proxies related to the account and their information—delegate, proxyType, and delay.
Step 3: Execute a Proxy Call
- Go to Developer → Extrinsics.
- Under “using the selected account”, choose the delegate account.
- Select the
proxypallet and chooseproxy(real, forceProxyType, call). - Fill the parameters:
real: select the real account used to create the proxy.forceProxyType: leave option unchecked.call: the call to be made by the delegate account. Fill the following parameters:- Select the
balancespallet and choose thetransferKeepAlive(dest, value)extrinsic. dest: select the recipient account.value: input the amount to be transferred in RAO—1 TAO = 19RAO.
- Select the
- Click Submit Transaction and sign the transaction from the delegate account.
The runtime verifies that the call is permitted by the proxy filter and that any delay requirements have been met, then dispatches the call as if signed by the Real account.
After submitting the transaction, check the Polkadot.JS web app's Explorer page for a balances.Transfer event. Notice the sender is the delegator account.
- With the SmallTransfer proxy type, transfers are limited to less than 0.5 TAO (500,000,000 RAO). Use the Transfer proxy type for amounts above this limit. See source code: SmallTransfer limit definition.
- The delegate account must hold enough funds to cover transaction fees, which are approximately 25 µTAO (0.000025 TAO).
If you configured a non-zero delay when creating the proxy, you must first make an announcement before executing the proxy call. Attempting to execute a proxy call before announcing returns a proxy.Unannounced error.
Announce and execute a delayed proxy
Announcing a delayed proxy call requires the hash of the call that you intend to execute. Therefore, you must first generate the call hash of the transaction you want to carry out. To generate the call hash:
- Go to Developer → Extrinsics.
- Under “using the selected account”, pick the delegate account.
- Under “submit the following extrinsic”, choose the
balancespallet and call thetransferKeepAlive(dest, value)extrinsic. - Fill the parameters:
dest: select the recipient account.value: input the amount to be transferred in RAO—1 TAO = 19RAO.
- Copy the hex code shown in the encoded call data field. You will use this to announce the call in the next step.
Do not submit the transaction after entering the parameters. Only copy the encoded call data once all parameters are provided.
Announce a call
To announce a delayed call:
- Go to Developer → Extrinsics tab.
- Choose the
proxypallet and select theannounce(real, call_hash)extrinsic. - Fill the parameters:
real: select the real account used to create the proxy.callHash: paste the call hash of the transaction to be executed.
- Click Submit Transaction and sign the transaction from the delegate account.
Next, wait for the duration of the configured delay—in blocks—before executing the call. During the waiting period, the delegate can cancel the announcement—removeAnnouncement(real, callHash), while the real account retains final authority to reject it—rejectAnnouncement(delegate, callHash).
Execute a delayed proxy call
After the announcement waiting period has passed, the delegate account can now execute the proxy if the real account did not reject it. Attempting to execute the proxy before the waiting period passes returns a proxy.Unannounced error. To execute a delayed proxy call:
- Go to Developer → Extrinsics.
- Under “using the selected account”, choose the delegate account.
- Select the
proxypallet and chooseproxyAnnounced(delegate, real, forceProxyType, call). - Fill the parameters:
delegate: select the delegate account.real: select the real account used to create the proxy.forceProxyType: leave option unchecked.call: the call to be made by the delegate account. Fill the following parameters:- Select the
balancespallet and choose thetransferKeepAlive(dest, value)extrinsic. dest: select the recipient account.value: input the amount to be transferred in RAO—1 TAO = 19RAO.
- Select the
- Click Submit Transaction and sign the transaction from the delegate account.
- The call details must exactly match the original announcement. Any change—such as modifying the recipient or amount—will result in a
proxy.Unannouncederror. - Once a delayed proxy call is executed, its announcement is cleared. To execute another proxy with the same details, you must create a new announcement and wait for the waiting period to pass.
Step 4: Remove a Proxy
-
In the navbar menu, navigate to Developers → Extrinsics.
-
Under “using the selected account”, pick the delegator account.
-
Under "submit the following extrinsic", choose the
proxypallet and callremoveProxy(delegate, proxyType, delay). -
Fill the parameters:
delegate: select the imported delegate account from the Accounts dropdown.proxyType: selectSmallTransfer; this should allow us to transfer amounts that do not exceed 0.5τ.delay: Optionally, include a delay in blocks.
-
Click Submit Transaction and sign with the delegator account.
Troubleshooting
proxy.Duplicate: A proxy with the same configuration already exists on the real account. See source code:Duplicateerror.proxy.Unannounced: A non-zero delay proxy requires an announcement; announce and wait the delay. See source code:Unannouncederror.proxy.Unproxyable/system.CallFiltered: The call is not permitted under the currentProxyType. See source code:Unproxyableerror.proxy.TooMany: You exceededMaxProxiesorMaxPending. Remove unused proxies/announcements. See source code:TooManyerror.proxy.NotProxy: Ensure you're submitting from the delegate account and referencing the correct real account. See source code:NotProxyerror.Token.FundsUnavailable: Ensure that your real account has enough available funds to cover the transaction.