mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-23 20:19:29 +00:00
Merge pull request #556 from emesik/rawtx-relay
Describe "do_not_relay" flag and the strange default
This commit is contained in:
commit
afb4787680
3 changed files with 9 additions and 6 deletions
|
@ -717,6 +717,7 @@ Broadcast a raw transaction to the network.
|
||||||
Inputs:
|
Inputs:
|
||||||
|
|
||||||
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
||||||
|
* *do_not_relay* - boolean; Stop relaying transaction to other nodes (default is `false` now; in versions 0.11.1 it was `true`).
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
|
||||||
|
@ -737,7 +738,7 @@ Example (No return information included here.):
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3..."}' -H 'Content-Type: application/json'
|
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3...", "do_not_relay":false}' -H 'Content-Type: application/json'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -828,4 +829,4 @@ $ curl -X POST http://127.0.0.1:18081/stop_daemon -H 'Content-Type: application/
|
||||||
{
|
{
|
||||||
"status": "OK"
|
"status": "OK"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -718,6 +718,7 @@ Broadcast a raw transaction to the network.
|
||||||
Inputs:
|
Inputs:
|
||||||
|
|
||||||
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
||||||
|
* *do_not_relay* - boolean; Stop relaying transaction to other nodes (default is `false` now; in versions 0.11.1 it was `true`).
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
|
||||||
|
@ -738,7 +739,7 @@ Example (No return information included here.):
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3..."}' -H 'Content-Type: application/json'
|
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3...", "do_not_relay":false}' -H 'Content-Type: application/json'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -829,4 +830,4 @@ $ curl -X POST http://127.0.0.1:18081/stop_daemon -H 'Content-Type: application/
|
||||||
{
|
{
|
||||||
"status": "OK"
|
"status": "OK"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -718,6 +718,7 @@ Broadcast a raw transaction to the network.
|
||||||
Inputs:
|
Inputs:
|
||||||
|
|
||||||
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
* *tx_as_hex* - string; Full transaction information as hexidecimal string.
|
||||||
|
* *do_not_relay* - boolean; Stop relaying transaction to other nodes (default is `false` now; in versions 0.11.1 it was `true`).
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
|
||||||
|
@ -738,7 +739,7 @@ Example (No return information included here.):
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3..."}' -H 'Content-Type: application/json'
|
$ curl -X POST http://127.0.0.1:18081/sendrawtransaction -d '{"tx_as_hex":"de6a3...", "do_not_relay":false}' -H 'Content-Type: application/json'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -829,4 +830,4 @@ $ curl -X POST http://127.0.0.1:18081/stop_daemon -H 'Content-Type: application/
|
||||||
{
|
{
|
||||||
"status": "OK"
|
"status": "OK"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue