The exported object is called TonGateway, not TonAccess
...
var nt = T((C) => {
Object.defineProperty(C, "__esModule", { value: !0 });
var j = L();
// here
window.TonGateway = { create: () => new j.Gateway(), getHttpEndpoint: j.getHttpEndpoint, getHttpV4Endpoint: j.getHttpV4Endpoint };
});
nt();
After loading the script via CDN, TonGateway needs to be referenced, not TonAccess. Otherwise, the call to, e.g., TonAccess.getHttpEndpoint will cause "not defined" error. I propose to fix that in the docs.
TonAccess.getHttpEndpoint() // TonAccess is not defined
TonGateway.getHttpEndpoint() // this works
The exported object is called
TonGateway
, notTonAccess
After loading the script via CDN,
TonGateway
needs to be referenced, notTonAccess
. Otherwise, the call to, e.g., TonAccess.getHttpEndpoint will cause "not defined" error. I propose to fix that in the docs.