You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: apps/nextra/pages/zh/build/apis/aptos-labs-developer-portal.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,4 @@ import { Callout } from "nextra/components";
6
6
7
7
# Aptos Labs Aptos Build
8
8
9
-
[Aptos Build](https://build.aptoslabs.com) is your gateway to access Aptos Labs provided APIs in a quick and easy fashion to power your dapp. Beyond API access it offers gas station and no code indexing services.
10
-
11
-
Learn more about Aptos Build at the dedicated [Aptos Build docs site](https://build.aptoslabs.com/docs).
9
+
[Aptos Build](https://build.aptoslabs.com) 是你快速便捷接入 Aptos Labs 提供的 API 的入口,为你的 dapp 提供动力。除了 API 访问外,它还提供 gas 加油站和无代码索引服务。了解更多关于 Aptos Build 的信息,请访问专属的 [Aptos Build 文档站点](https://build.aptoslabs.com/docs)。
Copy file name to clipboardExpand all lines: apps/nextra/pages/zh/build/apis/fullnode-rest-api.mdx
+38-59Lines changed: 38 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,94 +5,74 @@ title: "Fullnode Rest API"
5
5
import { Callout } from'nextra/components'
6
6
import { Card, Cards } from'@components/index'
7
7
8
-
# Aptos Fullnode REST API
8
+
# Aptos 全节点 REST API
9
9
10
-
This API - embedded into Fullnodes - provides a simple, low latency, yet low-level way of reading state and submitting transactions to the Aptos Blockchain. It also supports transaction simulation.
11
-
For more advanced queries, we recommend using the [Indexer GraphQL API](../indexer.mdx).
10
+
该 API 内置于全节点中,提供了一种简单、低延迟但底层的方式来读取状态和向 Aptos 区块链提交交易。它还支持交易模拟功能。
<Card.Description>开发网 REST API 浏览器</Card.Description>
27
27
</Card>
28
28
</Cards>
29
29
30
-
## Understanding rate limits
30
+
## 理解速率限制
31
31
32
-
As with the [Aptos Indexer](../indexer/aptos-hosted.mdx), the Aptos REST API has rate limits based on compute units. You can learn more about how the ratelimiting works by reading the [Aptos Build docs](https://build.aptoslabs.com/docs/start/billing).
Events and transactions pruning can be disabled via setting the [`enable_ledger_pruner`](https://github.com/aptos-labs/aptos-core/blob/cf0bc2e4031a843cdc0c04e70b3f7cd92666afcf/config/src/config/storage_config.rs#L141)
62
-
to `false` in `storage_config.rs`. This is default behavior in Mainnet. In the near future, Aptos will provide indexers
63
-
that mitigate the need to directly query from a node.
53
+
REST API 提供以下方式查询交易和事件:
64
54
65
-
The REST API offers querying transactions and events in these ways:
-[Transactions for an account](https://api.devnet.aptoslabs.com/v1/spec#/operations/get_account_transactions)
68
-
-[Transactions by version](https://api.devnet.aptoslabs.com/v1/spec#/operations/get_transaction_by_version)
69
-
-[Events by event handle](https://api.devnet.aptoslabs.com/v1/spec#/operations/get_events_by_event_handle)
59
+
## 使用 View 函数读取状态
70
60
71
-
## Reading state with the View function
61
+
通过 API 调用时,View 函数不会修改区块链状态。[View 函数](https://github.com/aptos-labs/aptos-core/blob/main/api/src/view_function.rs) 及其 [输入参数](https://github.com/aptos-labs/aptos-core/blob/main/api/types/src/view.rs) 可用于通过 Move 读取潜在的复杂链上状态。例如,您可以评估拍卖合约中的最高出价者。以下是相关文件:
72
62
73
-
View functions do not modify blockchain state when called from the API. A [View function](https://github.com/aptos-labs/aptos-core/blob/main/api/src/view_function.rs)
74
-
and its [input](https://github.com/aptos-labs/aptos-core/blob/main/api/types/src/view.rs) can be used to read
75
-
potentially complex on-chain state using Move. For example, you can evaluate who has the highest bid in an auction
-[`view_function.rs`](https://github.com/aptos-labs/aptos-core/blob/main/api/src/tests/view_function.rs) for an example
79
-
- related [Move](https://github.com/aptos-labs/aptos-core/blob/90c33dc7a18662839cd50f3b70baece0e2dbfc71/aptos-move/framework/aptos-framework/sources/coin.move#L226) code
0 commit comments