You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/reference/_partials/bundler/_pimlico_gettokenquotes-parameters.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
:::warning
2
+
If a token in the request input is not supported by the ERC-20 Paymaster, the request will still succeed but it will not be included in the `quotes` array in the response.
3
+
:::
4
+
1
5
-`Object`: An object containing:
2
6
-`tokens`: (array) - An array of token addresses to get quotes for.
Copy file name to clipboardExpand all lines: services/reference/_partials/bundler/_pimlico_gettokenquotes-returns.mdx
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,4 @@ An object containing an array of token quotes. Each quote includes information a
7
7
-`exchangeRate`: (string) - The exchange rate between the token and the native gas token.
8
8
-`exchangeRateNativeToUsd`: (string) - The exchange rate between the native gas token and USD with 6 decimals of precision.
9
9
-`balanceSlot`: (string) - The storage slot for the token balance.
10
-
-`allowanceSlot`: (string) - The storage slot for the token allowance.
11
-
12
-
:::warning
13
-
If a token in the request input is not supported by the ERC-20 Paymaster, the request will still succeed but it will not be included in the `quotes` array in the response.
14
-
:::
15
-
16
-
:::info
17
-
**exchangeRateNativeToUsd** represents the exchange rate between the chain's native gas token and USD with 6 decimals of precision.
18
-
:::
10
+
-`allowanceSlot`: (string) - The storage slot for the token allowance.
Sponsors a user operation by providing all necessary paymaster-related fields and updated gas parameters. <CreditCostnetwork="bundler"method="pm_sponsorUserOperation" />
3
+
Sponsors a user operation by providing all necessary paymaster-related fields and updated gas
Copy file name to clipboardExpand all lines: services/reference/_partials/bundler/_pm_sponsoruseroperation-parameters.mdx
+18-32Lines changed: 18 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,34 +7,31 @@ import TabItem from "@theme/TabItem"
7
7
-`userOperation`: The user operation object containing the following fields:
8
8
9
9
-`sender`: (string) - The address of the account making the operation.
10
-
-`nonce`: (string) - Unique identifier for the request from this sender. This includes the key and sequence number.
11
-
-`factory`: (string) [_optional_] - The factory contract address that will deploy the smart account if it doesn't exist yet.
10
+
-`nonce`: (string) - Unique identifier for the request from this sender. This includes the key and
11
+
sequence number.
12
+
-`factory`: (string) [_optional_] - The factory contract address that will deploy the smart account
13
+
if it doesn't exist yet.
12
14
-`factoryData`: (string) [_optional_] - The data passed to the factory contract to deploy the smart account.
13
15
-`callData`: (string) [_optional_] - The data to pass to the sender during the main execution call.
14
16
-`callGasLimit`: (string) - The amount of gas to allocate the main execution call.
15
17
-`verificationGasLimit`: (string) - The amount of gas to allocate for the verification step.
16
-
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for pre-verification execution and `calldata`.
18
+
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for
19
+
pre-verification execution and `calldata`.
17
20
-`maxFeePerGas`: (string) - Maximum fee per gas, in wei, the sender is willing to pay per gas.
18
-
-`maxPriorityFeePerGas`: (string) - Maximum fee, in wei, the sender is willing to pay per gas above the base fee.
21
+
-`maxPriorityFeePerGas`: (string) - Maximum fee, in wei, the sender is willing to pay per gas above
22
+
the base fee.
19
23
-`paymaster`: (string) [_optional_] - Address of paymaster sponsoring the transaction, or `null` if none.
20
-
-`paymasterVerificationGasLimit`: (string) [_optional_] - The amount of gas to allocate for the verification step of the paymaster, or `null` if no paymaster.
21
-
-`paymasterPostOpGasLimit`: (string) [_optional_] - The amount of gas to allocate for the post-operation step of the paymaster, or `null` if no paymaster.
22
-
-`paymasterData`: (string) [_optional_] - The data to pass to the paymaster during the verification step, or `null` if no paymaster.
23
-
-`eip7702Auth`: (object) [_optional_] - The EIP-7702 authorization data. This can be a dummy authorization:
24
-
-`address`: (string) - The contract address for the authorization.
25
-
-`chainId`: (string) - The chain ID.
26
-
-`nonce`: (string) - The nonce.
27
-
-`r`: (string) - The r component of the signature.
28
-
-`s`: (string) - The s component of the signature.
29
-
-`v`: (string) - The v component of the signature.
30
-
-`yParity`: (string) - The y-parity value.
31
-
24
+
-`paymasterVerificationGasLimit`: (string) [_optional_] - The amount of gas to allocate for the
25
+
verification step of the paymaster, or `null` if no paymaster.
26
+
-`paymasterPostOpGasLimit`: (string) [_optional_] - The amount of gas to allocate for the post-operation
27
+
step of the paymaster, or `null` if no paymaster.
28
+
-`paymasterData`: (string) [_optional_] - The data to pass to the paymaster during the verification
29
+
step, or `null` if no paymaster.
32
30
-`entryPoint`: (string) - The EntryPoint contract address (`0x0000000071727De22E5E9d8BAf0edAc6f37da032`).
33
-
34
-
-`context`: (object) [_optional_] - Additional context information. Can be one of:
31
+
-`context`: (object) [_optional_] - Information about the specific paymaster implementation you are using.
32
+
If use paying gas in ERC-20 Tokens, pass the token address:
35
33
- An object with `token`: (string) - The ERC-20 token address to use for payment.
36
34
- An object with `sponsorshipPolicyId`: (string) - The ID of the sponsorship policy to use.
37
-
-`null` - No additional context.
38
35
39
36
</TabItem>
40
37
<TabItemvalue="v0.6"label="v0.6 user operation">
@@ -52,21 +49,10 @@ import TabItem from "@theme/TabItem"
52
49
-`maxPriorityFeePerGas`: (string) - Maximum fee, in wei, the sender is willing to pay per gas above the base fee.
53
50
-`paymasterAndData`: (string) - The address of the paymaster contract and the data that will be passed to it.
54
51
-`signature`: (string) - The signature data.
55
-
-`eip7702Auth`: (object) [_optional_] - The EIP-7702 authorization data. This can be a dummy authorization:
56
-
-`address`: (string) - The contract address for the authorization.
57
-
-`chainId`: (string) - The chain ID.
58
-
-`nonce`: (string) - The nonce.
59
-
-`r`: (string) - The r component of the signature.
60
-
-`s`: (string) - The s component of the signature.
61
-
-`v`: (string) - The v component of the signature.
62
-
-`yParity`: (string) - The y-parity value.
63
-
64
52
-`entryPoint`: (string) - The EntryPoint contract address (`0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789`).
65
-
66
-
-`context`: (object) [_optional_] - Additional context information. Can be one of:
53
+
-`context`: (object) [_optional_] - Information about the specific paymaster implementation you are using.
54
+
If use paying gas in ERC-20 Tokens, pass the token address:
67
55
- An object with `token`: (string) - The ERC-20 token address to use for payment.
68
56
- An object with `sponsorshipPolicyId`: (string) - The ID of the sponsorship policy to use.
Validates a user operation against an array of sponsorship policies and returns which policies are willing to sponsor the user operation. <CreditCostnetwork="bundler"method="pm_validateSponsorshipPolicies" />
3
+
Validates a user operation against an array of sponsorship policies and returns which policies are
4
+
willing to sponsor the user operation. <CreditCostnetwork="bundler"method="pm_validateSponsorshipPolicies" />
Copy file name to clipboardExpand all lines: services/reference/_partials/bundler/_pm_validatesponsorshippolicies-parameters.mdx
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,25 @@ import TabItem from "@theme/TabItem"
7
7
-`userOperation`: The user operation object containing the following fields:
8
8
9
9
-`sender`: (string) - The address of the account making the operation.
10
-
-`nonce`: (string) - Unique identifier for the request from this sender. This includes the key and sequence number.
11
-
-`factory`: (string) [_optional_] - The factory contract address that will deploy the smart account if it doesn't exist yet.
10
+
-`nonce`: (string) - Unique identifier for the request from this sender. This includes the key and
11
+
sequence number.
12
+
-`factory`: (string) [_optional_] - The factory contract address that will deploy the smart account
13
+
if it doesn't exist yet.
12
14
-`factoryData`: (string) [_optional_] - The data passed to the factory contract to deploy the smart account.
13
15
-`callData`: (string) [_optional_] - The data to pass to the sender during the main execution call.
14
16
-`callGasLimit`: (string) - The amount of gas to allocate the main execution call.
15
17
-`verificationGasLimit`: (string) - The amount of gas to allocate for the verification step.
16
-
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for pre-verification execution and `calldata`.
18
+
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for
19
+
pre-verification execution and `calldata`.
17
20
-`maxFeePerGas`: (string) - Maximum fee per gas, in wei, the sender is willing to pay per gas.
18
21
-`maxPriorityFeePerGas`: (string) - Maximum fee, in wei, the sender is willing to pay per gas above the base fee.
19
22
-`paymaster`: (string) [_optional_] - Address of paymaster sponsoring the transaction, or `null` if none.
20
-
-`paymasterVerificationGasLimit`: (string) [_optional_] - The amount of gas to allocate for the verification step of the paymaster, or `null` if no paymaster.
21
-
-`paymasterPostOpGasLimit`: (string) [_optional_] - The amount of gas to allocate for the post-operation step of the paymaster, or `null` if no paymaster.
22
-
-`paymasterData`: (string) [_optional_] - The data to pass to the paymaster during the verification step, or `null` if no paymaster.
23
+
-`paymasterVerificationGasLimit`: (string) [_optional_] - The amount of gas to allocate for the
24
+
verification step of the paymaster, or `null` if no paymaster.
25
+
-`paymasterPostOpGasLimit`: (string) [_optional_] - The amount of gas to allocate for the
26
+
post-operation step of the paymaster, or `null` if no paymaster.
27
+
-`paymasterData`: (string) [_optional_] - The data to pass to the paymaster during the verification
28
+
step, or `null` if no paymaster.
23
29
-`signature`: (string) - The signature data.
24
30
25
31
-`entryPoint`: (string) - The EntryPoint contract address (`0x0000000071727De22E5E9d8BAf0edAc6f37da032`).
@@ -37,7 +43,8 @@ import TabItem from "@theme/TabItem"
37
43
-`callData`: (string) [_optional_] - The data to pass to the sender during the main execution call.
38
44
-`callGasLimit`: (string) - The amount of gas to allocate the main execution call.
39
45
-`verificationGasLimit`: (string) - The amount of gas to allocate for the verification step.
40
-
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for pre-verification execution and `calldata`.
46
+
-`preVerificationGas`: (string) - The amount of gas to pay for to compensate the bundler for
47
+
pre-verification execution and `calldata`.
41
48
-`maxFeePerGas`: (string) - Maximum fee per gas, in wei, the sender is willing to pay per gas.
42
49
-`maxPriorityFeePerGas`: (string) - Maximum fee, in wei, the sender is willing to pay per gas above the base fee.
43
50
-`paymasterAndData`: (string) - The address of the paymaster contract and the data that will be passed to it.
0 commit comments