Skip to content

Commit

Permalink
Merge pull request #81 from scott-klaytn/node-url-update
Browse files Browse the repository at this point in the history
Update additional urls and terms
  • Loading branch information
scott-klaytn authored Aug 25, 2024
2 parents 8e77c88 + f2d602a commit c8e020e
Show file tree
Hide file tree
Showing 105 changed files with 157 additions and 161 deletions.
2 changes: 1 addition & 1 deletion docs/build/smart-contracts/deploy/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ $ npm install caver-js.

```
const Caver = require("caver-js");
const caver = new Caver("https://public-en-baobab.klaytn.net")
const caver = new Caver("https://public-en-kairos.node.kaia.io")
const walletInstance = caver.kaia.accounts.privateKeyToAccount(
'0x3de0c9...' // enter your private key to deploy contract with
Expand Down
4 changes: 2 additions & 2 deletions docs/build/smart-contracts/ide-and-tools/truffle.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {

return new HDWalletProvider(
mnemonic,
"https://public-en-baobab.klaytn.net",
"https://public-en-kairos.node.kaia.io",
0,
mnemonic.length
);
Expand Down Expand Up @@ -164,7 +164,7 @@ module.exports = {

return new HDWalletProvider(
pks,
"https://public-en-baobab.klaytn.net",
"https://public-en-kairos.node.kaia.io",
0,
pks.length
);
Expand Down
4 changes: 2 additions & 2 deletions docs/build/tools/oracles/supraoracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ As of the time of writing, getEthUsdtPrice() returned "185795966200", an 8-point
const getEthUsdtPrice = async () => {
const abi = [{ "inputs": [ { "internalType": "string", "name": "marketPair", "type": "string" } ], "name": "checkPrice", "outputs": [ { "internalType": "int256", "name": "price", "type": "int256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]
const address = '0x7f003178060af3904b8b70fEa066AEE28e85043E'
const web3 = new Web3('https://public-en-baobab.klaytn.net')
const web3 = new Web3('https://public-en-kairos.node.kaia.io')
const sValueFeed = new web3.eth.Contract(abi, address)
const price = (await sValueFeed.methods.checkPrice('eth_usdt').call()).price
console.log(`The price is: ${price}`)
Expand All @@ -133,7 +133,7 @@ const getEthUsdtPrice = async () => {
////for ethers version 6.0
const provider = new ethers.JsonRpcProvider("https://klaytn-baobab.g.allthatnode.com/full/evm")
////for ethers version <= 5.7.2
//const provider = new ethers.providers.JsonRpcProvider('https://public-en-baobab.klaytn.net')
//const provider = new ethers.providers.JsonRpcProvider('https://public-en-kairos.node.kaia.io')
const abi = [{ "inputs": [ { "internalType": "string", "name": "marketPair", "type": "string" } ], "name": "checkPrice", "outputs": [ { "internalType": "int256", "name": "price", "type": "int256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]
const address = '0x7f003178060af3904b8b70fEa066AEE28e85043E'
const sValueFeed = new ethers.Contract(address, abi, provider)
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tools/wallets/wallet-libraries/web3Auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ useEffect(() => {
chainNamespace: "eip155",
// modify if mainnet => “0x2019”
chainId: "0x3e9", // hex of 1001, Kaia Kairos testnet.
rpcTarget: "https://public-en-baobab.klaytn.net", // modify if mainnet
rpcTarget: "https://public-en-kairos.node.kaia.io", // modify if mainnet
displayName: "Kaia Testnet", // modify if mainnet
blockExplorer: "https://baobab.klaytnscope.com", // modify if mainnet
ticker: "KAIA",
Expand Down
2 changes: 1 addition & 1 deletion docs/build/tutorials/connecting-metamask.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
| Network Config Item | Value |
| ---------------------------------------------------------------- | ------------------------------------------------------- |
| Network Name | Kaia Kairos |
| New RPC URL | ```https://public-en-baobab.klaytn.net``` |
| New RPC URL | ```https://public-en-kairos.node.kaia.io``` |
| Block Explorer URL | ```https://baobab.klaytnscope.com ``` |
| Chain ID | 1001 |
| Currency Symbol | KAIA |
Expand Down
4 changes: 2 additions & 2 deletions docs/build/tutorials/fee-delegation-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var net = require('net');
var client = new net.Socket();

const Caver = require('caver-js');
const caver = new Caver('https://public-en-baobab.klaytn.net');
const caver = new Caver('https://public-en-kairos.node.kaia.io');
const senderAddress = "SENDER_ADDRESS";
const senderPrivateKey = "SENDER_PRIVATEKEY";
const toAddress = "TO_ADDRESS";
Expand Down Expand Up @@ -142,7 +142,7 @@ In the below example, please replace `"FEEPAYER_ADDRESS"` and `"FEEPAYER_PRIVATE

```javascript
const Caver = require('caver-js');
const caver = new Caver('https://public-en-baobab.klaytn.net');
const caver = new Caver('https://public-en-kairos.node.kaia.io');
const feePayerAddress = "FEEPAYER_ADDRESS";
const feePayerPrivateKey = "FEEPAYER_PRIVATEKEY";

Expand Down
4 changes: 2 additions & 2 deletions docs/build/tutorials/migrating-ethereum-app-to-kaia.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ First, you need to change the library that makes a connection to the node. Then
import Caver from 'caver-js'

// const ROPSTEN_TESTNET_RPC_URL = 'https://ropsten.infura.io/'
const BAOBAB_TESTNET_RPC_URL = 'https://public-en-baobab.klaytn.net/'
const BAOBAB_TESTNET_RPC_URL = 'https://public-en-kairos.node.kaia.io/'

// const rpcURL = ROPSTEN_TESTNET_RPC_URL
const rpcURL = BAOBAB_TESTNET_RPC_URL
Expand Down Expand Up @@ -131,7 +131,7 @@ const HDWalletProvider = require("truffle-hdwallet-provider-kaia")
const NETWORK_ID = '1001' // Kaia, Kairos testnet's network id

// const RPC_URL = 'https://ropsten.infura.io/'
const RPC_URL = 'https://public-en-baobab.klaytn.net'
const RPC_URL = 'https://public-en-kairos.node.kaia.io'

// Change it to your own private key that has enough KAIA to deploy contract
const PRIVATE_KEY = '0x3de0c90ce7e440f19eff6439390c29389f611725422b79c95f9f48c856b58277'
Expand Down
2 changes: 1 addition & 1 deletion docs/nodes/endpoint-node/json-rpc-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $ echo '{"jsonrpc":"2.0","method":"rpc_modules","params":[],"id":1}' | nc -U kai
**HTTP**

```shell
$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"rpc_modules","params":[],"id":1}' https://public-en-baobab.klaytn.net
$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"rpc_modules","params":[],"id":1}' https://public-en-kairos.node.kaia.io
```

will give all enabled modules including the version number:
Expand Down
Loading

0 comments on commit c8e020e

Please sign in to comment.