Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pimlicolabs/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Jan 21, 2025
2 parents 47a2c0d + d3f345a commit 7b4b93f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# pm_getPaymasterData

:::warning
This method and ERC-7677 is experimental and the API may be broken without bumping the major version.
:::

Return values to be used in paymaster-related fields of a signed user operation. Take note that when using in ERC-20 mode, the context expects an object with a `token` field.

## EntryPoint v0.7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# pm_getPaymasterStubData

:::warning
This method and ERC-7677 is experimental and the API may be broken without bumping the major version.
:::

Returns stub values to be used in paymaster-related fields of an unsigned user operation for gas estimation. Take note that when using in ERC-20 mode, the context expects an object with a `token` field.

## EntryPoint v0.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import VersionWarning from "../../../VersionWarning"

# getPaymasterData

:::warning
This method and ERC-7677 is experimental and the API may be broken without bumping the major version.
:::

Return values to be used in paymaster-related fields of a signed user operation. This method calls `pm_getPaymasterData` and is part of the experimental [ERC-7677 specification](https://github.com/ethereum/ERCs/pull/360/files).

## Usage
Expand Down Expand Up @@ -50,7 +46,7 @@ import { sepolia } from 'viem/chains'
import { ENTRYPOINT_ADDRESS_V07 } from 'permissionless'
import { paymasterActionsEip7677 } from 'permissionless/experimental'

export const paymasterEip7677Client = createClient({
export const paymasterEip7677Client = createClient({
chain: sepolia,
transport: http("https://api.pimlico.io/v2/sepolia/rpc?apikey=YOUR_API_KEY_HERE")
}).extend(paymasterActionsEip7677(ENTRYPOINT_ADDRESS_V07))
Expand Down Expand Up @@ -83,4 +79,4 @@ For EntryPoint v0.6, the return type is:

## JSON-RPC Method

[`pm_getPaymasterData`](https://github.com/ethereum/ERCs/pull/360/files)
[`pm_getPaymasterData`](https://github.com/ethereum/ERCs/pull/360/files)
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import VersionWarning from "../../../VersionWarning"

# getPaymasterStubData

:::warning
This method and ERC-7677 is experimental and the API may be broken without bumping the major version.
:::

Returns stub values to be used in paymaster-related fields of an unsigned user operation for gas estimation. This method calls `pm_getPaymasterStubData` and is part of the experimental [ERC-7677 specification](https://github.com/ethereum/ERCs/pull/360/files).

## Usage
Expand Down Expand Up @@ -50,7 +46,7 @@ import { sepolia } from 'viem/chains'
import { ENTRYPOINT_ADDRESS_V07 } from 'permissionless'
import { paymasterActionsEip7677 } from 'permissionless/experimental'

export const paymasterEip7677Client = createClient({
export const paymasterEip7677Client = createClient({
chain: sepolia,
transport: http("https://api.pimlico.io/v2/sepolia/rpc?apikey=YOUR_API_KEY_HERE")
}).extend(paymasterActionsEip7677(ENTRYPOINT_ADDRESS_V07))
Expand Down Expand Up @@ -85,4 +81,4 @@ For EntryPoint v0.6, the return type is:

## JSON-RPC Method

[`pm_getPaymasterStubData`](https://github.com/ethereum/ERCs/pull/360/files)
[`pm_getPaymasterStubData`](https://github.com/ethereum/ERCs/pull/360/files)

0 comments on commit 7b4b93f

Please sign in to comment.