- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
// connect to syndica cloud in only a few lines of code
const web3 = require("@solana/web3.js");
let connection = new web3.Connection(
"https://solana-mainnet.api.syndica.io/api-token/<API KEY>/“, 'confirmed',
);
let slot = await connection.getslot();