POST /approve
This endpoint generates an unsigned transaction for approving token spending. The approval transaction lets a smart contract (or a specified sender address) spend a given amount of tokens on behalf of the recipient. If a sender is provided, the approval will be generated using that address (and only the ENSC asset type is allowed in that case). Otherwise, the recipient’s address is used.
Headers
Body
Example 1: Approval for Redeeming Assets (No Sender Provided)
Request
- Body
- Response (200) Ok
- Invalid Recipient (400) bad
- Body
- Response (200) Ok
- Invalid Asset When Sender is Provided (400) bad