Add signatures to a proposal and return the signed transaction in hex format.
POST/wallet/atomic-swap/tx-proposal/sign
Add signatures to a proposal and return the signed transaction in hex format.
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 return the txHex of the resulting transaction.
partial_tx stringrequired
Proposal to add signatures.
signatures string[]required
Signatures to add.
service
object
Property containing references for this proposal on the Atomic Swap Service
proposal_id stringrequired
Determines the identifier of the registered proposal that is being referenced in this request
version integerrequired
Version of the proposal to be updated on the service mediator
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,
"txHex": "0123..."
}
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...