const httpClient = new HttpClient({
baseUrl: 'https://tonapi.io',
baseApiParams: {
headers: {
Authorization: `Bearer xxxxx`,
'Content-type': 'application/json'
}
}
})
const client = new Api(httpClient)
async function test() {
const transcations_res = await client.blockchain
.getBlockchainBlockTransactions('(0,2000000000000000,47501808)')
.catch((err) => {
console.log(err)
})
if (transcations_res) {
console.log('done', transcations_res.transactions.length)
}
}
setInterval(() => {
test()
}, 1000)