Skip to content

Commit

Permalink
add: TON RPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithreum committed Dec 11, 2024
1 parent 1740aa0 commit fcd54d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/factory/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export namespace ChainFactoryConfigs {
},
tonParams:{
addressBook: Address.parse("EQB_pf7BP7jobq2QEbhVsXxU4pGsQVdqx-X5F8YU4jGlyCIQ"),
rpcs: [
"https://toncenter.com/api/v2/jsonRPC?api_key=a0b875b16d9045fed8cee2ad6ee7733990afd045a6e2fbb50708186c9f6decb0",
],
rpcs: MainnetRPCUri.TON,
nativeTokenId: BigInt(`0x${sha256_sync("TON").toString("hex")}`),
chainId: 65534n, // TON Mainnet
chainName: "ton",
Expand Down
14 changes: 13 additions & 1 deletion src/factory/rpcs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const AL_KEY: string = "sXEn3HrcMdXyp-UJApfoDmDDA5KSuZKJ";
const TATUM: string = "t-67589fecd04074ce31f008a6-4f245e464661445caaea26d0";


export const MainnetRPCUri = {

Expand Down Expand Up @@ -31,12 +33,22 @@ export const MainnetRPCUri = {
`https://polygon-mainnet.g.alchemy.com/v2/${AL_KEY}`,
"https://solitary-maximum-friday.matic.quiknode.pro/08a337d30e47f0883134773e941aa12a9069c079",
"https://polygon-rpc.com",
"https://polygon-mainnet.g.allthatnode.com/full/evm/e95e54a182194638b7ba5f4598270b44",
// "https://polygon-bor-rpc.publicnode.com",
// "https://1rpc.io/matic",
// "https://rpc.ankr.com/polygon",
// "https://polygon.drpc.org"
// "https://polygon.blockpi.network/v1/rpc/public",
]
],
TON: [
"https://toncenter.com/api/v2/jsonRPC?api_key=a0b875b16d9045fed8cee2ad6ee7733990afd045a6e2fbb50708186c9f6decb0",
"https://go.getblock.io/9cbe9ae971fb4d6e93cd2003075c63e0",
"https://go.getblock.io/690db4c466e7410e9a6746f873ae9fa2",
"https://go.getblock.io/685d2dcf891741da97c007a54972bede",
"https://ton-mainnet.core.chainstack.com/5100b867ed6644ea5e9c5e689baaf6fb/api/v3",
"https://toncenter.com/api/v2/jsonRPC",
"https://ton-mainnet.gateway.tatum.io",
],

} as const;

Expand Down

0 comments on commit fcd54d6

Please sign in to comment.