Fetches a proposal data from the Atomic Swap Service
GET/wallet/atomic-swap/tx-proposal/fetch/:proposalId
Fetches a proposal data from the Atomic Swap Service
Request
Path Parameters
proposalId stringrequired
Registered proposal identifier
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Successful data fetching from the service.
- application/json
- Schema
- success
- service-failure
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": {
"summary": "Successful fetch",
"value": {
"success": true,
"proposal": {
"proposalId": "1a574e6c-73...",
"version": 1,
"timestamp": "Fri Mar 10 2023 23:13:...",
"partialTx": "PartialTx|000100010...",
"signatures": null,
"history": []
}
}
}
}
Failure on the service side
{
"success": {
"summary": "Unsuccessful fetch from the Atomic Swap Service",
"value": {
"success": false,
"error": "Failure description on the swap service"
}
}
}
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...