getAllModPerms

You need an API key for this call. Please reach out to the Blessnet team to get setup.

GET /getAllModPerms

The getAllModPerms endpoint retrieves a list of all current modular permissions for an address, both as a delegate and as a vault.

Headers

Name
Value

x-api-key

Your API key

Params

Name
Mandatory?
Default
Value

queryAddress

Yes

n/a

The address we are checking

chain

No

mainnet

The chain type we are working with, either mainnet or sepolia

Response Body

Name
Type
Description

asDelegate

array

An array of delegations where the query address is the delegate

asVault

array

An array of delegations where the query address is the vault

Example Request

GET https://api.bless.net/getAllModPerms?queryAddress=0x69c368F76DEB816c9DA037ff562cFA76eA31820e

Response

{
    "asDelegate": [
        {
            "_id": "671ae2dccf1e3ed7134614c8",
            "delegate": "0x69c368F76DEB816c9DA037ff562cFA76eA31820e",
            "vault": "0x66f13e0bd1Cc72FF147Fc3F5ab7baC036edEbae8",
            "source": "MPERM",
            "chain": 45513,
            "logIndex": 0,
            "permissionIds": [
                2,
                3,
                4,
                1092
            ],
            "txnHash": "0x8dbd942eb299f349221cf14864ba2defed2692e059e7af778eb703c0c5b15dc0"
        }
    ],
    "asVault": []
}

Last updated