Skip to content

Commit

Permalink
chore: txn confirm with funds
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaGupta committed Jun 28, 2024
1 parent 22ceb1a commit cc640dd
Show file tree
Hide file tree
Showing 3 changed files with 2,361 additions and 2,211 deletions.
11 changes: 9 additions & 2 deletions apps/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const run = async () => {
const deviceInfo = await managerApp.getDeviceInfo();
console.log(deviceInfo);

const wallet = (await managerApp.getWallets()).walletList[0];
const wallet = (await managerApp.getWallets()).walletList[1];
console.log("wallet ID: ", wallet.id);

const bittensorApp = await BittensorApp.create(connection);
Expand All @@ -94,9 +94,16 @@ const run = async () => {
// Addr (0) : 1NthTCKurNHLW52mMa6iA8Gz7UFYW5UnM3yTSpVdGu4Th7h

// Establish websocket connection
const wsProvider = new WsProvider('wss://westend-rpc.polkadot.io');
const {cryptoWaitReady} = await import('@polkadot/util-crypto')
await cryptoWaitReady()
console.log('Polkadot crypto is ready')

const wsProvider = new WsProvider('wss://test.finney.opentensor.ai:443');

const api = await ApiPromise.create({ provider: wsProvider });

await api.isReady;

const dest = '5CSbZ7wG456oty4WoiX6a1J88VUbrCXLhrKVJ9q95BsYH4TZ';
const amount = 123456789; // WND

Expand Down
Loading

0 comments on commit cc640dd

Please sign in to comment.