Aperture API for UniV3 Automation
    Aperture API for UniV3 Automation
    • Aperture Finance UniV3 Automation API
    • /checkPositionApproval
      GET
    • /updatePositionPermit
      POST
    • /createTrigger
      POST
    • /listTrigger
      GET
    • /updateTrigger
      POST
    • /deleteTrigger
      POST
    • /checkUserLimit
      GET

      /updatePositionPermit

      Prod Env
      https://api.aperture.finance
      Prod Env
      https://api.aperture.finance
      POST
      /updatePositionPermit

      Request

      Body Params application/json
      chainId
      enum<number> 
      required
      The chain id of the network. Must be one of the chains supported by Aperture.
      Allowed values:
      1421615421613
      Example:
      1
      tokenId
      string 
      required
      The nonfungible token id of the position.
      >= 1 characters
      permitInfo
      object 
      required
      Information about a "permit" message signed by the position owner authorizing Aperture UniV3 Automan contract to trigger actions on the position. See https://eips.ethereum.org/EIPS/eip-4494 for information on the "permit" approval flow.
      signature
      string 
      required
      A raw signature of the ERC-712 typed message described in ERC-4494; the signature can be generated, for example, by https://docs.ethers.org/v5/api/signer/#Signer-signTypedData.
      >= 1 characters
      deadline
      string 
      required
      Unix timestamp in seconds indicating deadline for the signed "permit".
      >= 1 characters
      Example
      {
          "chainId": 1,
          "tokenId": "string",
          "permitInfo": {
              "signature": "string",
              "deadline": "string"
          }
      }

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.aperture.finance/updatePositionPermit' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "chainId": 1,
          "tokenId": "string",
          "permitInfo": {
              "signature": "string",
              "deadline": "string"
          }
      }'

      Responses

      🟢200Position permit updated successfully.
      application/json
      Body
      object {0}
      Example
      {}
      🟠400Bad Request
      🔴500Internal Server Error
      Previous
      /checkPositionApproval
      Next
      /createTrigger
      Built with