Created
May 14, 2018 09:27
-
-
Save yupnano/bcbc90921ceae346b1b5513c49437887 to your computer and use it in GitHub Desktop.
This file contains 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
//for testnet, you need to specify options.callback, bescause it's mainnet by default | |
var options = { | |
callback: NebPay.config.testnetUrl //to tell app where to send tx result, and tell queryPayInfo where to query tx result. | |
} | |
//to send transaction | |
serialNumber = nebPay.pay(to, value, options) | |
//to query tx result | |
nebPay.queryPayInfo(serialNumber, options); //note that here you need to specify options argument. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment