Skip to content

Commit 92e7acd

Browse files
f-r00tgitbook-bot
authored andcommitted
GitBook: [#32] Updated sendtransaction example for curl
1 parent 55fac17 commit 92e7acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

developer/kryptokrona/api/Legacy-Wallet-RPC-API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ To make a JSON RPC request to your kryptokrona RPC Wallet you should use a GET r
4242

4343
`http://<service address>:<service port>/json_rpc`
4444

45-
| Parameter | Description |
46-
| ------------------- | ------------------------------------------------------------------------------------------------------------------ |
45+
| Parameter | Description |
46+
| ------------------- | ------------------------------------------------------------------------------------------------------------------- |
4747
| `<service address>` | IP of kryptokrona RPC Wallet, if RPC Wallet is located on local machine it is either 127.0.0.1 or localhost |
4848
| `<service port>` | kryptokrona RPC Wallet port, by default it is bound to 8070 port, but it can be manually bound to any port you want |
4949

@@ -1095,7 +1095,7 @@ if err != nil {
10951095
| fee | The fee of the send transaction | int |
10961096

10971097
```
1098-
curl -d '{"jsonrpc":"2.0","id":1,"password":"passw0rd","method":"sendTransaction","params":{"transfers":[{"address":"SEKRxxxx...","amount":5000}],"anonymity":3,"changeAddress":"SEKRyyyy..."}}' http://localhost:8070/json_rpc
1098+
curl -X POST -i -H "Accept: application/json" -d '{"jsonrpc":"2.0","id":"0","password":"passw0rd","method":"sendTransaction","params":{"transfers":[{"amount":5000,"address":"SEKReTFHsz8G4...Y5owuFxLd"}],"fee":100,"anonymity":3,"unlockTime":0}}' http://localhost:8070/json_rpc
10991099
```
11001100

11011101
```

0 commit comments

Comments
 (0)