please use a web5 client, for example: https://github.com/TBD54566975/web5-js