@ocap/client 1.25.3 → 1.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -80
- package/dist/report.html +1 -1
- package/docs/_sidebar.md +22 -0
- package/docs/api-reference-client-methods.ja.md +229 -0
- package/docs/api-reference-client-methods.md +229 -0
- package/docs/api-reference-client-methods.zh-TW.md +229 -0
- package/docs/api-reference-client-methods.zh.md +229 -0
- package/docs/api-reference-data-types.ja.md +482 -0
- package/docs/api-reference-data-types.md +482 -0
- package/docs/api-reference-data-types.zh-TW.md +482 -0
- package/docs/api-reference-data-types.zh.md +482 -0
- package/docs/api-reference-low-level-api.ja.md +228 -0
- package/docs/api-reference-low-level-api.md +228 -0
- package/docs/api-reference-low-level-api.zh-TW.md +228 -0
- package/docs/api-reference-low-level-api.zh.md +228 -0
- package/docs/api-reference-query-mutation-methods.ja.md +814 -0
- package/docs/api-reference-query-mutation-methods.md +814 -0
- package/docs/api-reference-query-mutation-methods.zh-TW.md +814 -0
- package/docs/api-reference-query-mutation-methods.zh.md +814 -0
- package/docs/api-reference-transaction-helpers.ja.md +649 -0
- package/docs/api-reference-transaction-helpers.md +649 -0
- package/docs/api-reference-transaction-helpers.zh-TW.md +649 -0
- package/docs/api-reference-transaction-helpers.zh.md +649 -0
- package/docs/api-reference.ja.md +23 -0
- package/docs/api-reference.md +23 -0
- package/docs/api-reference.zh-TW.md +23 -0
- package/docs/api-reference.zh.md +23 -0
- package/docs/core-concepts-client-architecture.ja.md +102 -0
- package/docs/core-concepts-client-architecture.md +102 -0
- package/docs/core-concepts-client-architecture.zh-TW.md +102 -0
- package/docs/core-concepts-client-architecture.zh.md +102 -0
- package/docs/core-concepts-event-subscriptions.ja.md +123 -0
- package/docs/core-concepts-event-subscriptions.md +123 -0
- package/docs/core-concepts-event-subscriptions.zh-TW.md +123 -0
- package/docs/core-concepts-event-subscriptions.zh.md +123 -0
- package/docs/core-concepts-gas-payment.ja.md +111 -0
- package/docs/core-concepts-gas-payment.md +111 -0
- package/docs/core-concepts-gas-payment.zh-TW.md +111 -0
- package/docs/core-concepts-gas-payment.zh.md +111 -0
- package/docs/core-concepts-transaction-lifecycle.ja.md +183 -0
- package/docs/core-concepts-transaction-lifecycle.md +183 -0
- package/docs/core-concepts-transaction-lifecycle.zh-TW.md +183 -0
- package/docs/core-concepts-transaction-lifecycle.zh.md +183 -0
- package/docs/core-concepts.ja.md +22 -0
- package/docs/core-concepts.md +22 -0
- package/docs/core-concepts.zh-TW.md +22 -0
- package/docs/core-concepts.zh.md +22 -0
- package/docs/getting-started-basic-usage.ja.md +87 -0
- package/docs/getting-started-basic-usage.md +87 -0
- package/docs/getting-started-basic-usage.zh-TW.md +87 -0
- package/docs/getting-started-basic-usage.zh.md +87 -0
- package/docs/getting-started-installation.ja.md +60 -0
- package/docs/getting-started-installation.md +60 -0
- package/docs/getting-started-installation.zh-TW.md +60 -0
- package/docs/getting-started-installation.zh.md +60 -0
- package/docs/getting-started.ja.md +16 -0
- package/docs/getting-started.md +16 -0
- package/docs/getting-started.zh-TW.md +16 -0
- package/docs/getting-started.zh.md +17 -0
- package/docs/how-to-guides-delegate-permissions.ja.md +167 -0
- package/docs/how-to-guides-delegate-permissions.md +167 -0
- package/docs/how-to-guides-delegate-permissions.zh-TW.md +167 -0
- package/docs/how-to-guides-delegate-permissions.zh.md +166 -0
- package/docs/how-to-guides-manage-accounts.ja.md +73 -0
- package/docs/how-to-guides-manage-accounts.md +73 -0
- package/docs/how-to-guides-manage-accounts.zh-TW.md +73 -0
- package/docs/how-to-guides-manage-accounts.zh.md +73 -0
- package/docs/how-to-guides-manage-assets.ja.md +255 -0
- package/docs/how-to-guides-manage-assets.md +255 -0
- package/docs/how-to-guides-manage-assets.zh-TW.md +255 -0
- package/docs/how-to-guides-manage-assets.zh.md +255 -0
- package/docs/how-to-guides-manage-tokens.ja.md +179 -0
- package/docs/how-to-guides-manage-tokens.md +179 -0
- package/docs/how-to-guides-manage-tokens.zh-TW.md +179 -0
- package/docs/how-to-guides-manage-tokens.zh.md +179 -0
- package/docs/how-to-guides-stake-tokens-and-assets.ja.md +205 -0
- package/docs/how-to-guides-stake-tokens-and-assets.md +205 -0
- package/docs/how-to-guides-stake-tokens-and-assets.zh-TW.md +205 -0
- package/docs/how-to-guides-stake-tokens-and-assets.zh.md +205 -0
- package/docs/how-to-guides-transfer-tokens-and-nfts.ja.md +179 -0
- package/docs/how-to-guides-transfer-tokens-and-nfts.md +179 -0
- package/docs/how-to-guides-transfer-tokens-and-nfts.zh-TW.md +179 -0
- package/docs/how-to-guides-transfer-tokens-and-nfts.zh.md +179 -0
- package/docs/how-to-guides.ja.md +27 -0
- package/docs/how-to-guides.md +27 -0
- package/docs/how-to-guides.zh-TW.md +27 -0
- package/docs/how-to-guides.zh.md +27 -0
- package/docs/overview.ja.md +70 -0
- package/docs/overview.md +70 -0
- package/docs/overview.zh-TW.md +70 -0
- package/docs/overview.zh.md +70 -0
- package/package.json +14 -14
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# 概要
|
|
2
|
+
|
|
3
|
+
OCAP Clientは、アプリケーションをOCAP搭載のブロックチェーンに接続するために設計された、強力で汎用性の高いJavaScriptライブラリです。データの読み書き、デジタル資産の管理、オンチェーンイベントの監視を行うための、効率的で開発者に優しいインターフェースを提供します。このクライアントは、Node.jsまたはブラウザベースの環境で使用でき、バックエンドサービスとフロントエンドアプリケーションの両方に単一のソリューションを提供します。
|
|
4
|
+
|
|
5
|
+
このクライアントの核となるのは、トランザクションのエンコードと署名の複雑さを抽象化することで、ブロックチェーンとのインタラクションを簡素化することです。HTTP/Sを介してブロックチェーンノードとのすべての通信にGraphQL APIを使用しており、チェーンデータのクエリやトランザクションの送信が容易になります。
|
|
6
|
+
|
|
7
|
+
```d2 Client Architecture Overview icon=mdi:graphql
|
|
8
|
+
direction: down
|
|
9
|
+
|
|
10
|
+
your-app: {
|
|
11
|
+
label: "あなたのアプリケーション\n(Node.jsまたはブラウザ)"
|
|
12
|
+
shape: rectangle
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ocap-client: {
|
|
16
|
+
label: "@ocap/client"
|
|
17
|
+
shape: rectangle
|
|
18
|
+
style.fill: "#f0f9ff"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ocap-node: {
|
|
22
|
+
label: "OCAP ブロックチェーンノード"
|
|
23
|
+
shape: cylinder
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
your-app -> ocap-client: "高レベルAPI呼び出し\n(例: transfer(), createAsset())"
|
|
27
|
+
ocap-client -> ocap-node: "GraphQLクエリ/ミューテーション (HTTP/S)\nイベントサブスクリプション (WebSocket)"
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 主な機能
|
|
32
|
+
|
|
33
|
+
OCAP Clientは、ブロックチェーン通信のさまざまな側面を処理するために、いくつかの異なるメソッドグループに整理されています。
|
|
34
|
+
|
|
35
|
+
<x-cards data-columns="2">
|
|
36
|
+
<x-card data-title="クエリ" data-icon="lucide:search">
|
|
37
|
+
ブロック、トランザクション、アカウントの状態、資産の詳細、および一般的なチェーン情報を含む、ブロックチェーンからあらゆるデータを読み取ります。
|
|
38
|
+
</x-card>
|
|
39
|
+
<x-card data-title="ミューテーションとセンダー" data-icon="lucide:send">
|
|
40
|
+
ブロックチェーンにデータを書き込みます。`transfer`や`createAsset`のような高レベルのヘルパーメソッドを使用して、トランザクションの準備、署名、送信を簡単に行います。
|
|
41
|
+
</x-card>
|
|
42
|
+
<x-card data-title="サブスクリプション" data-icon="lucide:radio-tower">
|
|
43
|
+
リアルタイムのオンチェーンイベントを監視します。トピックを購読し、WebSocket接続を介して発生した更新情報を受け取ります。
|
|
44
|
+
</x-card>
|
|
45
|
+
<x-card data-title="コーダーと署名者" data-icon="lucide:edit">
|
|
46
|
+
高度なユースケースでは、トランザクションを手動でエンコードおよび署名することができ、トランザクションのライフサイクルを完全に制御できます。
|
|
47
|
+
</x-card>
|
|
48
|
+
</x-cards>
|
|
49
|
+
|
|
50
|
+
### 重要な概念
|
|
51
|
+
|
|
52
|
+
- **アカウントの自動作成**: OCAP搭載のチェーンでは、最初に入金トランザクション(例:トークンの受信)を受け取ると、新しいアカウントが自動的にオンチェーンで作成されます。アカウントを初期化するために別のトランザクションは必要ありません。
|
|
53
|
+
|
|
54
|
+
- **ガスレストランザクション**: このクライアントは、指定された「ガス支払者」ウォレットが他のユーザーのトランザクション手数料を負担できるガス支払いメカニズムをサポートしています。これにより、アプリケーションのユーザーにシームレスでガス代無料の体験を提供できます。
|
|
55
|
+
|
|
56
|
+
### 次のステップ
|
|
57
|
+
|
|
58
|
+
開発を始める準備はできましたか?始めるのに役立つリンクをいくつか紹介します。
|
|
59
|
+
|
|
60
|
+
<x-cards data-columns="3">
|
|
61
|
+
<x-card data-title="はじめに" data-icon="lucide:rocket" data-href="/getting-started">
|
|
62
|
+
クライアントをインストールし、ベータチェーンに接続して、30分以内に最初のクエリを実行します。
|
|
63
|
+
</x-card>
|
|
64
|
+
<x-card data-title="ハウツーガイド" data-icon="lucide:book-open" data-href="/how-to-guides">
|
|
65
|
+
NFTの作成、トークンの転送、ステーキングなどの一般的なタスクについて、ステップバイステップのチュートリアルに従ってください。
|
|
66
|
+
</x-card>
|
|
67
|
+
<x-card data-title="APIリファレンス" data-icon="lucide:code" data-href="/api-reference">
|
|
68
|
+
すべてのメソッド、パラメータ、データ型に関する詳細情報については、完全なAPIドキュメントを参照してください。
|
|
69
|
+
</x-card>
|
|
70
|
+
</x-cards>
|
package/docs/overview.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
The OCAP Client is a powerful and versatile JavaScript library designed to connect your applications to an OCAP-powered blockchain. It provides a streamlined, developer-friendly interface for reading and writing data, managing digital assets, and listening for on-chain events. The client can be used in any Node.js or browser-based environment, offering a single solution for both backend services and frontend applications.
|
|
4
|
+
|
|
5
|
+
At its core, the client simplifies blockchain interaction by abstracting away the complexities of transaction encoding and signing. It uses a GraphQL API for all communication with the blockchain node over HTTP/S, making it easy to query chain data and submit transactions.
|
|
6
|
+
|
|
7
|
+
```d2 Client Architecture Overview icon=mdi:graphql
|
|
8
|
+
direction: down
|
|
9
|
+
|
|
10
|
+
your-app: {
|
|
11
|
+
label: "Your Application\n(Node.js or Browser)"
|
|
12
|
+
shape: rectangle
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ocap-client: {
|
|
16
|
+
label: "@ocap/client"
|
|
17
|
+
shape: rectangle
|
|
18
|
+
style.fill: "#f0f9ff"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ocap-node: {
|
|
22
|
+
label: "OCAP Blockchain Node"
|
|
23
|
+
shape: cylinder
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
your-app -> ocap-client: "High-level API Calls\n(e.g., transfer(), createAsset())"
|
|
27
|
+
ocap-client -> ocap-node: "GraphQL Queries/Mutations (HTTP/S)\nEvent Subscriptions (WebSocket)"
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Key Features
|
|
32
|
+
|
|
33
|
+
The OCAP Client is organized into several distinct groups of methods to handle different aspects of blockchain communication:
|
|
34
|
+
|
|
35
|
+
<x-cards data-columns="2">
|
|
36
|
+
<x-card data-title="Queries" data-icon="lucide:search">
|
|
37
|
+
Read any data from the blockchain, including blocks, transactions, account states, asset details, and general chain information.
|
|
38
|
+
</x-card>
|
|
39
|
+
<x-card data-title="Mutations & Senders" data-icon="lucide:send">
|
|
40
|
+
Write data to the blockchain. Use high-level helper methods like `transfer` or `createAsset` to easily prepare, sign, and send transactions.
|
|
41
|
+
</x-card>
|
|
42
|
+
<x-card data-title="Subscriptions" data-icon="lucide:radio-tower">
|
|
43
|
+
Listen for real-time on-chain events. Subscribe to topics and receive updates as they happen via a WebSocket connection.
|
|
44
|
+
</x-card>
|
|
45
|
+
<x-card data-title="Coders & Signers" data-icon="lucide:edit">
|
|
46
|
+
For advanced use cases, you can encode and sign transactions manually, giving you full control over the transaction lifecycle.
|
|
47
|
+
</x-card>
|
|
48
|
+
</x-cards>
|
|
49
|
+
|
|
50
|
+
### Important Concepts
|
|
51
|
+
|
|
52
|
+
- **Automatic Account Creation**: On an OCAP-powered chain, a new account is automatically created on-chain when it receives its first incoming transaction (e.g., receiving tokens). You don't need a separate transaction to initialize an account.
|
|
53
|
+
|
|
54
|
+
- **Gasless Transactions**: The client supports a gas payment mechanism where a designated "gas payer" wallet can sponsor transaction fees for other users. This enables you to create seamless, gas-free experiences for your application's users.
|
|
55
|
+
|
|
56
|
+
### Where to Go Next
|
|
57
|
+
|
|
58
|
+
Ready to start building? Here are some helpful links to get you moving:
|
|
59
|
+
|
|
60
|
+
<x-cards data-columns="3">
|
|
61
|
+
<x-card data-title="Getting Started" data-icon="lucide:rocket" data-href="/getting-started">
|
|
62
|
+
Install the client, connect to the Beta chain, and make your first query in under 30 minutes.
|
|
63
|
+
</x-card>
|
|
64
|
+
<x-card data-title="How-to Guides" data-icon="lucide:book-open" data-href="/how-to-guides">
|
|
65
|
+
Follow step-by-step tutorials for common tasks like creating NFTs, transferring tokens, and staking.
|
|
66
|
+
</x-card>
|
|
67
|
+
<x-card data-title="API Reference" data-icon="lucide:code" data-href="/api-reference">
|
|
68
|
+
Dive into the complete API documentation for detailed information on every method, parameter, and data type.
|
|
69
|
+
</x-card>
|
|
70
|
+
</x-cards>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# 總覽
|
|
2
|
+
|
|
3
|
+
OCAP Client 是一個功能強大且多功能的 JavaScript 函式庫,旨在將您的應用程式連接到由 OCAP 驅動的區塊鏈。它提供了一個精簡、對開發者友好的介面,用於讀取和寫入資料、管理數位資產以及監聽鏈上事件。該客戶端可用於任何 Node.js 或基於瀏覽器的環境,為後端服務和前端應用程式提供單一解決方案。
|
|
4
|
+
|
|
5
|
+
其核心是,該客戶端透過抽象化交易編碼和簽署的複雜性來簡化區塊鏈互動。它使用 GraphQL API 透過 HTTP/S 與區塊鏈節點進行所有通訊,讓查詢鏈上資料和提交交易變得容易。
|
|
6
|
+
|
|
7
|
+
```d2 Client Architecture Overview icon=mdi:graphql
|
|
8
|
+
direction: down
|
|
9
|
+
|
|
10
|
+
your-app: {
|
|
11
|
+
label: "您的應用程式\n(Node.js 或瀏覽器)"
|
|
12
|
+
shape: rectangle
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ocap-client: {
|
|
16
|
+
label: "@ocap/client"
|
|
17
|
+
shape: rectangle
|
|
18
|
+
style.fill: "#f0f9ff"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ocap-node: {
|
|
22
|
+
label: "OCAP 區塊鏈節點"
|
|
23
|
+
shape: cylinder
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
your-app -> ocap-client: "高階 API 呼叫\n(例如:transfer(), createAsset())"
|
|
27
|
+
ocap-client -> ocap-node: "GraphQL 查詢/變更 (HTTP/S)\n事件訂閱 (WebSocket)"
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 主要功能
|
|
32
|
+
|
|
33
|
+
OCAP Client 被組織成幾個不同的方法群組,以處理區塊鏈通訊的不同方面:
|
|
34
|
+
|
|
35
|
+
<x-cards data-columns="2">
|
|
36
|
+
<x-card data-title="查詢" data-icon="lucide:search">
|
|
37
|
+
從區塊鏈讀取任何資料,包括區塊、交易、帳戶狀態、資產詳情和一般鏈資訊。
|
|
38
|
+
</x-card>
|
|
39
|
+
<x-card data-title="變更與發送者" data-icon="lucide:send">
|
|
40
|
+
將資料寫入區塊鏈。使用像 `transfer` 或 `createAsset` 這樣的高階輔助方法來輕鬆準備、簽署和發送交易。
|
|
41
|
+
</x-card>
|
|
42
|
+
<x-card data-title="訂閱" data-icon="lucide:radio-tower">
|
|
43
|
+
監聽即時的鏈上事件。訂閱主題並透過 WebSocket 連線在事件發生時接收更新。
|
|
44
|
+
</x-card>
|
|
45
|
+
<x-card data-title="編碼器與簽署者" data-icon="lucide:edit">
|
|
46
|
+
對於進階使用案例,您可以手動編碼和簽署交易,從而完全控制交易的生命週期。
|
|
47
|
+
</x-card>
|
|
48
|
+
</x-cards>
|
|
49
|
+
|
|
50
|
+
### 重要概念
|
|
51
|
+
|
|
52
|
+
- **自動創建帳戶**:在由 OCAP 驅動的鏈上,當一個新帳戶收到其第一筆傳入交易(例如,接收代幣)時,會自動在鏈上創建。您不需要單獨的交易來初始化帳戶。
|
|
53
|
+
|
|
54
|
+
- **無 Gas 交易**:該客戶端支援一種 Gas 支付機制,其中指定的「Gas 支付者」錢包可以為其他使用者贊助交易費用。這使您能夠為應用程式的使用者創建無縫、無 Gas 的體驗。
|
|
55
|
+
|
|
56
|
+
### 下一步
|
|
57
|
+
|
|
58
|
+
準備好開始建構了嗎?這裡有一些有用的連結可以幫助您開始:
|
|
59
|
+
|
|
60
|
+
<x-cards data-columns="3">
|
|
61
|
+
<x-card data-title="入門指南" data-icon="lucide:rocket" data-href="/getting-started">
|
|
62
|
+
安裝客戶端,連接到 Beta 鏈,並在 30 分鐘內完成您的第一次查詢。
|
|
63
|
+
</x-card>
|
|
64
|
+
<x-card data-title="操作指南" data-icon="lucide:book-open" data-href="/how-to-guides">
|
|
65
|
+
遵循逐步教學,完成創建 NFT、轉移代幣和質押等常見任務。
|
|
66
|
+
</x-card>
|
|
67
|
+
<x-card data-title="API 參考" data-icon="lucide:code" data-href="/api-reference">
|
|
68
|
+
深入了解完整的 API 文件,以獲取有關每個方法、參數和資料類型的詳細資訊。
|
|
69
|
+
</x-card>
|
|
70
|
+
</x-cards>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# 概述
|
|
2
|
+
|
|
3
|
+
OCAP Client 是一个功能强大且多功能的 JavaScript 库,旨在将您的应用程序连接到由 OCAP 驱动的区块链。它提供了一个简化的、对开发者友好的界面,用于读取和写入数据、管理数字资产以及监听链上事件。该客户端可用于任何 Node.js 或基于浏览器的环境,为后端服务和前端应用程序提供了单一解决方案。
|
|
4
|
+
|
|
5
|
+
该客户端的核心是通过抽象化交易编码和签名的复杂性来简化区块链交互。它使用 GraphQL API 通过 HTTP/S 与区块链节点进行所有通信,使得查询链上数据和提交交易变得简单。
|
|
6
|
+
|
|
7
|
+
```d2 Client Architecture Overview icon=mdi:graphql
|
|
8
|
+
direction: down
|
|
9
|
+
|
|
10
|
+
your-app: {
|
|
11
|
+
label: "你的应用程序\n(Node.js 或浏览器)"
|
|
12
|
+
shape: rectangle
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
ocap-client: {
|
|
16
|
+
label: "@ocap/client"
|
|
17
|
+
shape: rectangle
|
|
18
|
+
style.fill: "#f0f9ff"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ocap-node: {
|
|
22
|
+
label: "OCAP 区块链节点"
|
|
23
|
+
shape: cylinder
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
your-app -> ocap-client: "高阶 API 调用\n(例如,transfer(), createAsset())"
|
|
27
|
+
ocap-client -> ocap-node: "GraphQL 查询/变更 (HTTP/S)\n事件订阅 (WebSocket)"
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 主要功能
|
|
32
|
+
|
|
33
|
+
OCAP Client 被组织成几个不同的方法组,以处理区块链通信的不同方面:
|
|
34
|
+
|
|
35
|
+
<x-cards data-columns="2">
|
|
36
|
+
<x-card data-title="查询" data-icon="lucide:search">
|
|
37
|
+
从区块链读取任何数据,包括区块、交易、账户状态、资产详情和常规链信息。
|
|
38
|
+
</x-card>
|
|
39
|
+
<x-card data-title="变更与发送器" data-icon="lucide:send">
|
|
40
|
+
向区块链写入数据。使用 `transfer` 或 `createAsset` 等高阶辅助方法,轻松准备、签名和发送交易。
|
|
41
|
+
</x-card>
|
|
42
|
+
<x-card data-title="订阅" data-icon="lucide:radio-tower">
|
|
43
|
+
监听实时链上事件。订阅主题并通过 WebSocket 连接接收实时更新。
|
|
44
|
+
</x-card>
|
|
45
|
+
<x-card data-title="编码器与签名器" data-icon="lucide:edit">
|
|
46
|
+
对于高级用例,您可以手动编码和签署交易,从而完全控制交易的生命周期。
|
|
47
|
+
</x-card>
|
|
48
|
+
</x-cards>
|
|
49
|
+
|
|
50
|
+
### 重要概念
|
|
51
|
+
|
|
52
|
+
- **自动创建账户**:在由 OCAP 驱动的链上,当新账户收到第一笔入账交易(例如,收到代币)时,会自动在链上创建该账户。您无需通过单独的交易来初始化账户。
|
|
53
|
+
|
|
54
|
+
- **无 Gas 费交易**:该客户端支持一种 Gas 费支付机制,其中指定的“Gas 费支付方”钱包可以为其他用户赞助交易费用。这使您能够为应用程序的用户创建无缝的、免 Gas 费的体验。
|
|
55
|
+
|
|
56
|
+
### 下一步
|
|
57
|
+
|
|
58
|
+
准备好开始构建了吗?这里有一些有用的链接可以帮助您快速上手:
|
|
59
|
+
|
|
60
|
+
<x-cards data-columns="3">
|
|
61
|
+
<x-card data-title="入门指南" data-icon="lucide:rocket" data-href="/getting-started">
|
|
62
|
+
安装客户端,连接到 Beta 链,并在 30 分钟内完成您的第一次查询。
|
|
63
|
+
</x-card>
|
|
64
|
+
<x-card data-title="操作指南" data-icon="lucide:book-open" data-href="/how-to-guides">
|
|
65
|
+
遵循分步教程,完成创建 NFT、转移代币和质押等常见任务。
|
|
66
|
+
</x-card>
|
|
67
|
+
<x-card data-title="API 参考" data-icon="lucide:code" data-href="/api-reference">
|
|
68
|
+
深入了解完整的 API 文档,获取有关每个方法、参数和数据类型的详细信息。
|
|
69
|
+
</x-card>
|
|
70
|
+
</x-cards>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/client",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.5",
|
|
4
4
|
"description": "graphql client to read/write data on arcblock blockchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"react-app-polyfill": "^1.0.6",
|
|
41
41
|
"readable-stream": "3.6.0",
|
|
42
42
|
"wolfy87-eventemitter": "^5.2.9",
|
|
43
|
-
"@arcblock/did": "1.25.
|
|
44
|
-
"@arcblock/
|
|
45
|
-
"@arcblock/
|
|
46
|
-
"@arcblock/
|
|
47
|
-
"@ocap/asset": "1.25.
|
|
48
|
-
"@ocap/mcrypto": "1.25.
|
|
49
|
-
"@ocap/message": "1.25.
|
|
50
|
-
"@ocap/proto": "1.25.
|
|
51
|
-
"@ocap/tx-util": "1.25.
|
|
52
|
-
"@ocap/util": "1.25.
|
|
53
|
-
"@ocap/wallet": "1.25.
|
|
43
|
+
"@arcblock/did": "1.25.5",
|
|
44
|
+
"@arcblock/did-util": "1.25.5",
|
|
45
|
+
"@arcblock/jwt": "1.25.5",
|
|
46
|
+
"@arcblock/ws": "1.25.5",
|
|
47
|
+
"@ocap/asset": "1.25.5",
|
|
48
|
+
"@ocap/mcrypto": "1.25.5",
|
|
49
|
+
"@ocap/message": "1.25.5",
|
|
50
|
+
"@ocap/proto": "1.25.5",
|
|
51
|
+
"@ocap/tx-util": "1.25.5",
|
|
52
|
+
"@ocap/util": "1.25.5",
|
|
53
|
+
"@ocap/wallet": "1.25.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"babel-cli": "^6.26.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"webpack": "^5.94.0",
|
|
72
72
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
73
73
|
"webpack-cli": "^5.1.4",
|
|
74
|
-
"@ocap/e2e-test": "1.25.
|
|
75
|
-
"@ocap/tx-protocols": "1.25.
|
|
74
|
+
"@ocap/e2e-test": "1.25.5",
|
|
75
|
+
"@ocap/tx-protocols": "1.25.5"
|
|
76
76
|
},
|
|
77
77
|
"remarkConfig": {
|
|
78
78
|
"plugins": [
|