Skip to content

Commit 26013a7

Browse files
author
Aleobot
committed
Sync snarkOS documentation
1 parent 3d1121a commit 26013a7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

rpc/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,28 @@ curl --data-binary '{"jsonrpc": "2.0", "id":"documentation", "method": "validate
416416

417417

418418

419+
## connect
420+
Adds the given addresses to the node's list of peers and attempts to connect to them.
421+
422+
### Protected Endpoint
423+
424+
Yes
425+
426+
### Arguments
427+
428+
| Parameter | Type | Required | Description |
429+
|:-------------------:|:------:|:--------:|:------------------------------------------------ |
430+
| `addresses` | array | Yes | The addresses to connect to in an IP:port format |
431+
432+
### Response
433+
434+
null
435+
436+
### Example
437+
```ignore
438+
curl --user username:password --data-binary '{"jsonrpc": "2.0", "id":"1", "method": "connect", "params": ["127.0.0.1:4141", "127.0.0.1:4142"] }' -H 'content-type: application/json' http://127.0.0.1:3030/
439+
```
440+
419441
## createaccount
420442
Creates a new account private key and its corresponding account address.
421443

0 commit comments

Comments
 (0)