New Account Address
The micro service ms-new-accounts has a subscription to the MQTT channel heartbeat/address/new and starts processing when a new message arrives. The message contains the account address.
Steps¶
- From the message, take the account address and retrieve account info by calling
GetAccountInfoon thelast_finalblock. - Store a new document in the collection
all_account_addressescontaining theaccount address, as well as theaccount index.