kapi2289 / vulcan-api

Unofficial UONET+ e-register API
https://vulcan-api.readthedocs.io/
MIT License
72 stars 17 forks source link

what after registering #145

Open krzakplyt1 opened 5 months ago

krzakplyt1 commented 5 months ago

I'm new at this, registered account, and now it says account already registered

import json
import asyncio
from vulcan import Vulcan
from vulcan import Account
from vulcan import Keystore

async def main():
    keystore = await Keystore.create()
    with open("keystore.json", "w") as f:
        # write a formatted JSON representation
        f.write(keystore.as_json)

        account = await Account.register(keystore, "*", "*", "*")
    with open("account.json", "w") as f:
        # write a formatted JSON representation
        f.write(account.as_json)

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())