Send a transaction to exactly one output.
POST/wallet/simple-send-tx
Send a transaction to exactly one output.
Request
Header Parameters
Defines the key of the wallet on which the request will be executed.
- application/json
Body
required
Data to create the transaction
Address to send the tokens.
The value parameter must be an integer with the value in cents, i.e., 123 means 1.23 HTR.
Token uid to send the transaction, just in case is not HTR.
token [DEPRECATED]
object
[DEPRECATED] Token to send the transaction, just in case is not HTR. This parameter is old and still works for compatibility reasons but will be removed soon, you should use the string format.
UID of the custom token to send the transaction.
Name of the custom token to send the transaction.
Symbol of the custom token to send the transaction.
Optional address to send the change amount.
Responses
- 200
Send a transaction
- application/json
- Schema
- error
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Insuficient amount of tokens
{
"success": false,
"error": "Token HTR: Insufficient amount of tokens"
}
Success
{
"success": true,
"message": "",
"tx": {
"hash": "00001bc7043d0aa910e28aff4b2aad8b4de76c709da4d16a48bf713067245029",
"nonce": 33440807,
"timestamp": 1579656120,
"version": 1,
"weight": 16.827294220302488,
"parents": [
"000036e846dee9f58a724543cf5ee14cf745286e414d8acd9563963643f8dc34",
"000000fe2da5f4cc462e8ccaac8703a38cd6e4266e227198f003dd5c68092d29"
],
"inputs": [
{
"tx_id": "000000fe2da5f4cc462e8ccaac8703a38cd6e4266e227198f003dd5c68092d29",
"index": 0,
"data": "RzBFAiEAyKKbtzdH7FjvjUopHFIXBf+vBcH+2CKirp0mEnLjjvMCIA9iSuW4B/UJMQld+c4Ch5lIwAcTbzisNUaCs+JpK8yDIQI2CLavb5spKwIEskxaVu0B2Tp52BXas3yjdX1XeMSGyw=="
}
],
"outputs": [
{
"value": 1,
"token_data": 0,
"script": "dqkUtK1DlS8IDGxtJBtRwBlzFWihbIiIrA=="
}
],
"tokens": []
}
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}