|
| 1 | +To get a top transaction vote receiver list call `get_top_tx_vote_receiver_list` on the rpc object passing in the offset and limit as a function argument. |
| 2 | + |
| 3 | +if call function without arguments return with default value `offset = 0, limit = 30` |
| 4 | + |
| 5 | +```javascript |
| 6 | +(async () => { |
| 7 | + await rpc.get_top_tx_vote_receiver_list(); |
| 8 | +})(); |
| 9 | +``` |
| 10 | + |
| 11 | +The account info is returned as JSON. |
| 12 | +```json |
| 13 | +{ |
| 14 | + "tx_vote_receiver_list":[ |
| 15 | + { |
| 16 | + "account":"producer.c", |
| 17 | + "tx_votes_weighted":"36349.84243691926531028", |
| 18 | + "tx_votes":1600 |
| 19 | + }, |
| 20 | + { |
| 21 | + "account":"producer.g", |
| 22 | + "tx_votes_weighted":"10223.39017168970167404", |
| 23 | + "tx_votes":450 |
| 24 | + }, |
| 25 | + { |
| 26 | + "account":"producer.a", |
| 27 | + "tx_votes_weighted":"6815.59494994622400554", |
| 28 | + "tx_votes":300 |
| 29 | + }, |
| 30 | + { |
| 31 | + "account":"producer.f", |
| 32 | + "tx_votes_weighted":"5679.66100620731231174", |
| 33 | + "tx_votes":250 |
| 34 | + }, |
| 35 | + { |
| 36 | + "account":"producer.e", |
| 37 | + "tx_votes_weighted":"2271.86370648571210040", |
| 38 | + "tx_votes":100 |
| 39 | + }, |
| 40 | + { |
| 41 | + "account":"producer.d", |
| 42 | + "tx_votes_weighted":"2271.86368144984771789", |
| 43 | + "tx_votes":100 |
| 44 | + }, |
| 45 | + { |
| 46 | + "account":"producer.b", |
| 47 | + "tx_votes_weighted":"2271.86368144984771789", |
| 48 | + "tx_votes":100 |
| 49 | + }, |
| 50 | + { |
| 51 | + "account":"producer.j", |
| 52 | + "tx_votes_weighted":"1135.93184072492363157", |
| 53 | + "tx_votes":50 |
| 54 | + }, |
| 55 | + { |
| 56 | + "account":"producer.i", |
| 57 | + "tx_votes_weighted":"1135.93184072492363157", |
| 58 | + "tx_votes":50 |
| 59 | + }, |
| 60 | + { |
| 61 | + "account":"producer.h", |
| 62 | + "tx_votes_weighted":"1135.93184072492363157", |
| 63 | + "tx_votes":50 |
| 64 | + } |
| 65 | + ], |
| 66 | + "total_tx_votes_weighted":"69291.87515632268332411", |
| 67 | + "total_tx_votes":3050, |
| 68 | + "more":false |
| 69 | +} |
| 70 | +``` |
0 commit comments