Policies

List the wallet's session policies

Changed on

Grant material (calldata, signatures) is never echoed.

get/wallets/{address}/policies

Request

  • Base URL
    https://api.avaprotocol.org/api/v1
  • Auth
    HTTP bearer

Response

Policies for this wallet, newest first.

Example response

{
  "items": [
    {
      "id": "01JG2FE5MDVKBPHEG0PEYSDKAC",
      "runner": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
      "chainId": 11155111,
      "sessionSigner": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
      "budgetStartAmounts": [
        {
          "token": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
          "amount": "500000000"
        }
      ],
      "budgetStartNative": {
        "amount": "10000000000000000"
      },
      "allowedActions": [
        {
          "target": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB"
        }
      ],
      "erc20SpendCap": {
        "token": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
        "amount": "500000000"
      },
      "erc20SpendCaps": [
        {
          "token": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
          "amount": "500000000"
        }
      ],
      "nativeRecipients": [
        "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB"
      ],
      "delegatedNativeRecipients": [
        {
          "recipient": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB",
          "delegate": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB"
        }
      ],
      "nativeSpendCap": {
        "amount": "10000000000000000"
      },
      "onChainCleanup": {
        "target": "0x82F2Dd9a552a69f2ceD7Ff2D05c43aB8430158FB"
      }
    }
  ]
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status