Skip to content

Commit fa8c452

Browse files
authored
Spend limits to Spend Permissions (#8)
* change spend permisions * add changes
1 parent d4b97df commit fa8c452

File tree

23 files changed

+50
-50
lines changed

23 files changed

+50
-50
lines changed

_pages/builderkits/onchainkit/paymaster/errors.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Below are a list of common error codes returned by the Paymaster.
2727

2828
| Message | Description |
2929
| :------------------------------------------------------------ | :---------------------------------------------------------------- |
30-
| rejected due to max per user op spend limit exceeded | UserOperation cost too large - configure Per UserOperation limit. |
31-
| rejected due to max monthly org spend limit | over max monthly spend - contact us to increase your limit. |
32-
| rejected due to max global usd spend limit reached | over configured max total USD - adjust your policy. |
30+
| rejected due to max per user op Spend Permission exceeded | UserOperation cost too large - configure Per UserOperation limit. |
31+
| rejected due to max monthly org Spend Permission | over max monthly spend - contact us to increase your limit. |
32+
| rejected due to max global usd Spend Permission reached | over configured max total USD - adjust your policy. |
3333
| rejected due to maximum per address transaction count reached | per sender address maximum number of txn sponsored reached. |
3434
| rejected due to maximum per address sponsorship reached | per sender address maximum USD sponsorship reached. |
3535
| attestation not found for address | sender address does not have required attestation. |

_pages/builderkits/onchainkit/paymaster/gasless-transactions-with-paymaster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ You should eventually encounter an error similar to this:
645645
```json
646646
{
647647
"code": -32001,
648-
"message": "request denied - rejected due to max global usd spend limit reached"
648+
"message": "request denied - rejected due to max global usd Spend Permission reached"
649649
}
650650
```
651651

_pages/cookbook/account-abstraction/gasless-transactions-with-paymaster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async function sendTransaction(client, recipientAddress) {
294294
```json
295295
{
296296
"code": -32001,
297-
"message": "request denied - rejected due to max global usd spend limit reached"
297+
"message": "request denied - rejected due to max global usd Spend Permission reached"
298298
}
299299
```
300300
You’ve hit the **global** limit of sponsored gas. Increase it in the CDP dashboard and wait a few minutes for changes to take effect.

_pages/identity/smart-wallet/guides/sub-accounts/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ If you want to skip ahead and just get the final code, you can find it here:
4545
2. [Using Sub Accounts](/identity/smart-wallet/guides/sub-accounts/using-sub-accounts) - Explore how to interact with Sub Accounts in your application. This guide demonstrates:
4646

4747
- Signing messages with Sub Accounts using `useSignMessage`
48-
- Sending transactions with spend limits using `useSendTransaction`
48+
- Sending transactions with Spend Permissions using `useSendTransaction`
4949
- Building a complete interface for wallet connection and transactions
5050
- Understanding transaction limitations based on spend permissions

_pages/identity/smart-wallet/guides/sub-accounts/setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Let's break down the key preference parameters:
123123
- `keysUrl`: Points to the development environment for Smart Wallet testing
124124
- `options: 'smartWalletOnly'`: Ensures only Smart Wallet mode is used
125125
- `enableAutoSubAccounts: true`: When set to true, automatically creates a Sub Account at connection
126-
- `defaultSpendLimits`: Configures Spend Limits for Sub Account for a network (eg. Base Sepolia `84532`), including:
126+
- `defaultSpendLimits`: Configures Spend Permissions for Sub Account for a network (eg. Base Sepolia `84532`), including:
127127

128128
- Token address (In this case, `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` represents the native ETH)
129129
- Allowance WEI amount (in Hex)

_pages/use-cases/go-gasless.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ To confirm that your spend policies are correctly in place, try running the scri
332332
```json
333333
{
334334
"code": -32001,
335-
"message": "request denied - rejected due to max global usd spend limit reached"
335+
"message": "request denied - rejected due to max global usd Spend Permission reached"
336336
}
337337
```
338338
You’ve hit the **global** limit of sponsored gas. Increase it in the CDP dashboard and wait a few minutes for changes to take effect.

docs/cookbook/go-gasless.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ To confirm that your spend policies are correctly in place, try running the scri
340340
```json
341341
{
342342
"code": -32001,
343-
"message": "request denied - rejected due to max global usd spend limit reached"
343+
"message": "request denied - rejected due to max global usd Spend Permission reached"
344344
}
345345
```
346346
You’ve hit the **global** limit of sponsored gas. Increase it in the CDP dashboard and wait a few minutes for changes to take effect.

docs/docs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
"group": "Optional Features",
209209
"pages": [
210210
"smart-wallet/concepts/features/optional/gas-free-transactions",
211-
"smart-wallet/concepts/features/optional/spend-limits",
211+
"smart-wallet/concepts/features/optional/spend-permissions",
212212
"smart-wallet/concepts/features/optional/batch-operations",
213213
"smart-wallet/concepts/features/optional/custom-gas-tokens",
214214
"smart-wallet/concepts/features/optional/sub-accounts"
@@ -245,7 +245,7 @@
245245
"smart-wallet/guides/sub-accounts/using-sub-accounts"
246246
]
247247
},
248-
"smart-wallet/guides/spend-limits"
248+
"smart-wallet/guides/spend-permissions"
249249
]
250250
},
251251
{
@@ -298,13 +298,13 @@
298298
]
299299
},
300300
{
301-
"group": "Spend Limits",
301+
"group": "Spend Permissions",
302302
"pages": [
303303
"smart-wallet/technical-reference/spend-permissions/spendpermissionmanager",
304304
"smart-wallet/technical-reference/spend-permissions/coinbase-fetchpermissions"
305305
]
306306
},
307-
"smart-wallet/technical-reference/sdk/sub-account-reference"
307+
"smart-wallet/technical-reference/sub-account-reference"
308308
]
309309
},
310310
{

docs/learn/onchain-app-development/account-abstraction/gasless-transactions-with-paymaster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async function sendTransaction(client, recipientAddress) {
291291
```json
292292
{
293293
"code": -32001,
294-
"message": "request denied - rejected due to max global usd spend limit reached"
294+
"message": "request denied - rejected due to max global usd Spend Permission reached"
295295
}
296296
```
297297
You’ve hit the **global** limit of sponsored gas. Increase it in the CDP dashboard and wait a few minutes for changes to take effect.

docs/llms-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4694,7 +4694,7 @@ If you repeatedly run transactions and eventually see:
46944694

46954695
Copy{
46964696
"code": -32001,
4697-
"message": "request denied - rejected due to max global usd spend limit reached"
4697+
"message": "request denied - rejected due to max global usd Spend Permission reached"
46984698
}
46994699
```
47004700

0 commit comments

Comments
 (0)