Feature/slate serialization (#2534)
* - Add backwards compatability - Add hex serialization * rustfmt * rustfmt * Windows Compatibility Fixes #1 (#2535) * initial changes for windows build and unit/integration tests * rustfmt * wallet+store tests * rustfmt * fix linux daemonize * better encapsulate file rename * rustfmt * remove daemonize commands * rustfmt * remove server start/stop commands * add ability to drop pmmr backend files explicitly for txhashset unzip * rustfmt * fix pmmr tests * rustfmt * Windows TUI Fix (#2555) * switch pancurses backend to win32 * revert changes to restore test * compatibility fix + debug messages * rustfmt * Add content disposition for OK responses (#2545) * Testing http send and fixing accordingly * add repost method into wallet owner api (#2553) * add repost method into wallet owner api * rustfmt * Add ability to compare selection strategies (#2516) Before tx creation user can estimate fee and locked amount with different selection strategies by providing `-e` flag for `wallet send` command.
This commit is contained in:
committed by
Yeastplume
parent
0d36acf01b
commit
ee4eed71ea
@@ -12,6 +12,7 @@
|
||||
1. [POST Finalize Tx](#post-finalize-tx)
|
||||
1. [POST Cancel Tx](#post-cancel-tx)
|
||||
1. [POST Post Tx](#post-post-tx)
|
||||
1. [POST Repost Tx](#post-repost-tx)
|
||||
1. [POST Issue Burn Tx](#post-issue-burn-tx)
|
||||
1. [Adding Foreign API Endpoints](#add-foreign-api-endpoints)
|
||||
|
||||
@@ -641,6 +642,50 @@ Push new transaction to the connected node transaction pool. Add `?fluff` at the
|
||||
},
|
||||
});
|
||||
```
|
||||
### POST Repost Tx
|
||||
|
||||
Repost a `sending` transaction to the connected node transaction pool with a given transaction id. Add `?fluff` at the end of the URL to bypass Dandelion relay . This could be used for retry posting when a `sending` transaction is created but somehow failed on posting.
|
||||
|
||||
* **URL**
|
||||
|
||||
* /v1/wallet/owner/repost?id=x
|
||||
* /v1/wallet/owner/repost?tx_id=x
|
||||
* /v1/wallet/owner/repost?fluff&tx_id=x
|
||||
|
||||
* **Method:**
|
||||
|
||||
`POST`
|
||||
|
||||
* **URL Params**
|
||||
|
||||
**Required:**
|
||||
* `id=[number]` the transaction id
|
||||
* `tx_id=[string]`the transaction slate id
|
||||
|
||||
* **Data Params**
|
||||
|
||||
None
|
||||
|
||||
* **Success Response:**
|
||||
|
||||
* **Code:** 200
|
||||
|
||||
* **Error Response:**
|
||||
|
||||
* **Code:** 400
|
||||
|
||||
* **Sample Call:**
|
||||
|
||||
```javascript
|
||||
$.ajax({
|
||||
url: "/v1/wallet/owner/repost?id=3",
|
||||
dataType: "json",
|
||||
type : "POST",
|
||||
success : function(r) {
|
||||
console.log(r);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
### POST Issue Burn Tx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user