44
55namespace ArkEcosystem \Client \API ;
66
7- class Delegates extends AbstractAPI
7+ class Validators extends AbstractAPI
88{
99 /**
1010 * Get all accounts.
@@ -15,7 +15,7 @@ class Delegates extends AbstractAPI
1515 */
1616 public function all (array $ query = []): ?array
1717 {
18- return $ this ->requestGet ('delegates ' , $ query );
18+ return $ this ->requestGet ('validators ' , $ query );
1919 }
2020
2121 /**
@@ -27,11 +27,11 @@ public function all(array $query = []): ?array
2727 */
2828 public function get (string $ id ): ?array
2929 {
30- return $ this ->requestGet ("delegates / {$ id }" );
30+ return $ this ->requestGet ("validators / {$ id }" );
3131 }
3232
3333 /**
34- * Get all blocks for the given delegate .
34+ * Get all blocks for the given validator .
3535 *
3636 * @param string $id
3737 * @param array $query
@@ -40,11 +40,11 @@ public function get(string $id): ?array
4040 */
4141 public function blocks (string $ id , array $ query = []): ?array
4242 {
43- return $ this ->requestGet ("delegates / {$ id }/blocks " , $ query );
43+ return $ this ->requestGet ("validators / {$ id }/blocks " , $ query );
4444 }
4545
4646 /**
47- * Get all voters for the given delegate .
47+ * Get all voters for the given validator .
4848 *
4949 * @param string $id
5050 * @param array $query
@@ -53,6 +53,6 @@ public function blocks(string $id, array $query = []): ?array
5353 */
5454 public function voters (string $ id , array $ query = []): ?array
5555 {
56- return $ this ->requestGet ("delegates / {$ id }/voters " , $ query );
56+ return $ this ->requestGet ("validators / {$ id }/voters " , $ query );
5757 }
5858}
0 commit comments