Transfer

Transfer ENSC between wallets

POST /transfer

This endpoint generates an unsigned transaction for transferring tokens between wallets. It is designed specifically for transferring ENSC tokens only. The service validates both the sender and recipient addresses, confirms that the asset type is ENSC. It also checks that the sender has sufficient token balance and allowance (pass the sender parameter to approve the token allowance).

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <api_key>

Body

Name
Type
Description

from

string

The wallet address that holds the tokens (sender).

recipient

string

The wallet address that will receive the tokens.

assetType

string

The asset type for the transfer. Must be ENSC.

amount

number

The number of tokens to transfer.

Example

{
  "from": "0xsenderaddress",
  "recipient": "0xrecipientaddress",
  "assetType": "ENSC",
  "amount": 5
}

Common Error Responses

{
  "status": 400,
  "error": "Invalid Request",
  "message": "Invalid sender address",
  "details": { "receivedAddress": "0xInvalidSender" }
}

Last updated