Closed aaroncox closed 1 year ago
I found that most of the types are already defined in your library but not exported as far as I can tell.
// copied from eosio-core
interface ActiveScheduleProducerAuthority extends Struct {
producer_name:Name
authority:any
}
interface ActiveScheduleProducer extends Struct {
producer_name:Name
authority:ActiveScheduleProducerAuthority
}
interface ActiveSchedule extends Struct {
version:UInt32
producers:ActiveScheduleProducer[]
}
// I made this one
interface GetProducerScheduleResponse {
active:ActiveSchedule
pending:any
proposed:any
}
Released in 0.6.11
We need to wrap a call around this endpoint:
https://eos.greymass.com/v1/chain/get_producer_schedule
It returns an ordered schedule at the time of the call containing the producer and their signing authority. Should be relatively easy to type and return the response.
Example response: