finish the subscribe_address api and example.