Integration on my project UE4 4.23 HTML5 build of a login function with metamask, (knowledge of emscripten JS and C ++ required)

Job ID: 34313464

Budget: €50 – €150 EUR

Hi, I'm trying to get a javascript script to communicate with my UE4 game (My project is on HTML5 build on UE version 4.23)
The purpose is to start the js function (with emscripten) that allows you to connect a Metamask wallet (browser extension) via a widget button on Unreal and receive the metamask account from the function as a string variable on the blueprint.
This is the javascript example code that allows the connection to metamask and returns the account on the log

async function onInit() {
await window.ethereum.enable();
const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });
const account = accounts[0];
console.log(account)
window.ethereum.on('accountsChanged', function (accounts) {
// Time to reload your interface with accounts[0]!
console.log(accounts[0])
});
}
onInit();

There are various examples on Github and reference projects on how to communicate with C ++ JS on UE4

https://github.com/tgraupmann/UE4HTML5SamplePlugin

https://github.com/UnrealEngineHTML5/Documentation/issues/6