Events
Each item described here is a PlainDescriptor<T>
PlainDescriptor<T>
For example, System.NewAccount is of type
System.NewAccount
NewAccount: PlainDescriptor<{ "account": SS58String }>; Copy
NewAccount: PlainDescriptor<{ "account": SS58String }>;
and can be queried via
const newAccountEvents = await api.event.System.NewAccount.pull()newAccountEvents.forEach(newAccount => { const address: SS58String = newAccount.payload.account console.log(address)}) Copy
const newAccountEvents = await api.event.System.NewAccount.pull()newAccountEvents.forEach(newAccount => { const address: SS58String = newAccount.payload.account console.log(address)})
PAPI docs on events for more
Events
Each item described here is a
PlainDescriptor<T>
For example,
System.NewAccount
is of typeand can be queried via
See
PAPI docs on events for more