@mysten/docs 0.1.18 → 0.1.20
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/dist/bcs/index.md +1 -1
- package/dist/bcs/llms-index.md +1 -1
- package/dist/codegen/index.md +53 -53
- package/dist/codegen/llms-index.md +1 -1
- package/dist/dapp-kit/actions/connect-wallet.md +4 -4
- package/dist/dapp-kit/actions/disconnect-wallet.md +8 -7
- package/dist/dapp-kit/actions/sign-and-execute-transaction.md +14 -14
- package/dist/dapp-kit/actions/sign-personal-message.md +8 -8
- package/dist/dapp-kit/actions/sign-transaction.md +7 -7
- package/dist/dapp-kit/actions/switch-account.md +6 -6
- package/dist/dapp-kit/actions/switch-network.md +5 -5
- package/dist/dapp-kit/dapp-kit-instance.md +19 -18
- package/dist/dapp-kit/getting-started/create-dapp.md +12 -12
- package/dist/dapp-kit/getting-started/next-js.md +12 -11
- package/dist/dapp-kit/getting-started/react.md +25 -25
- package/dist/dapp-kit/getting-started/vue.md +12 -12
- package/dist/dapp-kit/index.md +4 -4
- package/dist/dapp-kit/llms-index.md +23 -23
- package/dist/dapp-kit/react/components/connect-button.md +3 -3
- package/dist/dapp-kit/react/components/connect-modal.md +3 -3
- package/dist/dapp-kit/react/components/index.md +2 -2
- package/dist/dapp-kit/react/dapp-kit-provider.md +6 -6
- package/dist/dapp-kit/react/hooks/index.md +4 -3
- package/dist/dapp-kit/react/hooks/use-current-account.md +3 -3
- package/dist/dapp-kit/react/hooks/use-current-client.md +3 -3
- package/dist/dapp-kit/react/hooks/use-current-network.md +3 -3
- package/dist/dapp-kit/react/hooks/use-current-wallet.md +3 -3
- package/dist/dapp-kit/react/hooks/use-dapp-kit.md +5 -5
- package/dist/dapp-kit/react/hooks/use-wallet-connection.md +3 -3
- package/dist/dapp-kit/react/hooks/use-wallets.md +3 -3
- package/dist/dapp-kit/state.md +16 -16
- package/dist/dapp-kit/theming.md +27 -27
- package/dist/dapp-kit/web-components/connect-button.md +9 -9
- package/dist/dapp-kit/web-components/connect-modal.md +16 -16
- package/dist/kiosk/advanced-examples.md +1 -1
- package/dist/kiosk/from-v1.md +1 -1
- package/dist/kiosk/index.md +5 -5
- package/dist/kiosk/kiosk-client/introduction.md +6 -6
- package/dist/kiosk/kiosk-client/kiosk-transaction/examples.md +3 -3
- package/dist/kiosk/kiosk-client/kiosk-transaction/kiosk-transaction.md +1 -1
- package/dist/kiosk/kiosk-client/kiosk-transaction/managing.md +11 -11
- package/dist/kiosk/kiosk-client/kiosk-transaction/purchasing.md +1 -1
- package/dist/kiosk/kiosk-client/querying.md +1 -1
- package/dist/kiosk/kiosk-client/transfer-policy-transaction/introduction.md +1 -1
- package/dist/kiosk/kiosk-client/transfer-policy-transaction/using-the-manager.md +1 -3
- package/dist/kiosk/llms-index.md +5 -5
- package/dist/llms-index.md +83 -83
- package/dist/payment-kit/getting-started.md +13 -13
- package/dist/payment-kit/index.md +13 -13
- package/dist/payment-kit/llms-index.md +5 -5
- package/dist/payment-kit/payment-kit-sdk.md +18 -18
- package/dist/payment-kit/payment-processing.md +34 -34
- package/dist/payment-kit/registry-management.md +35 -35
- package/dist/seal/index.md +5 -5
- package/dist/seal/llms-index.md +1 -1
- package/dist/slush-wallet/dapp.md +10 -10
- package/dist/slush-wallet/deep-linking.md +54 -54
- package/dist/slush-wallet/index.md +2 -2
- package/dist/slush-wallet/llms-index.md +3 -3
- package/dist/sui/bcs.md +11 -11
- package/dist/sui/clients/core.md +57 -56
- package/dist/sui/clients/graphql.md +3 -3
- package/dist/sui/clients/grpc.md +10 -10
- package/dist/sui/clients/index.md +14 -14
- package/dist/sui/clients/json-rpc.md +16 -16
- package/dist/sui/cryptography/keypairs.md +6 -6
- package/dist/sui/cryptography/multisig.md +4 -4
- package/dist/sui/cryptography/passkey.md +15 -14
- package/dist/sui/cryptography/webcrypto-signer.md +4 -4
- package/dist/sui/executors.md +18 -16
- package/dist/sui/faucet.md +3 -3
- package/dist/sui/hello-sui.md +5 -5
- package/dist/sui/index.md +12 -12
- package/dist/sui/install.md +3 -3
- package/dist/sui/llm-docs.md +9 -9
- package/dist/sui/llms-index.md +41 -41
- package/dist/sui/migrations/0.38.md +6 -6
- package/dist/sui/migrations/sui-1.0.md +32 -32
- package/dist/sui/migrations/sui-2.0/agent-prompt.md +3 -3
- package/dist/sui/migrations/sui-2.0/dapp-kit.md +43 -43
- package/dist/sui/migrations/sui-2.0/deepbook-v3.md +1 -1
- package/dist/sui/migrations/sui-2.0/index.md +37 -37
- package/dist/sui/migrations/sui-2.0/json-rpc-migration.md +53 -47
- package/dist/sui/migrations/sui-2.0/kiosk.md +8 -8
- package/dist/sui/migrations/sui-2.0/sdk-maintainers.md +7 -7
- package/dist/sui/migrations/sui-2.0/seal.md +1 -1
- package/dist/sui/migrations/sui-2.0/sui.md +16 -16
- package/dist/sui/migrations/sui-2.0/suins.md +4 -3
- package/dist/sui/migrations/sui-2.0/wallet-builders.md +5 -5
- package/dist/sui/migrations/sui-2.0/walrus.md +3 -3
- package/dist/sui/migrations/sui-2.0/zksend.md +5 -5
- package/dist/sui/plugins.md +14 -14
- package/dist/sui/sdk-building.md +32 -32
- package/dist/sui/transaction-building/basics.md +13 -13
- package/dist/sui/transaction-building/gas.md +2 -3
- package/dist/sui/transaction-building/intents.md +4 -4
- package/dist/sui/transaction-building/offline.md +8 -8
- package/dist/sui/transaction-building/sponsored-transactions.md +1 -1
- package/dist/sui/utils/derived_objects.md +10 -10
- package/dist/sui/utils/index.md +1 -1
- package/dist/sui/zklogin.md +1 -1
- package/dist/walrus/index.md +1 -1
- package/dist/walrus/llms-index.md +1 -1
- package/dist/zksend/index.md +2 -2
- package/dist/zksend/link-builder.md +5 -4
- package/dist/zksend/llms-index.md +2 -2
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TransferPolicyTransaction
|
|
2
2
|
|
|
3
|
-
> Create and manage transfer policies for kiosk items
|
|
3
|
+
> Create and manage transfer policies for kiosk items using the Kiosk SDK.
|
|
4
4
|
|
|
5
5
|
`TransferPolicyTransaction` is the client to build transactions that involve transfer policy
|
|
6
6
|
management. It's used similar to `KioskTransaction`, and helps in crafting transactions to manage a
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Using the manager
|
|
2
2
|
|
|
3
|
-
> Use the TransferPolicyTransaction manager
|
|
4
|
-
|
|
5
|
-
# How to use
|
|
3
|
+
> Use the TransferPolicyTransaction manager to add rules and withdraw profits.
|
|
6
4
|
|
|
7
5
|
After following the introduction steps on how to initialize a transfer policy transaction you can
|
|
8
6
|
call any of the available functions to prepare your Programmable Transaction Block (PTB).
|
package/dist/kiosk/llms-index.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kiosk
|
|
2
2
|
> Interact with on-chain commerce applications
|
|
3
3
|
|
|
4
|
-
- [Kiosk SDK](..md): TypeScript SDK for interacting with Sui Kiosk
|
|
5
|
-
- [Kiosk Client](./kiosk-client/introduction.md): Introduction to the KioskClient for querying and managing kiosks
|
|
6
|
-
- [Querying](./kiosk-client/querying.md): Query kiosk contents, items, and transfer policies
|
|
7
|
-
- [Advanced Examples](./advanced-examples.md): Advanced Kiosk SDK usage patterns and examples
|
|
8
|
-
- [Migrating from Kiosk SDK V1](./from-v1.md): Migrate from Kiosk SDK v1 to the current version
|
|
4
|
+
- [Kiosk SDK](..md): TypeScript SDK for interacting with Sui Kiosk onchain commerce.
|
|
5
|
+
- [Kiosk Client](./kiosk-client/introduction.md): Introduction to the KioskClient extension for querying and managing kiosks on Sui.
|
|
6
|
+
- [Querying](./kiosk-client/querying.md): Query kiosk contents, owned kiosks, items, and transfer policies using the Kiosk SDK.
|
|
7
|
+
- [Advanced Examples](./advanced-examples.md): Advanced Kiosk SDK usage patterns and code examples for complex scenarios.
|
|
8
|
+
- [Migrating from Kiosk SDK V1](./from-v1.md): Migrate from Kiosk SDK v1 to the current version with the builder-pattern API.
|
package/dist/llms-index.md
CHANGED
|
@@ -4,124 +4,124 @@
|
|
|
4
4
|
## BCS
|
|
5
5
|
> Encoding and decoding Sui objects
|
|
6
6
|
|
|
7
|
-
- [BCS - Binary Canonical Serialization](./bcs.md): Encode and decode Sui Move types with Binary Canonical Serialization
|
|
7
|
+
- [BCS - Binary Canonical Serialization](./bcs.md): Encode and decode Sui Move types with Binary Canonical Serialization.
|
|
8
8
|
|
|
9
9
|
## TypeScript Codegen
|
|
10
10
|
> Generate type-safe TypeScript code from Sui Move packages
|
|
11
11
|
|
|
12
|
-
- [Sui TypeScript Codegen](./codegen.md): Generate type-safe TypeScript bindings from
|
|
12
|
+
- [Sui TypeScript Codegen](./codegen.md): Generate type-safe TypeScript bindings from onchain Sui Move packages.
|
|
13
13
|
|
|
14
14
|
## dApp Kit
|
|
15
15
|
> Build Sui dApps with @mysten/dapp-kit-core and @mysten/dapp-kit-react
|
|
16
16
|
|
|
17
|
-
- [Sui dApp Kit](./dapp-kit.md): Build Sui
|
|
18
|
-
- [@mysten/create-dapp](./dapp-kit/getting-started/create-dapp.md): Create a Sui
|
|
19
|
-
- [React](./dapp-kit/getting-started/react.md): Set up dApp Kit in a React application
|
|
20
|
-
- [Next.js](./dapp-kit/getting-started/next-js.md): Set up dApp Kit in a Next.js application
|
|
21
|
-
- [Vue](./dapp-kit/getting-started/vue.md): Set up dApp Kit in a Vue application
|
|
17
|
+
- [Sui dApp Kit](./dapp-kit.md): Build Sui apps with framework-agnostic core and React bindings.
|
|
18
|
+
- [@mysten/create-dapp](./dapp-kit/getting-started/create-dapp.md): Create a Sui app with one command using the create-dapp CLI scaffolding tool.
|
|
19
|
+
- [React](./dapp-kit/getting-started/react.md): Set up dApp Kit in a React application.
|
|
20
|
+
- [Next.js](./dapp-kit/getting-started/next-js.md): Set up dApp Kit in a Next.js application.
|
|
21
|
+
- [Vue](./dapp-kit/getting-started/vue.md): Set up dApp Kit in a Vue application.
|
|
22
22
|
- [DApp Kit Instance](./dapp-kit/dapp-kit-instance.md): Create and configure a DAppKit instance for wallet and client management
|
|
23
|
-
- [State](./dapp-kit/state.md): Access and subscribe to wallet connection state in dApp Kit
|
|
24
|
-
- [Connect Wallet](./dapp-kit/actions/connect-wallet.md): Programmatically connect to a Sui wallet
|
|
25
|
-
- [Disconnect Wallet](./dapp-kit/actions/disconnect-wallet.md): Programmatically disconnect from a Sui wallet
|
|
26
|
-
- [Sign and Execute Transaction](./dapp-kit/actions/sign-and-execute-transaction.md): Sign and execute a transaction using the connected wallet
|
|
27
|
-
- [Sign Personal Message](./dapp-kit/actions/sign-personal-message.md): Sign an arbitrary message with the connected wallet
|
|
28
|
-
- [Sign Transaction](./dapp-kit/actions/sign-transaction.md): Sign a transaction without executing it
|
|
29
|
-
- [Switch Account](./dapp-kit/actions/switch-account.md): Switch the active account in the connected wallet
|
|
30
|
-
- [Switch Network](./dapp-kit/actions/switch-network.md): Switch the active network for the dApp Kit instance
|
|
31
|
-
- [DAppKitProvider](./dapp-kit/react/dapp-kit-provider.md): React context provider
|
|
32
|
-
- [React Hooks](./dapp-kit/react/hooks.md): React hooks for accessing dApp Kit state and actions
|
|
33
|
-
- [useDAppKit](./dapp-kit/react/hooks/use-dapp-kit.md): React hook to access the full dApp Kit instance
|
|
34
|
-
- [React Components](./dapp-kit/react/components.md): Pre-built React UI components for wallet interaction
|
|
35
|
-
- [Connect Button](./dapp-kit/react/components/connect-button.md): React button component for
|
|
36
|
-
- [Connect Modal](./dapp-kit/react/components/connect-modal.md): React modal component for wallet
|
|
37
|
-
- [Connect Button](./dapp-kit/web-components/connect-button.md): Framework-agnostic web component
|
|
38
|
-
- [Connect Modal](./dapp-kit/web-components/connect-modal.md): Framework-agnostic web component for wallet selection
|
|
39
|
-
- [Theming](./dapp-kit/theming.md): Customize the appearance of dApp Kit UI components
|
|
40
|
-
- [Sui dApp Kit (Legacy)](./dapp-kit/legacy.md): dApp Kit API reference for @mysten/dapp-kit
|
|
23
|
+
- [State](./dapp-kit/state.md): Access and subscribe to wallet connection state in dApp Kit.
|
|
24
|
+
- [Connect Wallet](./dapp-kit/actions/connect-wallet.md): Programmatically connect to a Sui wallet using the dApp Kit connectWallet action.
|
|
25
|
+
- [Disconnect Wallet](./dapp-kit/actions/disconnect-wallet.md): Programmatically disconnect from a Sui wallet using the dApp Kit disconnectWallet action.
|
|
26
|
+
- [Sign and Execute Transaction](./dapp-kit/actions/sign-and-execute-transaction.md): Sign and execute a transaction on the Sui network using the connected wallet.
|
|
27
|
+
- [Sign Personal Message](./dapp-kit/actions/sign-personal-message.md): Sign an arbitrary message with the connected wallet for authentication or proof of ownership.
|
|
28
|
+
- [Sign Transaction](./dapp-kit/actions/sign-transaction.md): Sign a Sui transaction without executing it for deferred or multi-signature scenarios.
|
|
29
|
+
- [Switch Account](./dapp-kit/actions/switch-account.md): Switch the active account in the connected wallet using the dApp Kit switchAccount action.
|
|
30
|
+
- [Switch Network](./dapp-kit/actions/switch-network.md): Switch the active network for the dApp Kit instance between mainnet, testnet, and other networks.
|
|
31
|
+
- [DAppKitProvider](./dapp-kit/react/dapp-kit-provider.md): React context provider that makes dApp Kit available throughout your application.
|
|
32
|
+
- [React Hooks](./dapp-kit/react/hooks.md): React hooks for accessing dApp Kit state and actions in Sui applications.
|
|
33
|
+
- [useDAppKit](./dapp-kit/react/hooks/use-dapp-kit.md): React hook to access the full dApp Kit instance for calling actions directly.
|
|
34
|
+
- [React Components](./dapp-kit/react/components.md): Pre-built React UI components for wallet interaction in Sui dApps.
|
|
35
|
+
- [Connect Button](./dapp-kit/react/components/connect-button.md): React button component for connecting and disconnecting Sui wallets.
|
|
36
|
+
- [Connect Modal](./dapp-kit/react/components/connect-modal.md): React modal component for selecting and connecting to a Sui wallet.
|
|
37
|
+
- [Connect Button](./dapp-kit/web-components/connect-button.md): Framework-agnostic web component providing a complete wallet connection UI for Sui dApps.
|
|
38
|
+
- [Connect Modal](./dapp-kit/web-components/connect-modal.md): Framework-agnostic web component for wallet selection and connection in Sui dApps.
|
|
39
|
+
- [Theming](./dapp-kit/theming.md): Customize the appearance of dApp Kit UI components.
|
|
40
|
+
- [Sui dApp Kit (Legacy)](./dapp-kit/legacy.md): Legacy dApp Kit API reference for the deprecated @mysten/dapp-kit package using JSON RPC.
|
|
41
41
|
|
|
42
42
|
## Kiosk
|
|
43
43
|
> Interact with on-chain commerce applications
|
|
44
44
|
|
|
45
|
-
- [Kiosk SDK](./kiosk.md): TypeScript SDK for interacting with Sui Kiosk
|
|
46
|
-
- [Kiosk Client](./kiosk/kiosk-client/introduction.md): Introduction to the KioskClient for querying and managing kiosks
|
|
47
|
-
- [Querying](./kiosk/kiosk-client/querying.md): Query kiosk contents, items, and transfer policies
|
|
48
|
-
- [Advanced Examples](./kiosk/advanced-examples.md): Advanced Kiosk SDK usage patterns and examples
|
|
49
|
-
- [Migrating from Kiosk SDK V1](./kiosk/from-v1.md): Migrate from Kiosk SDK v1 to the current version
|
|
45
|
+
- [Kiosk SDK](./kiosk.md): TypeScript SDK for interacting with Sui Kiosk onchain commerce.
|
|
46
|
+
- [Kiosk Client](./kiosk/kiosk-client/introduction.md): Introduction to the KioskClient extension for querying and managing kiosks on Sui.
|
|
47
|
+
- [Querying](./kiosk/kiosk-client/querying.md): Query kiosk contents, owned kiosks, items, and transfer policies using the Kiosk SDK.
|
|
48
|
+
- [Advanced Examples](./kiosk/advanced-examples.md): Advanced Kiosk SDK usage patterns and code examples for complex scenarios.
|
|
49
|
+
- [Migrating from Kiosk SDK V1](./kiosk/from-v1.md): Migrate from Kiosk SDK v1 to the current version with the builder-pattern API.
|
|
50
50
|
|
|
51
51
|
## Payment Kit
|
|
52
52
|
> Accept payments in any coin type on Sui
|
|
53
53
|
|
|
54
|
-
- [Payment Kit](./payment-kit.md): Accept payments in any coin type on Sui
|
|
55
|
-
- [Getting Started](./payment-kit/getting-started.md): Install and set up Payment Kit for your Sui
|
|
56
|
-
- [Payment Kit SDK](./payment-kit/payment-kit-sdk.md): Payment Kit SDK API reference and configuration
|
|
57
|
-
- [Payment Processing](./payment-kit/payment-processing.md): Process payments and handle transaction results
|
|
58
|
-
- [Registry Management](./payment-kit/registry-management.md):
|
|
54
|
+
- [Payment Kit](./payment-kit.md): Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
55
|
+
- [Getting Started](./payment-kit/getting-started.md): Install and set up Payment Kit for your Sui application.
|
|
56
|
+
- [Payment Kit SDK](./payment-kit/payment-kit-sdk.md): Payment Kit SDK API reference and configuration for the PaymentKitClient.
|
|
57
|
+
- [Payment Processing](./payment-kit/payment-processing.md): Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
58
|
+
- [Registry Management](./payment-kit/registry-management.md): Create, configure, and manage payment registries and accepted coin types on Sui.
|
|
59
59
|
|
|
60
60
|
## Seal
|
|
61
61
|
> Use Seal, a decentralized secrets management service that secures your data using threshold encryption and on-chain access control.
|
|
62
62
|
|
|
63
|
-
- [Seal SDK](./seal.md): Decentralized secrets management with threshold encryption on Sui
|
|
63
|
+
- [Seal SDK](./seal.md): Decentralized secrets management with threshold encryption on Sui.
|
|
64
64
|
|
|
65
65
|
## Slush Wallet
|
|
66
66
|
> Slush Wallet Integration
|
|
67
67
|
|
|
68
|
-
- [Slush Wallet Integration](./slush-wallet.md): Integrate Slush Wallet into your Sui
|
|
69
|
-
- [
|
|
70
|
-
- [Deep Linking](./slush-wallet/deep-linking.md):
|
|
68
|
+
- [Slush Wallet Integration](./slush-wallet.md): Integrate Slush Wallet into your Sui application for mobile and web wallet support.
|
|
69
|
+
- [App Integration](./slush-wallet/dapp.md): Connect your app to Slush Wallet using the Slush Wallet SDK and wallet standard.
|
|
70
|
+
- [Deep Linking](./slush-wallet/deep-linking.md): Configure deep links to open Slush Wallet directly to specific screens or actions.
|
|
71
71
|
|
|
72
72
|
## Sui SDK
|
|
73
73
|
> TypeScript interfaces for Sui
|
|
74
74
|
|
|
75
|
-
- [Sui TypeScript SDK Quick Start](./sui.md): TypeScript SDK for
|
|
76
|
-
- [Install Sui TypeScript SDK](./sui/install.md): Install the @mysten/sui package and configure your project
|
|
77
|
-
- [LLM Documentation](./sui/llm-docs.md): Give AI agents access to Sui SDK documentation in your project
|
|
78
|
-
- [Hello Sui](./sui/hello-sui.md): Build your first Sui application with the TypeScript SDK
|
|
79
|
-
- [Faucet](./sui/faucet.md): Request test SUI tokens from the faucet
|
|
80
|
-
- [Sui Clients](./sui/clients.md): Choose and configure gRPC, GraphQL, or JSON-RPC clients
|
|
81
|
-
- [Core API](./sui/clients/core.md): Transport-agnostic Core API shared by all Sui clients
|
|
82
|
-
- [SuiGrpcClient](./sui/clients/grpc.md): Connect to Sui
|
|
83
|
-
- [SuiGraphQLClient](./sui/clients/graphql.md): Connect to Sui
|
|
84
|
-
- [SuiJsonRpcClient](./sui/clients/json-rpc.md): Connect to Sui
|
|
85
|
-
- [Sui Programmable Transaction Basics](./sui/transaction-building/basics.md): Construct programmable transaction blocks with the Transaction API
|
|
86
|
-
- [Paying for Sui Transactions with Gas Coins](./sui/transaction-building/gas.md): Configure gas budget, price, and coin selection for transactions
|
|
87
|
-
- [Transaction Intents](./sui/transaction-building/intents.md): Use high-level intents to simplify transaction building
|
|
88
|
-
- [Building Offline](./sui/transaction-building/offline.md): Build transactions without a network connection
|
|
89
|
-
- [Sponsored Transactions](./sui/transaction-building/sponsored-transactions.md): Pay gas fees on behalf of other users with sponsored transactions
|
|
90
|
-
- [Key pairs](./sui/cryptography/keypairs.md): Create and manage Ed25519, Secp256k1, and Secp256r1 keypairs
|
|
91
|
-
- [Multi-Signature Transactions](./sui/cryptography/multisig.md): Create multi-signature transactions with multiple signers
|
|
92
|
-
- [Passkey](./sui/cryptography/passkey.md): Use WebAuthn passkeys for Sui transaction signing
|
|
93
|
-
- [Web Crypto Signer](./sui/cryptography/webcrypto-signer.md): Sign transactions using the Web Crypto API
|
|
94
|
-
- [The `@mysten/sui/utils` package](./sui/utils.md): Utility functions for addresses, coins, and common operations
|
|
95
|
-
- [Derived Objects](./sui/utils/derived_objects.md): Compute derived object IDs from parent objects
|
|
96
|
-
- [BCS](./sui/bcs.md): Binary Canonical Serialization for encoding Sui Move types
|
|
97
|
-
- [ZkLogin](./sui/zklogin.md): Zero-knowledge authentication with OAuth providers on Sui
|
|
98
|
-
- [Transaction Executors](./sui/executors.md): Manage transaction execution with queuing and parallel strategies
|
|
99
|
-
- [Transaction Plugins](./sui/plugins.md): Extend transaction building with reusable plugins
|
|
100
|
-
- [Building SDKs](./sui/sdk-building.md): Build custom SDKs on top of the Sui TypeScript SDK
|
|
101
|
-
- [Migrate to 2.0](./sui/migrations/sui-2.0.md): Migration guide for Sui TypeScript SDK 2.0
|
|
102
|
-
- [Agent Migration Prompt](./sui/migrations/sui-2.0/agent-prompt.md): AI agent prompt for automated SDK 2.0 migration
|
|
103
|
-
- [@mysten/sui](./sui/migrations/sui-2.0/sui.md): Migrate @mysten/sui from 1.x to 2.0
|
|
104
|
-
- [Migrating from JSON-RPC](./sui/migrations/sui-2.0/json-rpc-migration.md): Migrate from JSON-RPC to the new Core API
|
|
105
|
-
- [@mysten/dapp-kit](./sui/migrations/sui-2.0/dapp-kit.md): Migrate @mysten/dapp-kit to 2.0
|
|
106
|
-
- [@mysten/kiosk](./sui/migrations/sui-2.0/kiosk.md): Migrate @mysten/kiosk to 2.0
|
|
107
|
-
- [@mysten/zksend](./sui/migrations/sui-2.0/zksend.md): Migrate @mysten/zksend to 2.0
|
|
108
|
-
- [@mysten/suins](./sui/migrations/sui-2.0/suins.md): Migrate @mysten/suins to 2.0
|
|
109
|
-
- [@mysten/deepbook-v3](./sui/migrations/sui-2.0/deepbook-v3.md): Migrate @mysten/deepbook-v3 to 2.0
|
|
110
|
-
- [@mysten/walrus](./sui/migrations/sui-2.0/walrus.md): Migrate @mysten/walrus to 2.0
|
|
111
|
-
- [@mysten/seal](./sui/migrations/sui-2.0/seal.md): Migrate @mysten/seal to 2.0
|
|
112
|
-
- [Wallet Builders](./sui/migrations/sui-2.0/wallet-builders.md): Migration guide for wallet extension developers
|
|
113
|
-
- [SDK Maintainers](./sui/migrations/sui-2.0/sdk-maintainers.md): Migration guide for SDK maintainers and library authors
|
|
114
|
-
- [Migrate to 1.0](./sui/migrations/sui-1.0.md): Migrate to Sui TypeScript SDK 1.0
|
|
115
|
-
- [Migrate to 0.38.0](./sui/migrations/0.38.md): Migrate from SDK version 0.37 to 0.38
|
|
75
|
+
- [Sui TypeScript SDK Quick Start](./sui.md): The Sui TypeScript SDK is a modular library of tools for interacting with the Sui blockchain.
|
|
76
|
+
- [Install Sui TypeScript SDK](./sui/install.md): Install the @mysten/sui package and configure your project.
|
|
77
|
+
- [LLM Documentation](./sui/llm-docs.md): Give AI agents access to Sui SDK documentation in your project.
|
|
78
|
+
- [Hello Sui](./sui/hello-sui.md): Build your first Sui application with the TypeScript SDK.
|
|
79
|
+
- [Faucet](./sui/faucet.md): Request test SUI tokens from the faucet on Devnet, Testnet, or local networks.
|
|
80
|
+
- [Sui Clients](./sui/clients.md): Choose and configure gRPC, GraphQL, or JSON-RPC clients for the Sui network.
|
|
81
|
+
- [Core API](./sui/clients/core.md): Transport-agnostic Core API shared by all Sui clients.
|
|
82
|
+
- [SuiGrpcClient](./sui/clients/grpc.md): Connect to Sui through gRPC with SuiGrpcClient.
|
|
83
|
+
- [SuiGraphQLClient](./sui/clients/graphql.md): Connect to Sui through GraphQL with SuiGraphQLClient.
|
|
84
|
+
- [SuiJsonRpcClient](./sui/clients/json-rpc.md): Connect to Sui through JSON-RPC with SuiJsonRpcClient.
|
|
85
|
+
- [Sui Programmable Transaction Basics](./sui/transaction-building/basics.md): Construct programmable transaction blocks with the Transaction API.
|
|
86
|
+
- [Paying for Sui Transactions with Gas Coins](./sui/transaction-building/gas.md): Configure gas budget, price, and coin selection for Sui transactions.
|
|
87
|
+
- [Transaction Intents](./sui/transaction-building/intents.md): Use high-level intents to simplify transaction building.
|
|
88
|
+
- [Building Offline](./sui/transaction-building/offline.md): Build transactions without a network connection.
|
|
89
|
+
- [Sponsored Transactions](./sui/transaction-building/sponsored-transactions.md): Pay gas fees on behalf of other users with sponsored transactions.
|
|
90
|
+
- [Key pairs](./sui/cryptography/keypairs.md): Create and manage Ed25519, Secp256k1, and Secp256r1 keypairs for Sui transaction signing.
|
|
91
|
+
- [Multi-Signature Transactions](./sui/cryptography/multisig.md): Create multi-signature transactions with multiple signers on Sui.
|
|
92
|
+
- [Passkey](./sui/cryptography/passkey.md): Use WebAuthn passkeys for Sui transaction signing.
|
|
93
|
+
- [Web Crypto Signer](./sui/cryptography/webcrypto-signer.md): Sign transactions using the Web Crypto API for secure browser-based key management.
|
|
94
|
+
- [The `@mysten/sui/utils` package](./sui/utils.md): Utility functions for addresses, coins, and common operations in the Sui TypeScript SDK.
|
|
95
|
+
- [Derived Objects](./sui/utils/derived_objects.md): Compute derived object IDs from parent objects for deterministic offline derivation.
|
|
96
|
+
- [BCS](./sui/bcs.md): Binary Canonical Serialization for encoding Sui Move types.
|
|
97
|
+
- [ZkLogin](./sui/zklogin.md): Zero-knowledge authentication with OAuth providers on Sui.
|
|
98
|
+
- [Transaction Executors](./sui/executors.md): Manage transaction execution with queuing and parallel strategies.
|
|
99
|
+
- [Transaction Plugins](./sui/plugins.md): Extend transaction building with reusable plugins.
|
|
100
|
+
- [Building SDKs](./sui/sdk-building.md): Build custom SDKs on top of the Sui TypeScript SDK.
|
|
101
|
+
- [Migrate to 2.0](./sui/migrations/sui-2.0.md): Migration guide for Sui TypeScript SDK 2.0 covering all @mysten packages.
|
|
102
|
+
- [Agent Migration Prompt](./sui/migrations/sui-2.0/agent-prompt.md): AI agent prompt for automated SDK 2.0 migration of your codebase.
|
|
103
|
+
- [@mysten/sui](./sui/migrations/sui-2.0/sui.md): Migrate @mysten/sui from 1.x to 2.0 with new client APIs and BCS changes.
|
|
104
|
+
- [Migrating from JSON-RPC](./sui/migrations/sui-2.0/json-rpc-migration.md): Migrate from JSON-RPC to the new Core API using SuiGrpcClient or SuiGraphQLClient.
|
|
105
|
+
- [@mysten/dapp-kit](./sui/migrations/sui-2.0/dapp-kit.md): Migrate @mysten/dapp-kit to the new dapp-kit-react package in 2.0.
|
|
106
|
+
- [@mysten/kiosk](./sui/migrations/sui-2.0/kiosk.md): Migrate @mysten/kiosk to 2.0 with client extension pattern and KioskTransaction.
|
|
107
|
+
- [@mysten/zksend](./sui/migrations/sui-2.0/zksend.md): Migrate @mysten/zksend to 2.0 with client extension pattern and simplified API.
|
|
108
|
+
- [@mysten/suins](./sui/migrations/sui-2.0/suins.md): Migrate @mysten/suins to 2.0 with client extension pattern.
|
|
109
|
+
- [@mysten/deepbook-v3](./sui/migrations/sui-2.0/deepbook-v3.md): Migrate @mysten/deepbook-v3 to 2.0 with client extension pattern.
|
|
110
|
+
- [@mysten/walrus](./sui/migrations/sui-2.0/walrus.md): Migrate @mysten/walrus to 2.0 with required client parameter and updated API.
|
|
111
|
+
- [@mysten/seal](./sui/migrations/sui-2.0/seal.md): Migrate @mysten/seal to 2.0 with the new registration function pattern.
|
|
112
|
+
- [Wallet Builders](./sui/migrations/sui-2.0/wallet-builders.md): Migration guide for wallet extension developers upgrading to 2.0.
|
|
113
|
+
- [SDK Maintainers](./sui/migrations/sui-2.0/sdk-maintainers.md): Migration guide for SDK maintainers and library authors upgrading to 2.0.
|
|
114
|
+
- [Migrate to 1.0](./sui/migrations/sui-1.0.md): Migrate to Sui TypeScript SDK 1.0 with new features and API changes.
|
|
115
|
+
- [Migrate to 0.38.0](./sui/migrations/0.38.md): Migrate from SDK version 0.37 to 0.38 with updated module structure and API changes.
|
|
116
116
|
|
|
117
117
|
## Walrus
|
|
118
118
|
> Publish and Read blobs directly from walrus storage nodes
|
|
119
119
|
|
|
120
|
-
- [Walrus SDK](./walrus.md): Store and retrieve blobs on Walrus decentralized storage
|
|
120
|
+
- [Walrus SDK](./walrus.md): Store and retrieve blobs on Walrus decentralized storage using the TypeScript SDK.
|
|
121
121
|
|
|
122
122
|
## ZkSend
|
|
123
123
|
> Send Sui with a link
|
|
124
124
|
|
|
125
|
-
- [zkSend SDK](./zksend.md): Send Sui assets
|
|
126
|
-
- [Creating zkSend Links](./zksend/link-builder.md): Create and customize zkSend claim links
|
|
125
|
+
- [zkSend SDK](./zksend.md): Send Sui assets through shareable claim links using the zkSend SDK.
|
|
126
|
+
- [Creating zkSend Links](./zksend/link-builder.md): Create and customize zkSend claim links for sending Sui assets.
|
|
127
127
|
- [Composable Claims](./zksend/composable-claim.md): Claim a zkSend link and use the assets in the same transaction
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Getting Started
|
|
2
2
|
|
|
3
|
-
> Install and set up Payment Kit for your Sui
|
|
3
|
+
> Install and set up Payment Kit for your Sui application.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
|
@@ -12,7 +12,7 @@ This guide will help you set up and start using the Payment Kit SDK in your Sui
|
|
|
12
12
|
|
|
13
13
|
Before you begin, ensure you have:
|
|
14
14
|
|
|
15
|
-
- A Sui wallet with
|
|
15
|
+
- A Sui wallet with Testnet or Mainnet SUI tokens
|
|
16
16
|
- Basic understanding of TypeScript and the Sui blockchain
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
@@ -23,7 +23,7 @@ Install the Payment Kit SDK and the Sui TypeScript SDK:
|
|
|
23
23
|
npm install --save @mysten/payment-kit @mysten/sui
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
## Setting
|
|
26
|
+
## Setting up the client
|
|
27
27
|
|
|
28
28
|
The Payment Kit SDK extends the standard `SuiGrpcClient` to provide payment functionality. Here's
|
|
29
29
|
how to set it up:
|
|
@@ -38,11 +38,11 @@ const client = new SuiGrpcClient({
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
The client will automatically configure the correct package IDs for the network you're using
|
|
41
|
-
(
|
|
41
|
+
(Testnet or Mainnet).
|
|
42
42
|
|
|
43
|
-
## Your
|
|
43
|
+
## Your first payment
|
|
44
44
|
|
|
45
|
-
Let's process a
|
|
45
|
+
Let's process a basic registry-based payment using the default payment registry:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
|
|
@@ -77,7 +77,7 @@ if (result.$kind === 'FailedTransaction') {
|
|
|
77
77
|
console.log('Payment processed:', result.Transaction.digest);
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
## Understanding the
|
|
80
|
+
## Understanding the payment
|
|
81
81
|
|
|
82
82
|
In this example:
|
|
83
83
|
|
|
@@ -88,7 +88,7 @@ In this example:
|
|
|
88
88
|
5. **Sender**: The address sending the payment (must match the transaction signer)
|
|
89
89
|
6. **Registry Name**: The payment registry to use (defaults to `DEFAULT_REGISTRY_NAME`)
|
|
90
90
|
|
|
91
|
-
## Verifying the
|
|
91
|
+
## Verifying the payment
|
|
92
92
|
|
|
93
93
|
After processing a payment, you can query the payment record to verify it exists:
|
|
94
94
|
|
|
@@ -110,7 +110,7 @@ if (paymentRecord) {
|
|
|
110
110
|
}
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
## Processing an
|
|
113
|
+
## Processing an ephemeral payment
|
|
114
114
|
|
|
115
115
|
If you don't need duplicate prevention or persistent storage, use ephemeral payments:
|
|
116
116
|
|
|
@@ -143,7 +143,7 @@ Ephemeral payments:
|
|
|
143
143
|
- Still emit a `PaymentReceipt` event
|
|
144
144
|
- Have lower gas costs
|
|
145
145
|
|
|
146
|
-
## Working with
|
|
146
|
+
## Working with different coin types
|
|
147
147
|
|
|
148
148
|
Payment Kit supports any Sui coin type. Here's how to process payments with custom coins:
|
|
149
149
|
|
|
@@ -166,7 +166,7 @@ const result = await client.signAndExecuteTransaction({
|
|
|
166
166
|
});
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
## Error
|
|
169
|
+
## Error handling
|
|
170
170
|
|
|
171
171
|
Always wrap payment operations in try-catch blocks:
|
|
172
172
|
|
|
@@ -194,7 +194,7 @@ try {
|
|
|
194
194
|
}
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
## Creating
|
|
197
|
+
## Creating payment URIs
|
|
198
198
|
|
|
199
199
|
Payment Kit provides helper functions to create and parse Payment Kit transaction URIs. These URIs
|
|
200
200
|
are useful for generating payment links, QR codes, or deep links in your application:
|
|
@@ -247,7 +247,7 @@ const tx = client.paymentKit.tx.processRegistryPayment({
|
|
|
247
247
|
});
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
## Next
|
|
250
|
+
## Next steps
|
|
251
251
|
|
|
252
252
|
Now that you understand the basics, explore more advanced features:
|
|
253
253
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Payment Kit
|
|
2
2
|
|
|
3
|
-
> Accept payments in any coin type on Sui
|
|
3
|
+
> Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
|
7
7
|
> before using in production environments.
|
|
8
8
|
|
|
9
|
-
The Sui Payment Kit SDK is a TypeScript library that provides a
|
|
10
|
-
blockchain payments on the Sui network. It offers flexible payment processing with built-in
|
|
9
|
+
The Sui Payment Kit SDK is a TypeScript library that provides a straightforward and secure way to
|
|
10
|
+
process blockchain payments on the Sui network. It offers flexible payment processing with built-in
|
|
11
11
|
duplicate prevention, configurable payment registries, and comprehensive receipt management.
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
@@ -19,10 +19,10 @@ with minimal setup. The SDK provides two payment models:
|
|
|
19
19
|
expiration
|
|
20
20
|
- **Ephemeral payments**: Lightweight payment processing without persistent storage
|
|
21
21
|
|
|
22
|
-
All payments emit a `PaymentReceipt` that can be stored
|
|
22
|
+
All payments emit a `PaymentReceipt` that can be stored offchain for verification and
|
|
23
23
|
record-keeping.
|
|
24
24
|
|
|
25
|
-
## Key
|
|
25
|
+
## Key features
|
|
26
26
|
|
|
27
27
|
- **Duplicate Prevention**: Registry-based payments automatically prevent duplicate transactions
|
|
28
28
|
- **Flexible Payment Models**: Choose between registry-based or ephemeral payment processing
|
|
@@ -38,7 +38,7 @@ record-keeping.
|
|
|
38
38
|
npm install --save @mysten/payment-kit @mysten/sui
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
## Quick
|
|
41
|
+
## Quick start
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
44
|
|
|
@@ -69,7 +69,7 @@ if (result.$kind === 'FailedTransaction') {
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
## Network
|
|
72
|
+
## Network support
|
|
73
73
|
|
|
74
74
|
Payment Kit supports the following Sui networks:
|
|
75
75
|
|
|
@@ -79,9 +79,9 @@ Payment Kit supports the following Sui networks:
|
|
|
79
79
|
The SDK automatically configures the correct package and object IDs based on the network specified
|
|
80
80
|
in your `SuiGrpcClient` configuration.
|
|
81
81
|
|
|
82
|
-
## Core
|
|
82
|
+
## Core concepts
|
|
83
83
|
|
|
84
|
-
### Payment
|
|
84
|
+
### Payment processing
|
|
85
85
|
|
|
86
86
|
Payment Kit offers two distinct payment processing models to suit different application needs:
|
|
87
87
|
|
|
@@ -90,7 +90,7 @@ Payment Kit offers two distinct payment processing models to suit different appl
|
|
|
90
90
|
2. **Ephemeral Payments**: Processes payments without persistent storage, suitable for scenarios
|
|
91
91
|
where duplicate prevention is handled externally
|
|
92
92
|
|
|
93
|
-
### Payment
|
|
93
|
+
### Payment registries
|
|
94
94
|
|
|
95
95
|
A `PaymentRegistry` manages payment records and configurations. Benefits include:
|
|
96
96
|
|
|
@@ -99,7 +99,7 @@ A `PaymentRegistry` manages payment records and configurations. Benefits include
|
|
|
99
99
|
- Optional fund management
|
|
100
100
|
- Custom naming for easy identification and indexing
|
|
101
101
|
|
|
102
|
-
### Payment
|
|
102
|
+
### Payment records
|
|
103
103
|
|
|
104
104
|
When using registry-based payments, a `PaymentRecord` is created as a Dynamic Field on the registry.
|
|
105
105
|
Records are identified by a composite key derived from:
|
|
@@ -109,7 +109,7 @@ Records are identified by a composite key derived from:
|
|
|
109
109
|
- Coin type
|
|
110
110
|
- Receiver address
|
|
111
111
|
|
|
112
|
-
### Payment
|
|
112
|
+
### Payment receipts
|
|
113
113
|
|
|
114
114
|
Every payment (registry-based or ephemeral) emits a `PaymentReceipt` event containing:
|
|
115
115
|
|
|
@@ -124,7 +124,7 @@ type PaymentReceipt = {
|
|
|
124
124
|
};
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
## Next
|
|
127
|
+
## Next steps
|
|
128
128
|
|
|
129
129
|
- [Getting Started Guide](/payment-kit/getting-started) - Detailed setup and usage instructions
|
|
130
130
|
- [Payment Processing](/payment-kit/payment-processing) - Learn about different payment models
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Payment Kit
|
|
2
2
|
> Accept payments in any coin type on Sui
|
|
3
3
|
|
|
4
|
-
- [Payment Kit](..md): Accept payments in any coin type on Sui
|
|
5
|
-
- [Getting Started](./getting-started.md): Install and set up Payment Kit for your Sui
|
|
6
|
-
- [Payment Kit SDK](./payment-kit-sdk.md): Payment Kit SDK API reference and configuration
|
|
7
|
-
- [Payment Processing](./payment-processing.md): Process payments and handle transaction results
|
|
8
|
-
- [Registry Management](./registry-management.md):
|
|
4
|
+
- [Payment Kit](..md): Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
5
|
+
- [Getting Started](./getting-started.md): Install and set up Payment Kit for your Sui application.
|
|
6
|
+
- [Payment Kit SDK](./payment-kit-sdk.md): Payment Kit SDK API reference and configuration for the PaymentKitClient.
|
|
7
|
+
- [Payment Processing](./payment-processing.md): Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
8
|
+
- [Registry Management](./registry-management.md): Create, configure, and manage payment registries and accepted coin types on Sui.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Payment Kit SDK
|
|
2
2
|
|
|
3
|
-
> Payment Kit SDK API reference and configuration
|
|
3
|
+
> Payment Kit SDK API reference and configuration for the PaymentKitClient.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Complete API reference for the Payment Kit SDK.
|
|
10
10
|
|
|
11
|
-
## Client
|
|
11
|
+
## Client setup
|
|
12
12
|
|
|
13
13
|
### PaymentKitClient
|
|
14
14
|
|
|
@@ -46,7 +46,7 @@ client.paymentKit.tx.processRegistryPayment(/* ... */);
|
|
|
46
46
|
|
|
47
47
|
- `PaymentKitClientError` if network is unsupported
|
|
48
48
|
|
|
49
|
-
## Transaction
|
|
49
|
+
## Transaction methods
|
|
50
50
|
|
|
51
51
|
Transaction methods create complete, ready-to-sign transactions.
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ type ProcessRegistryPaymentOptions = {
|
|
|
74
74
|
|
|
75
75
|
**Returns:** `Transaction` - Ready-to-sign transaction
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
If you prefer to provide the `registryId`, you can do so instead of the `registryName`.
|
|
78
78
|
|
|
79
79
|
**Example:**
|
|
80
80
|
|
|
@@ -404,7 +404,7 @@ const result = await client.signAndExecuteTransaction({
|
|
|
404
404
|
- Removes the payment record from the registry
|
|
405
405
|
- Sender receives storage rebate
|
|
406
406
|
|
|
407
|
-
## Query
|
|
407
|
+
## Query methods
|
|
408
408
|
|
|
409
409
|
### `client.paymentKit.getPaymentRecord()`
|
|
410
410
|
|
|
@@ -462,7 +462,7 @@ if (record) {
|
|
|
462
462
|
- Check for duplicate payments before processing
|
|
463
463
|
- Retrieve payment details for reconciliation
|
|
464
464
|
|
|
465
|
-
## Call
|
|
465
|
+
## Call methods
|
|
466
466
|
|
|
467
467
|
Call methods return transaction commands that can be composed in custom transactions. Use these when
|
|
468
468
|
you need fine-grained control over transaction construction.
|
|
@@ -516,7 +516,7 @@ await client.signAndExecuteTransaction({
|
|
|
516
516
|
});
|
|
517
517
|
```
|
|
518
518
|
|
|
519
|
-
### Other
|
|
519
|
+
### Other call methods
|
|
520
520
|
|
|
521
521
|
All transaction methods have corresponding call methods:
|
|
522
522
|
|
|
@@ -529,7 +529,7 @@ All transaction methods have corresponding call methods:
|
|
|
529
529
|
|
|
530
530
|
## Types
|
|
531
531
|
|
|
532
|
-
### PaymentReceipt
|
|
532
|
+
### PaymentReceipt event
|
|
533
533
|
|
|
534
534
|
Emitted when a payment is processed (registry or ephemeral).
|
|
535
535
|
|
|
@@ -567,7 +567,7 @@ if (receiptEvent) {
|
|
|
567
567
|
}
|
|
568
568
|
```
|
|
569
569
|
|
|
570
|
-
## Error
|
|
570
|
+
## Error handling
|
|
571
571
|
|
|
572
572
|
### PaymentKitClientError
|
|
573
573
|
|
|
@@ -579,13 +579,13 @@ class PaymentKitClientError extends Error {
|
|
|
579
579
|
}
|
|
580
580
|
```
|
|
581
581
|
|
|
582
|
-
## URI
|
|
582
|
+
## URI utilities
|
|
583
583
|
|
|
584
584
|
Payment Kit provides utility functions for creating and parsing payment transaction URIs. These URIs
|
|
585
585
|
follow the `sui:pay` protocol and can be used to encode payment parameters for QR codes, deep links,
|
|
586
586
|
or other sharing mechanisms.
|
|
587
587
|
|
|
588
|
-
### URI
|
|
588
|
+
### URI format
|
|
589
589
|
|
|
590
590
|
Payment URIs follow the `sui:pay` protocol:
|
|
591
591
|
|
|
@@ -603,12 +603,12 @@ sui:pay?
|
|
|
603
603
|
|
|
604
604
|
**Required Parameters:**
|
|
605
605
|
|
|
606
|
-
| Parameter | Description
|
|
607
|
-
| ---------- |
|
|
608
|
-
| `receiver` | Recipient Sui address
|
|
609
|
-
| `amount` | Payment amount in smallest unit (
|
|
610
|
-
| `coinType` | Coin type (
|
|
611
|
-
| `nonce` | Unique payment identifier (max 36 chars)
|
|
606
|
+
| Parameter | Description |
|
|
607
|
+
| ---------- | --------------------------------------------------- |
|
|
608
|
+
| `receiver` | Recipient Sui address |
|
|
609
|
+
| `amount` | Payment amount in smallest unit (for example, MIST) |
|
|
610
|
+
| `coinType` | Coin type (for example, `0x2::sui::SUI`) |
|
|
611
|
+
| `nonce` | Unique payment identifier (max 36 chars) |
|
|
612
612
|
|
|
613
613
|
**Optional Parameters:**
|
|
614
614
|
|
|
@@ -740,7 +740,7 @@ const tx = client.paymentKit.tx.processRegistryPayment({
|
|
|
740
740
|
- `PaymentKitUriError` if nonce exceeds 36 characters
|
|
741
741
|
- `PaymentKitUriError` if amount is not a positive number
|
|
742
742
|
|
|
743
|
-
### Future
|
|
743
|
+
### Future versions
|
|
744
744
|
|
|
745
745
|
Check the
|
|
746
746
|
[CHANGELOG](https://github.com/MystenLabs/ts-sdks/blob/main/packages/payment-kit/CHANGELOG.md) for
|