mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
xrpl-py tutorial: fix links in JA target
This commit is contained in:
@@ -80,7 +80,7 @@ The sample code in the previous section shows you how to connect to the Testnet,
|
||||
|
||||
### {{n.next()}}. Generate wallet
|
||||
|
||||
To store value and execute transactions on the XRP Ledger, you need to create a wallet: a [set of keys](cryptographic-keys.html#key-components) and an [address](accounts.html#addresses) that's been [funded with enough XRP](accounts.html#creating-accounts) to meet the [account reserve](reserves.html#reserves). The address is the identifier of your account and you use the [private key](cryptographic-keys.html#private-key) to sign transactions that you submit to the XRP Ledger.
|
||||
To store value and execute transactions on the XRP Ledger, you need to create a wallet: a [set of keys](cryptographic-keys.html#key-components) and an [address](accounts.html#addresses) that's been [funded with enough XRP](accounts.html#creating-accounts) to meet the [account reserve](reserves.html). The address is the identifier of your account and you use the [private key](cryptographic-keys.html#private-key) to sign transactions that you submit to the XRP Ledger.
|
||||
|
||||
|
||||
For testing and development purposes, you can use the [XRP Faucets](xrp-testnet-faucet.html) to generate keys and fund the account on the Testnet or Devnet. For production purposes, you should take care to store your keys and set up a [secure signing method](set-up-secure-signing.html).
|
||||
@@ -124,6 +124,7 @@ To sign the transaction:
|
||||
{{ include_code("_code-samples/xrpl-py/prepare-payment.py", start_with="# Sign the transaction", end_before="# Print signed tx", language="py") }}
|
||||
|
||||
|
||||
|
||||
##### Send
|
||||
|
||||
To send the transaction:
|
||||
@@ -135,11 +136,11 @@ To send the transaction:
|
||||
|
||||
You can use `xrpl-py`'s [`xrpl.core.addresscodec`](https://xrpl-py.readthedocs.io/en/latest/source/xrpl.core.addresscodec.html) module to derive an [X-address](https://xrpaddress.info/) from the `Wallet.classic_address` field:
|
||||
|
||||
|
||||
{{ include_code("_code-samples/xrpl-py/get-acct-info.py", start_with="# Derive an x-address from the classic address:", end_before="# Look up info about your account", language="py") }}
|
||||
|
||||
The X-address format [packs the address and destination tag](https://github.com/xrp-community/standards-drafts/issues/6) into a more user-friendly value.
|
||||
|
||||
|
||||
### {{n.next()}}. Query the XRP Ledger
|
||||
|
||||
You can query the XRP Ledger to get information about [a specific account](account-methods.html), [a specific transaction](tx.html), the state of a [current or a historical ledger](ledger-methods.html), and [the XRP Ledger's decentralized exhange](path-and-order-book-methods.html). You need to make these queries, among other reasons, to look up account info to follow best practices for [reliable transaction submission](reliable-transaction-submission.html).
|
||||
@@ -209,7 +210,7 @@ The response fields that you want to inspect in most cases are:
|
||||
|
||||
* `account_data.Sequence` — This is the sequence number of the next valid transaction for the account. You need to specify the sequence number when you prepare transactions. With `xrpl-py`, you can use the [`get_next_valid_seq_number`](https://xrpl-py.readthedocs.io/en/latest/source/xrpl.account.html#xrpl.account.get_next_valid_seq_number) to get this automatically from the XRP Ledger. See an example of this usage in the project [README](https://github.com/XRPLF/xrpl-py#serialize-and-sign-transactions).
|
||||
|
||||
* `account_data.Balance` — This is the account's XRP balance, [in drops](basic-data-types.html#specifying-currency-amounts). You can use this to confirm that you have enough XRP to send (if you're making a payment) and to meet the [current transaction cost](transaction-cost.html#current-transaction-cost) for a given transaction.
|
||||
* `account_data.Balance` — This is the account's balance of [XRP, in drops][]. You can use this to confirm that you have enough XRP to send (if you're making a payment) and to meet the [current transaction cost](transaction-cost.html#current-transaction-cost) for a given transaction.
|
||||
|
||||
* `validated` — Indicates whether the returned data is from a [validated ledger](ledgers.html#open-closed-and-validated-ledgers). When sending transactions, it's important to ensure that the results are in a [final](finality-of-results.html) state in a validated ledger before further processing the transaction. For more information about best practices for transaction processing, see [Reliable Transaction Submission](reliable-transaction-submission.html).
|
||||
|
||||
@@ -224,6 +225,7 @@ Now that you know how to use `xrpl-py` to connect to the XRP Ledger, generate a
|
||||
* [Set up secure signing](set-up-secure-signing.html) for your account.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--{# common link defs #}-->
|
||||
{% include '_snippets/rippled-api-links.md' %}
|
||||
{% include '_snippets/tx-type-links.md' %}
|
||||
{% include '_snippets/rippled_versions.md' %}
|
||||
|
||||
@@ -155,6 +155,16 @@ targets:
|
||||
"consensus.html#calculate-and-share-validations": "consensus.html#検証の計算と共有"
|
||||
# Fix link from untranslated manifest.html:
|
||||
"rippled-server-modes.html#reporting-mode": "rippled-server-modes.html#レポーティングモード"
|
||||
# Fix links for untranslated get-started-using-python.html:
|
||||
"the-rippled-server.html#reasons-to-run-your-own-server": "rippled-server-modes.html#ストックサーバーを運用する理由"
|
||||
"get-started-with-the-rippled-api.html#public-servers": "get-started-with-the-rippled-api.html#公開サーバー"
|
||||
"cryptographic-keys.html#key-components": "cryptographic-keys.html#キーの生成"
|
||||
"accounts.html#addresses": "accounts.html#アドレス"
|
||||
"cryptographic-keys.html#private-key": "cryptographic-keys.html#キーの生成"
|
||||
"basic-data-types.html#specifying-currency-amounts": "basic-data-types.html#通貨額の指定"
|
||||
"transaction-cost.html#current-transaction-cost": "transaction-cost.html#現在のトランザクションコスト"
|
||||
"ledgers.html#open-closed-and-validated-ledgers": "ledgers.html#ツリーの形式"
|
||||
"account_info.html#response-format": "account_info.html#応答フォーマット"
|
||||
|
||||
|
||||
- name: xrp-api-only
|
||||
|
||||
Reference in New Issue
Block a user