Token Transfer
POST /api/v1/tokens/{tokenId}/transfer
Transfers tokens to a target account. Provide amount for fungible tokens or serialNumbers for NFTs (not both required). Only users with the Installer (User) role are allowed to make the request.
Authentication: Bearer token required (Authorization: Bearer <token>)
Permission: Permissions.TOKENS_TOKEN_EXECUTE
Request
Path Parameters
tokenId
string
Yes
The internal database ID of the token to transfer
Request Body
{
"targetAccount": "0.0.12345",
"amount": 10,
"memo": "Optional memo"
}targetAccount
string
Yes
Hedera account ID to receive the tokens
amount
number
Conditional
Fungible token amount; required if serialNumbers is absent; must be > 0
serialNumbers
number[]
Conditional
NFT serial numbers to transfer; required if amount is absent; each must be a positive integer
memo
string
No
Optional transaction memo
Response
Success Response
Status: 200 OK
status
boolean
true if all requested serials transferred successfully
serials
number[]
Serial numbers that were transferred (empty array for fungible tokens)
Error Responses
401 Unauthorized
Missing or invalid token
403 Forbidden
Insufficient permissions
422 Unprocessable Entity
User is not registered, or body validation failed (missing targetAccount, or neither amount nor serialNumbers provided)
500 Internal Server Error
Unexpected server failure
Was this helpful?