Advertisement
Guest User

Untitled

a guest
Apr 5th, 2021
1,710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import CardanoRay from 'cardano-ray'
  2.  
  3. const mnemonic = CardanoRay.generateMnemonic()
  4. const prvkey = CardanoRay.getPrivateKey(mnemonic)
  5.  
  6. const cardano = CardanoRay.init({
  7.   network: 'mainnet',
  8.   graphql: 'https://graphql.rraayy.com',
  9.   key: prvkey,
  10. })
  11.  
  12. // check 80 first addresses for balances
  13. const addressesWithBalances = await cardano.getAddressesWithBalances()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement