Add signatures to a proposal and push the signed transaction.
POST/wallet/atomic-swap/tx-proposal/sign-and-push
Add signatures to a proposal and push the signed transaction.
Request
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
- application/json
Body
required
Add signatures and push the resulting transaction.
partial_tx stringrequired
Proposal to add signatures.
signatures string[]required
Signatures to add.
Responses
- 200
Add signatures to a proposal.
- application/json
- Schema
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"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."
}
Loading...