/createTrigger
POST
/createTriggerRequest
Signature of the payload.
The owner address of the position; must be a checksum address.
The chain id of the network. Must be one of the chains supported by Aperture.
The nonfungible token id of the position.
The condition which triggers the action. If a trigger is successfully created with a condition that is already met at the time of trigger creation, then the action is immediately eligible to be triggered.
Unix timestamp in seconds when this trigger expires.
If Aperture doesn't already have authority over the position, then permitInfo
should be obtained from the user and populated here.
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.
Unix timestamp in seconds indicating deadline for the signed "permit".
{
"payloadSignature": "string",
"payload": {
"ownerAddr": "string",
"chainId": 1,
"nftId": "string",
"action": {
"type": "Close",
"slippage": 0,
"maxGasProportion": 1
},
"condition": {
"type": "Time",
"timeAfterEpochSec": 1
},
"expiration": 1
},
"permitInfo": {
"signature": "string",
"deadline": "string"
}
}
Request samples
Responses
{}