orbs-network / ton-access

Unthrottled anonymous RPC access to TON blockchain via a robust decentralized network
MIT License
71 stars 4 forks source link

LITE_SERVER_UNKNOWN: cannot locate transaction in block with specified logical time #41

Open SukhachevN opened 2 months ago

SukhachevN commented 2 months ago

Hello! trying to get last user transaction, but getTransactions request failing with 500 error for some addresses

address example

UQCPm2mjnfNmOHfyCghFUdg1q0YTDSOCOUfOa0hep6gXrvqp

UQDtRXJVdg-rkd80JikHMJsUE6cE_0YFP6Va-e9efJCZ5vC2

UQBJMuq9lGa0zVo04NRjTkIiC8ZStvNTdKth_ZAu4RfjpEZ2

image image

code

import { TonClient, Address } from '@ton/ton';
import { getHttpEndpoint } from '@orbs-network/ton-access';

const client = new TonClient({
    endpoint: await getHttpEndpoint({
        network: 'mainnet',
    }),
});

const lastTx = (
    await client.getTransactions(Address.parse(address), {
        limit: 1,
    })
)[0];