Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions wallet/how-to/connect/set-up-sdk/javascript/pure-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ To import, instantiate, and use the SDK, you can insert a script in the head sec

<script>

const MMSDK = new MetaMaskSDK()
const MMSDK = new MetaMaskSDK.MetaMaskSDK()
// Because init process of the MetaMaskSDK is async.
setTimeout(() => {
const ethereum = MMSDK.getProvider() // You can also access via window.ethereum

const ethereum = MMSDK.getProvider() // You can also access via window.ethereum

ethereum.request({method: 'eth_requestAccounts'})
ethereum.request({ method: 'eth_requestAccounts' })
}, 0)

</script>

Expand Down