Skip to content

Commit

Permalink
feat: use getblock rpc api
Browse files Browse the repository at this point in the history
  • Loading branch information
alsakhaev committed Jun 13, 2024
1 parent 479686b commit 780c608
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functions/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function socialGet(keys, blockHeight, parse) {
}

export async function viewCall({ contractId, method, args }) {
const res = await fetch("https://rpc.mainnet.near.org", {
const res = await fetch("https://go.getblock.io/75e825521eeb49c9bbb15e6c977b147c", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getNetworkPreset = (networkId) => {
case "mainnet":
return {
networkId,
nodeUrl: "https://rpc.mainnet.near.org",
nodeUrl: "https://go.getblock.io/75e825521eeb49c9bbb15e6c977b147c",
helperUrl: "https://helper.mainnet.near.org",
explorerUrl: "https://nearblocks.io",
indexerUrl: "https://api.kitwallet.app",
Expand Down Expand Up @@ -93,7 +93,7 @@ function App(props) {
(window.location.hostname === "near.social"
? "https://rpc.fastnear.com"
: NetworkId === "mainnet"
? "https://free.rpc.fastnear.com"
? "https://go.getblock.io/75e825521eeb49c9bbb15e6c977b147c"
: "https://rpc.testnet.near.org");
if (injectedConfig?.skipConfirmations) {
features.commitModalBypass = {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8029,7 +8029,7 @@ mustache@^4.0.0:

"mutable-web-engine@github:dapplets/mutable-web-engine":
version "0.1.0"
resolved "https://codeload.github.com/dapplets/mutable-web-engine/tar.gz/4b95925c1c05c5d4a2c748514b014268d1e3babc"
resolved "https://codeload.github.com/dapplets/mutable-web-engine/tar.gz/d66d0983bc64d1a8585db5632764e111cc6d237e"
dependencies:
big.js "^6.2.1"
caching-decorator "^1.0.3"
Expand Down

0 comments on commit 780c608

Please sign in to comment.