Last active
March 14, 2017 09:30
-
-
Save danfinlay/e3e6bab3470b6f514e20f8e21ac877c5 to your computer and use it in GitHub Desktop.
A simple metamask notification code example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var state = { | |
imageifyIdenticons: false, | |
txData: { | |
"id":1467868023090690,"txParams":{"data":"0xa9059cbb0000000000000000000000008deb4d106090c3eb8f1950f727e87c4f884fb06f0000000000000000000000000000000000000000000000000000000000000064","from":"0xfdea65c8e26263f6d9a1b5de9555d2931a33b825","value":"0x16345785d8a0000","to":"0xbeb0ed3034c4155f3d16a64a5c5e7c8d4ea9e9c9","origin":"MetaMask","metamaskId":1467868023090690,"metamaskNetworkId":"2"},"time":1467868023090,"status":"unconfirmed","containsDelegateCall":false | |
}, | |
accounts: { | |
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': { | |
balance: "0x15e578bd8e9c8000", | |
} | |
}, | |
identities: { | |
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': { | |
name: "My Main Wallet", | |
balance: "0x15e578bd8e9c8000", | |
} | |
}, | |
} | |
METAMASK_NOTIFIER.createTxNotification(state) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment