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

**URL:** <https://builder.metamask.io/t/archive-ink-smart-contract-interaction-using-web3auth-generated-private-key/1342>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [June 6, 2024, 10:26am UTC](https://builder.metamask.io/t/archive-ink-smart-contract-interaction-using-web3auth-generated-private-key/1342 "2024-06-06T10:26:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjahmad4tech](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bjahmad4tech](https://builder.metamask.io/u/bjahmad4tech)\
**Post date:** [June 6, 2024, 10:26am UTC](https://builder.metamask.io/t/archive-ink-smart-contract-interaction-using-web3auth-generated-private-key/1342/1 "2024-06-06T10:26:02Z")

</div>

> **🏛 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 .

- **Browser Console Screenshots** :  

[![Screenshot 2024-06-06 at 11.23.52](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/b2acd93d008024df723e466e664547eb2e914485.png)
Screenshot 2024-06-06 at 11.23.521278×1292 247 KB
](https://web3auth.io/community/uploads/default/original/2X/1/1826b5bcc343f43a9e5acef565924e0236dc8d6e.png "Screenshot 2024-06-06 at 11.23.52")

**Web3Auth initialization and login code snippet**

Login and Initialize code

[![Screenshot 2024-06-06 at 11.25.44](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/80f8c6789733da1bb11f281667323e18ff85e62f.png)
Screenshot 2024-06-06 at 11.25.441600×1958 345 KB
](https://web3auth.io/community/uploads/default/original/2X/d/daeede12474e9b32874a0d26e8aac94f20f9c20c.png "Screenshot 2024-06-06 at 11.25.44")

Smart contract interaction using Web3auth generated private key

[![Screenshot 2024-06-06 at 11.24.49](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/1X/16f59d1f90aab6f2ef438d3b0eff20ec2f85b96e.png)
Screenshot 2024-06-06 at 11.24.491978×2132 487 KB
](https://web3auth.io/community/uploads/default/original/2X/6/6c035b622dfeac5c0056d80807644d6efdc887b1.png "Screenshot 2024-06-06 at 11.24.49")

---

<div class="post-metadata">

**Author:** ![TomTom](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@TomTom](https://builder.metamask.io/u/TomTom)\
**Post date:** [June 6, 2024, 11:46am UTC](https://builder.metamask.io/t/archive-ink-smart-contract-interaction-using-web3auth-generated-private-key/1342/2 "2024-06-06T11:46:35Z")

</div>

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.
