Get Paymaster Data With Sponsor

: https://dev.byzanlink.com/paymasterservice/sdk/paymasterdata

Parameters

Headers

Param
Type
Description
Value

Accept

string

Media types that the client is willing to receive from the server

application/json

Content-Type

string

Media type of the resource being sent to the server in the request body

application/json

apikey

string

API Key of the app from Dashboard

Fetch the specific API Key from Dashboard

chainid

string

Chain ID of the specific network

Ex: 80002

x-policy-id

string

Policy ID to be used

Fetch the specific policy ID from Dashboard

Body

Param
Type
Description
Required

params

array

Array containing User Op object, Entrypoint address, Sponsorhip Type object and Chain ID

required

Request

curl --location --request PUT 'https://dev.byzanlink.com/paymasterservice/sdk/paymasterdata' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: xxxx' \
--header 'chainid: xxxx' \
--header 'x-policy-id: xxxx' \
--data '{
    "params": [
        {
            "sender": "0x46E5481629Fc311a08A765EBf66440f4C36F26e5",
            "nonce": "0x0",
            "initCode": "0x7f6d8f107fe8551160bd5351d5f1514a6ad5d40e5fbfb9cf0000000000000000000000004bc00a6201f1eb0e25d74e49c3625cf7ef8c72210000000000000000000000000000000000000000000000000000000000000000",
            "callData": "0x47e1da2a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000db473299a0128df2882b35ecc6c761d3cf0ed08b0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000",
            "callGasLimit": "0xc7ed",
            "verificationGasLimit": "0x4d62f",
            "maxFeePerGas": "0x59682f1e",
            "maxPriorityFeePerGas": "0x59682f00",
            "paymasterAndData": "0x",
            "preVerificationGas": "0xb200",
            "signature": "0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"
        },
        "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
        {
            "mode": "sponsor"
        },
        {
            "chainId": 80002
        }
    ]
}'

Response

{
  "paymasterAndData": <Encoded Paymaster Data> ,
  "verificationGasLimit":<BigNumber>,
  "preVerificationGas": <BigNumber>, 
  "callGasLimit": <BigNumber>
}

Last updated