Skip to content

Instantly share code, notes, and snippets.

@Goodnessuc
Last active May 20, 2022 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Goodnessuc/aa1a5af375a68831a5e89e5c5f5a2b5f to your computer and use it in GitHub Desktop.
Save Goodnessuc/aa1a5af375a68831a5e89e5c5f5a2b5f to your computer and use it in GitHub Desktop.
Cardano Javascript
let walletServer = walletserver.init("path")
let recoveryPhrase = seed.generateRecoveryPhrase()
let mnemonic = seed.toMnemonicList(recoveryPhrase)
let passphrase = "name"
let walletName = "name"
let wallet = await walletServer.createOrRestoreShelleyWallet(walletName, mnemonic, passphrase)
let transaction = await wallet.getTransaction("transaction id");
console.log(transaction)
let query = await walletServer.getNetworkInformation()
console.log(query)
const WalletServer = require('cardano-wallet-js');
let walletServer = WalletServer.init('Your wallet server host URL');
let transactions = await wallet.getTransactions();
console.log(transactions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment