Skip to content

Commit

Permalink
docs: add chInfo for zan.top (#675)
Browse files Browse the repository at this point in the history
Co-authored-by: tingzhao.ytz <[email protected]>
  • Loading branch information
yutingzhao1991 and tingzhao.ytz authored Mar 22, 2024
1 parent 3877c35 commit 554cb41
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default defineConfig({
{
title: 'ZAN',
description: 'Web3 tools and services',
url: 'https://zan.top',
url: 'https://zan.top?chInfo=ch_antdweb3',
openExternal: true,
},
],
Expand Down Expand Up @@ -211,7 +211,7 @@ export default defineConfig({
{
title: 'ZAN',
description: 'Web3 工具服务',
url: 'https://zan.top',
url: 'https://zan.top?chInfo=ch_antdweb3',
openExternal: true,
},
],
Expand Down
4 changes: 2 additions & 2 deletions docs/course/dev-call-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Contract [0xEcd0D12E21805803f70de03B72B1C162dB0898d9](https://etherscan.io/addre

## Configure node service

Because we only need to read the contract data and do not need to modify the contract data. So we don't need to initiate a transaction to the blockchain, that is, we don't need to consume tokens as [GAS](https://ethereum.org/developers/docs/gas). But we need a node to help us read the contract data. In the Web3 ecosystem, there are many vendors that provide node services, and you can choose your favorite node service. Here is an example of [ZAN's node service](https://zan.top/home/node-service) to guide you on how to configure the node service.
Because we only need to read the contract data and do not need to modify the contract data. So we don't need to initiate a transaction to the blockchain, that is, we don't need to consume tokens as [GAS](https://ethereum.org/developers/docs/gas). But we need a node to help us read the contract data. In the Web3 ecosystem, there are many vendors that provide node services, and you can choose your favorite node service. Here is an example of [ZAN's node service](https://zan.top/home/node-service?chInfo=ch_antdweb3) to guide you on how to configure the node service.

First register and log in to [https://zan.top](https://zan.top) and then enter the node service console [https://zan.top/service/apikeys](https://zan.top/service/apikeys) to create a Key. Each Key has a default free quota, which is enough for micro projects, but for production environment projects, please purchase node services according to the actual situation.
First register and log in to [https://zan.top](https://zan.top?chInfo=ch_antdweb3) and then enter the node service console [https://zan.top/service/apikeys](https://zan.top/service/apikeys?chInfo=ch_antdweb3) to create a Key. Each Key has a default free quota, which is enough for micro projects, but for production environment projects, please purchase node services according to the actual situation.

After the creation is successful, you will see the following page:

Expand Down
4 changes: 2 additions & 2 deletions docs/course/dev-call-contract.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ order: 3

## 配置节点服务

因为我们只需要读取合约数据,并不需要修改合约数据。所以我们不需要向区块链发起交易,也就是说不需要消耗代币作为 [GAS](https://ethereum.org/zh/developers/docs/gas)。但是我们需要一个节点来帮助我们读取合约数据,在 Web3 生态中有很多提供节点服务的厂商,你可以选择自己喜欢的节点服务。这里以 [ZAN 的节点服务](https://zan.top/home/node-service)为例,指引你如何配置节点服务。
因为我们只需要读取合约数据,并不需要修改合约数据。所以我们不需要向区块链发起交易,也就是说不需要消耗代币作为 [GAS](https://ethereum.org/zh/developers/docs/gas)。但是我们需要一个节点来帮助我们读取合约数据,在 Web3 生态中有很多提供节点服务的厂商,你可以选择自己喜欢的节点服务。这里以 [ZAN 的节点服务](https://zan.top/home/node-service?chInfo=ch_antdweb3)为例,指引你如何配置节点服务。

首先注册并登录 [https://zan.top](https://zan.top) 之后进入到节点服务的控制台 [https://zan.top/service/apikeys](https://zan.top/service/apikeys) 创建一个 Key,每个 Key 都有默认的免费额度,对于微型项目来说够用了,但是对于生产环境的项目来说,请结合实际情况购买节点服务。
首先注册并登录 [https://zan.top](https://zan.top?chInfo=ch_antdweb3) 之后进入到节点服务的控制台 [https://zan.top/service/apikeys](https://zan.top/service/apikeys?chInfo=ch_antdweb3) 创建一个 Key,每个 Key 都有默认的免费额度,对于微型项目来说够用了,但是对于生产环境的项目来说,请结合实际情况购买节点服务。

创建成功后你会看到如下的页面:

Expand Down
2 changes: 1 addition & 1 deletion docs/course/intro-call-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ It is complex and error-prone to access the wallet directly with js. We recommen

## Through node RPC

Through the previous study, we learned that the blockchain is a decentralized network, and we can access data by accessing one of the nodes. There are many nodes in the Ethereum network. We can use [ZAN](https://zan.top/), [Infura](https://infura.io/) and other node service providers to obtain RPC interfaces.
Through the previous study, we learned that the blockchain is a decentralized network, and we can access data by accessing one of the nodes. There are many nodes in the Ethereum network. We can use [ZAN](https://zan.top/?chInfo=ch_antdweb3), [Infura](https://infura.io/) and other node service providers to obtain RPC interfaces.

In the [document](https://docs.zan.top/reference/eth-accounts) provided by ZAN.top, we can easily test RPC, and call the method of smart contract through RPC.

Expand Down
2 changes: 1 addition & 1 deletion docs/course/intro-call-contract.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ await getAccount(); // 你的账户地址

## 通过节点 RPC

通过前面的学习,我们了解到区块链是一个去中心化的网络,我们可以通过访问其中一个节点来获取数据。以太坊网络中有很多节点,我们可以通过 [ZAN](https://zan.top/)[Infura](https://infura.io/) 等节点服务提供商来获取 RPC 接口。
通过前面的学习,我们了解到区块链是一个去中心化的网络,我们可以通过访问其中一个节点来获取数据。以太坊网络中有很多节点,我们可以通过 [ZAN](https://zan.top/?chInfo=ch_antdweb3)[Infura](https://infura.io/) 等节点服务提供商来获取 RPC 接口。

在 ZAN.top 提供的[文档](https://docs.zan.top/reference/eth-accounts)中,我们可以方便的测试 RPC,以及通过 RPC 调用智能合约的方法。

Expand Down
2 changes: 1 addition & 1 deletion docs/course/intro-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In order to help everyone build the front-end user interface of DApp better and

- [Course: Blockchain and Smart Contracts](/course/intro-blockchain)
- [Course: How DApp calls smart contracts](/course/intro-call-contract)
- [Web3 Technology Service ZAN](https://zan.top/)
- [Web3 Technology Service ZAN](https://zan.top/?chInfo=ch_antdweb3)
- [Explore Decentralized Applications](https://ethereum.org/dapps)
- [Web3.0 Application Architecture](https://www.preethikasireddy.com/post/the-architecture-of-a-web-3-0-application)
- [Popular DApp Tools](https://www.alchemy.com/dapps)
2 changes: 1 addition & 1 deletion docs/course/intro-dapp.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ order: 1

- [课程:区块链和智能合约](/course/intro-blockchain-cn)
- [课程:DApp 如何调用智能合约](/course/intro-call-contract-cn)
- [Web3 技术服务 ZAN](https://zan.top/)
- [Web3 技术服务 ZAN](https://zan.top/?chInfo=ch_antdweb3)
- [探索去中心化应用程序](https://ethereum.org/dapps)
- [Web3.0 应用程序架构](https://www.preethikasireddy.com/post/the-architecture-of-a-web-3-0-application)
- [热门 DApp 工具](https://www.alchemy.com/dapps)
2 changes: 1 addition & 1 deletion packages/web3/src/wagmi/demos/uiconfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const App: React.FC = () => {
icon: <QuestionCircleOutlined />,
label: 'About us',
onClick: () => {
window.open('https://zan.top/');
window.open('https://zan.top/?chInfo=ch_antdweb3');
},
},
],
Expand Down

0 comments on commit 554cb41

Please sign in to comment.