hello
How to call the API from an app
const snapId = `npm:@hashgraph/hedera-wallet-snap`
const handleHelloAPI = async () => {
await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId,
request: {
method: 'hello',
params: {
network: 'testnet',
mirrorNodeUrl: 'https://testnet.mirrornode.hedera.com'
}
}
}
})
}What the API does

Live Demo on CodePen
Last updated
Was this helpful?

