Leepa Africa API

Sections

Theme switcher

Permit Messages

Permit messages enable gasless token approvals by allowing users to sign an off-chain message that authorizes Leepa Africa's smart contract to spend their tokens. Instead of requiring an on-chain approval transaction—which costs gas—users can simply sign a structured message with their wallet. This reduces friction at checkout and makes the payment process faster and more cost-effective.

When you submit a signed purchase session, Leepa Africa checks whether the user has already approved token spending. If so, the payment is processed immediately. If not, the response will include a permit message in typed data format. You can present this message to the user for signing. Once signed, submit it to Leepa Africa to complete the approval and proceed with the transaction—all without requiring an additional on-chain approval step.

Was this section helpful?

What made this section unhelpful for you?

On this page
  • Permit Messages