How do I pull up MetaMask and make a payment? #5252
Unanswered
LittleXu
asked this question in
Developer Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
my code
let chain = Web3Modal.instance.getSelectedChain()!
Task {
do {
try await Web3Modal.instance.request(.eth_sendTransaction(from: address, to: toAddress, value: "0x8ac7230489e80000", data: "0x", nonce: nil, gas: "0x76c0", gasPrice: "0x4a817c800", maxFeePerGas: nil, maxPriorityFeePerGas: nil, gasLimit: nil, chainId: chain.id))
Web3Modal.instance.launchCurrentWallet()
} catch {
print(error)
}
}
Using the above code,i can enter the MetaMask App, but then a pop-up prompts you to return to the App for action
Beta Was this translation helpful? Give feedback.
All reactions