[Archive] Ink Smart Contract Interaction using Web3Auth generated private key

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by bjahmad4tech on 6/6/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.


When asking for help in this category, please make sure to provide the following details:

  • SDK Version(package.json):
    @web3auth/base: β€œ^8.0.0”
    @web3auth/base-provider: β€œ^8.0.1”
    @web3auth/modal: β€œ^8.0.1”

  • Platform:
    Web (React/TS)

Description of problem
I created a new Substrate compatible account and got a private key but I am having some trouble submitting an ink/polkadot smart contract based transaction because I cannot get the right format .

Web3Auth initialization and login code snippet

Login and Initialize code

Screenshot 2024-06-06 at 11.25.44
Screenshot 2024-06-06 at 11.25.441600Γ—1958 345 KB

Smart contract interaction using Web3auth generated private key

Screenshot 2024-06-06 at 11.24.49
Screenshot 2024-06-06 at 11.24.491978Γ—2132 487 KB

hi @bjahmad4tech,

Thanks for bringing your problem here. It’s better to share code and links.
If you want me to provide help, I will require access to the repository or you can try pasting the code in a text format. Sharing the repository would be ideal.