Whitelist Address

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

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

addressAllowList

array

List of addresses to be used with this Policy. By default, all the address will be allowed

required

Request

curl --location --request PUT 'https://dev.byzanlink.com/paymasterservice/sdk/paymasterdata/whitelist' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: xxxx' \
--header 'chainid: xxxx' \
--header 'x-policy-id: xxxx' \
--data '{
    "addressAllowList": [
        "0xC2C9b2e56d62e4839EbEa832F24eDF1be81B0621"
    ]
}'

Response

{
    "msg": "Successfully Whitelisted Address"
}

Last updated