Hello World
Overview
JavaScript function to interact with Hedera Wallet Snap API
const handleHelloAPIRequest = async () => {
const snapId = `npm:@hashgraph/hedera-wallet-snap`
await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId,
request: {
method: 'hello',
params: {
network: 'testnet',
mirrorNodeUrl: 'https://testnet.mirrornode.hedera.com'
}
}
}
})
}Live Demo on CodePen
Last updated
Was this helpful?

