Links
Comment on page

Publish Permission Set

You can store yourself the permission set that won’t impact the contract itself. But if you want your permission set to be accessible by the Permissive frontend in the Operator and Authorization page you need to upload it to our S3 bucket. We have an api method for this at https://app.permissive.dev/api/createPermissionSet. You must provide the permission set JSON encoded and if formatted correctly it will be added to our bucket. Here is an example of request.
curl --location '<https://app.permissive.dev/api/createPermissionSet>' \\
--header 'Content-Type: application/json' \\
--data '{
"title": "Farm game harvest",
"maxValue": "0",
"maxFee": "1000000000000000000",
"permissions": [
{
"operator": "0xabe1DE8764303a2d4421Ea583ef693CF6cAc109A",
"to": "0x49DB006667B532f8e49Af5978faA6550C5E51DAb",
"selector": "0x4641257d",
"allowed_arguments": "0xc0",
"paymaster": "0x0000000000000000000000000000000000000000",
"expiresAtUnix": 1813986312,
"expiresAtBlock": 0,
"maxUsage": 12
}
]
}'
And the response in case of success will be:
{
"success": true,
"hash": "0x08109c01a57419dd4fc8cf79fed2bc81fe5847176b41ce253869333356eacbe4"
}