Wallet and signer policy layers are in early access. Talk to us if you’d like to participate.
Before you start
The examples below usehttps://app.dynamicauth.com/api/v0 as the base URL, your environment ID, and a bearer token for an authorized user.
- For business-account layers, the caller must be a business-account owner or admin.
- For wallet and signer layers, the caller must be the wallet owner. A business-account owner or admin can also manage layers for wallets and signers in their account.
Account-Layer
The account layer applies to every wallet in a business account. It is created when you first write to it.Read the account-Layer
Add or update a rule
- cURL
- JavaScript SDK
Remove a rule
Wallet-Layer
The wallet-Layer applies to a single wallet.Read the wallet-Layer
Add or update a rule
- cURL
- JavaScript SDK
Remove a rule
Signer-Layer
The signer-Layer applies to a single signer share set on a wallet. This includes the caller’s own share set, delegated access share sets, and additional signers on a business-account wallet. OmitshareSetId to target the caller’s own active share set. To find a share set id for another signer, use getWalletAccountShareSets from the JavaScript SDK; see the business accounts policies guide.
A
shareSetId is the current identifier for a signer. It rotates when wallet shares are refreshed or reshared, so re-read it with getWalletAccountShareSets before each update. The policy is bound to a stable signerId that the enclave mints, so a rotated shareSetId still points to the same policy.Read the signer-Layer
Add or update a rule
- cURL
- JavaScript SDK
Remove a rule
Signer-modifiable rules
To let a signer edit or remove a wallet or signer-layer rule later, setmodifiableBySigner: true when you create or update the rule. The signer can only modify the rule’s constraint fields, such as addresses and valueLimit. They cannot change the rule type or security settings.
modifiableBySigner cannot be used on environment-scope rules, and it cannot be combined with disableBlockaidSecurityChecks or operationRestrictions.