Extract input data from a txHex in an atomic-swap compliant format.
POST/wallet/atomic-swap/tx-proposal/get-input-data
Extract input data from a txHex in an atomic-swap compliant 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
Extract the input data on the given txHex as an atomic-swap signature.
txHex stringrequired
Transaction hex to extract input data.
Responses
- 200
Extract input data from a signed txHex.
- application/json
- Schema
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"signatures": "PartialTxInputData|..."
}
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...