Skip to content

Commit b4278ee

Browse files
authored
Update RPC ports in op-conductor.mdx examples
1 parent e869986 commit b4278ee

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

pages/builders/chain-operators/tools/op-conductor.mdx

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,13 @@ manually started sequencer.
373373
```sh
374374
curl -X POST -H "Content-Type: application/json" --data \
375375
'{"jsonrpc":"2.0","method":"conductor_overrideLeader","params":[],"id":1}' \
376-
http://127.0.0.1:50050
376+
http://127.0.0.1:8547
377377
```
378378
</Tabs.Tab>
379379

380380
<Tabs.Tab>
381381
```sh
382-
cast rpc conductor_overrideLeader --rpc-url http://127.0.0.1:50050
382+
cast rpc conductor_overrideLeader --rpc-url http://127.0.0.1:8547
383383
```
384384
</Tabs.Tab>
385385
</Tabs>
@@ -393,13 +393,13 @@ manually started sequencer.
393393
```sh
394394
curl -X POST -H "Content-Type: application/json" --data \
395395
'{"jsonrpc":"2.0","method":"conductor_pause","params":[],"id":1}' \
396-
http://127.0.0.1:50050
396+
http://127.0.0.1:8547
397397
```
398398
</Tabs.Tab>
399399

400400
<Tabs.Tab>
401401
```sh
402-
cast rpc conductor_pause --rpc-url http://127.0.0.1:50050
402+
cast rpc conductor_pause --rpc-url http://127.0.0.1:8547
403403
```
404404
</Tabs.Tab>
405405
</Tabs>
@@ -413,13 +413,13 @@ manually started sequencer.
413413
```sh
414414
curl -X POST -H "Content-Type: application/json" --data \
415415
'{"jsonrpc":"2.0","method":"conductor_resume","params":[],"id":1}' \
416-
http://127.0.0.1:50050
416+
http://127.0.0.1:8547
417417
```
418418
</Tabs.Tab>
419419

420420
<Tabs.Tab>
421421
```sh
422-
cast rpc conductor_resume --rpc-url http://127.0.0.1:50050
422+
cast rpc conductor_resume --rpc-url http://127.0.0.1:8547
423423
```
424424
</Tabs.Tab>
425425
</Tabs>
@@ -433,13 +433,13 @@ Paused returns true if the op-conductor is paused.
433433
```sh
434434
curl -X POST -H "Content-Type: application/json" --data \
435435
'{"jsonrpc":"2.0","method":"conductor_paused","params":[],"id":1}' \
436-
http://127.0.0.1:50050
436+
http://127.0.0.1:8547
437437
```
438438
</Tabs.Tab>
439439

440440
<Tabs.Tab>
441441
```sh
442-
cast rpc conductor_paused --rpc-url http://127.0.0.1:50050
442+
cast rpc conductor_paused --rpc-url http://127.0.0.1:8547
443443
```
444444
</Tabs.Tab>
445445
</Tabs>
@@ -453,13 +453,13 @@ Stopped returns true if the op-conductor is stopped.
453453
```sh
454454
curl -X POST -H "Content-Type: application/json" --data \
455455
'{"jsonrpc":"2.0","method":"conductor_stopped","params":[],"id":1}' \
456-
http://127.0.0.1:50050
456+
http://127.0.0.1:8547
457457
```
458458
</Tabs.Tab>
459459

460460
<Tabs.Tab>
461461
```sh
462-
cast rpc conductor_stopped --rpc-url http://127.0.0.1:50050
462+
cast rpc conductor_stopped --rpc-url http://127.0.0.1:8547
463463
```
464464
</Tabs.Tab>
465465
</Tabs>
@@ -473,13 +473,13 @@ SequencerHealthy returns true if the sequencer is healthy.
473473
```sh
474474
curl -X POST -H "Content-Type: application/json" --data \
475475
'{"jsonrpc":"2.0","method":"conductor_sequencerHealthy","params":[],"id":1}' \
476-
http://127.0.0.1:50050
476+
http://127.0.0.1:8547
477477
```
478478
</Tabs.Tab>
479479

480480
<Tabs.Tab>
481481
```sh
482-
cast rpc conductor_sequencerHealthy --rpc-url http://127.0.0.1:50050
482+
cast rpc conductor_sequencerHealthy --rpc-url http://127.0.0.1:8547
483483
```
484484
</Tabs.Tab>
485485
</Tabs>
@@ -497,13 +497,13 @@ Leader returns true if the server is the leader.
497497
```sh
498498
curl -X POST -H "Content-Type: application/json" --data \
499499
'{"jsonrpc":"2.0","method":"conductor_leader","params":[],"id":1}' \
500-
http://127.0.0.1:50050
500+
http://127.0.0.1:8547
501501
```
502502
</Tabs.Tab>
503503

504504
<Tabs.Tab>
505505
```sh
506-
cast rpc conductor_leader --rpc-url http://127.0.0.1:50050
506+
cast rpc conductor_leader --rpc-url http://127.0.0.1:8547
507507
```
508508
</Tabs.Tab>
509509
</Tabs>
@@ -521,21 +521,21 @@ LeaderWithID returns the current leader's server info.
521521
```sh
522522
curl -X POST -H "Content-Type: application/json" --data \
523523
'{"jsonrpc":"2.0","method":"conductor_leaderWithID","params":[],"id":1}' \
524-
http://127.0.0.1:50050
524+
http://127.0.0.1:8547
525525
```
526526
</Tabs.Tab>
527527

528528
<Tabs.Tab>
529529
```sh
530-
cast rpc conductor_leaderWithID --rpc-url http://127.0.0.1:50050
530+
cast rpc conductor_leaderWithID --rpc-url http://127.0.0.1:8547
531531
```
532532
</Tabs.Tab>
533533
</Tabs>
534534

535535
#### conductor_addServerAsVoter
536536

537537
<Callout type="info">
538-
API related to consensus. The address parameter is the raft consensus address, not the RPC address.
538+
API related to consensus.
539539
</Callout>
540540

541541
AddServerAsVoter adds a server as a voter to the cluster.
@@ -544,14 +544,14 @@ AddServerAsVoter adds a server as a voter to the cluster.
544544
<Tabs.Tab>
545545
```sh
546546
curl -X POST -H "Content-Type: application/json" --data \
547-
'{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[<id>, <addr>, <version>],"id":1}' \
548-
http://127.0.0.1:50050
547+
'{"jsonrpc":"2.0","method":"conductor_addServerAsVoter","params":[<id>, <raft-consensus-addr>, <version>],"id":1}' \
548+
http://127.0.0.1:8547
549549
```
550550
</Tabs.Tab>
551551

552552
<Tabs.Tab>
553553
```sh
554-
cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:50050 <id> <raft-consensus-addr> <version>
554+
cast rpc conductor_addServerAsVoter --rpc-url http://127.0.0.1:8547 <id> <raft-consensus-addr> <version>
555555
```
556556
</Tabs.Tab>
557557
</Tabs>
@@ -570,13 +570,13 @@ The non-voter will not participate in the leader election.
570570
```sh
571571
curl -X POST -H "Content-Type: application/json" --data \
572572
'{"jsonrpc":"2.0","method":"conductor_addServerAsNonvoter","params":[],"id":1}' \
573-
http://127.0.0.1:50050
573+
http://127.0.0.1:8547
574574
```
575575
</Tabs.Tab>
576576

577577
<Tabs.Tab>
578578
```sh
579-
cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:50050
579+
cast rpc conductor_addServerAsNonvoter --rpc-url http://127.0.0.1:8547
580580
```
581581
</Tabs.Tab>
582582
</Tabs>
@@ -594,13 +594,13 @@ RemoveServer removes a server from the cluster.
594594
```sh
595595
curl -X POST -H "Content-Type: application/json" --data \
596596
'{"jsonrpc":"2.0","method":"conductor_removeServer","params":[],"id":1}' \
597-
http://127.0.0.1:50050
597+
http://127.0.0.1:8547
598598
```
599599
</Tabs.Tab>
600600

601601
<Tabs.Tab>
602602
```sh
603-
cast rpc conductor_removeServer --rpc-url http://127.0.0.1:50050
603+
cast rpc conductor_removeServer --rpc-url http://127.0.0.1:8547
604604
```
605605
</Tabs.Tab>
606606
</Tabs>
@@ -618,13 +618,13 @@ TransferLeader transfers leadership to another server.
618618
```sh
619619
curl -X POST -H "Content-Type: application/json" --data \
620620
'{"jsonrpc":"2.0","method":"conductor_transferLeader","params":[],"id":1}' \
621-
http://127.0.0.1:50050
621+
http://127.0.0.1:8547
622622
```
623623
</Tabs.Tab>
624624

625625
<Tabs.Tab>
626626
```sh
627-
cast rpc conductor_transferLeader --rpc-url http://127.0.0.1:50050
627+
cast rpc conductor_transferLeader --rpc-url http://127.0.0.1:8547
628628
```
629629
</Tabs.Tab>
630630
</Tabs>
@@ -642,13 +642,13 @@ TransferLeaderToServer transfers leadership to a specific server.
642642
```sh
643643
curl -X POST -H "Content-Type: application/json" --data \
644644
'{"jsonrpc":"2.0","method":"conductor_transferLeaderToServer","params":[],"id":1}' \
645-
http://127.0.0.1:50050
645+
http://127.0.0.1:8547
646646
```
647647
</Tabs.Tab>
648648

649649
<Tabs.Tab>
650650
```sh
651-
cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:50050
651+
cast rpc conductor_transferLeaderToServer --rpc-url http://127.0.0.1:8547
652652
```
653653
</Tabs.Tab>
654654
</Tabs>
@@ -662,13 +662,13 @@ ClusterMembership returns the current cluster membership configuration.
662662
```sh
663663
curl -X POST -H "Content-Type: application/json" --data \
664664
'{"jsonrpc":"2.0","method":"conductor_clusterMembership","params":[],"id":1}' \
665-
http://127.0.0.1:50050
665+
http://127.0.0.1:8547
666666
```
667667
</Tabs.Tab>
668668

669669
<Tabs.Tab>
670670
```sh
671-
cast rpc conductor_clusterMembership --rpc-url http://127.0.0.1:50050
671+
cast rpc conductor_clusterMembership --rpc-url http://127.0.0.1:8547
672672
```
673673
</Tabs.Tab>
674674
</Tabs>
@@ -686,13 +686,13 @@ Active returns true if the op-conductor is active (not paused or stopped).
686686
```sh
687687
curl -X POST -H "Content-Type: application/json" --data \
688688
'{"jsonrpc":"2.0","method":"conductor_active","params":[],"id":1}' \
689-
http://127.0.0.1:50050
689+
http://127.0.0.1:8547
690690
```
691691
</Tabs.Tab>
692692

693693
<Tabs.Tab>
694694
```sh
695-
cast rpc conductor_active --rpc-url http://127.0.0.1:50050
695+
cast rpc conductor_active --rpc-url http://127.0.0.1:8547
696696
```
697697
</Tabs.Tab>
698698
</Tabs>
@@ -711,13 +711,13 @@ layer.
711711
```sh
712712
curl -X POST -H "Content-Type: application/json" --data \
713713
'{"jsonrpc":"2.0","method":"conductor_commitUnsafePayload","params":[],"id":1}' \
714-
http://127.0.0.1:50050
714+
http://127.0.0.1:8547
715715
```
716716
</Tabs.Tab>
717717

718718
<Tabs.Tab>
719719
```sh
720-
cast rpc conductor_commitUnsafePayload --rpc-url http://127.0.0.1:50050
720+
cast rpc conductor_commitUnsafePayload --rpc-url http://127.0.0.1:8547
721721
```
722722
</Tabs.Tab>
723723
</Tabs>

0 commit comments

Comments
 (0)