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
|**Python**|`xrpl-py`|[Get Started Using Python](../tutorials/python/build-apps/get-started.md)|[API Reference](https://xrpl-py.readthedocs.io/)|[Repo](https://github.com/XRPLF/xrpl-py)|
|**C++**|`rippled` Signing Library |[Get Started](https://github.com/XRPLF/rippled/tree/develop/Builds/linux#signing-library)|| (Part of [`rippled`](https://github.com/XRPLF/rippled/)) |
20
-
|**Java**|`xrpl4j`|[Get Started Using Java](../tutorials/java/build-apps/get-started.md)|[API Reference](https://javadoc.io/doc/org.xrpl/)|[Repo](https://github.com/XRPLF/xrpl4j)|
21
-
|**PHP**|`XRPL_PHP`|[Get Started Using PHP](../tutorials/php/build-apps/get-started.md)|[XRPL_PHP Docs](https://alexanderbuzz.github.io/xrpl-php-docs/)|[Repo](https://github.com/AlexanderBuzz/xrpl-php)|
|**Python**|`xrpl-py`|[Get Started Using Python](../tutorials/python/build-apps/get-started.md)|[API Reference](https://xrpl-py.readthedocs.io/)|[Repo](https://github.com/XRPLF/xrpl-py)|
|**C++**|`rippled` Signing Library |[Get Started](https://github.com/XRPLF/rippled/tree/develop/Builds/linux#signing-library)|| (Part of [`rippled`](https://github.com/XRPLF/rippled/)) |
20
+
|**Java**|`xrpl4j`|[Get Started Using Java](../tutorials/java/build-apps/get-started.md)|[API Reference](https://javadoc.io/doc/org.xrpl/)|[Repo](https://github.com/XRPLF/xrpl4j)|
21
+
|**PHP**|`xrpl-php`|[Get Started Using xrpl-php](../tutorials/php/ecourty_xrpl-php/index.md)|[XRPL_PHP Docs](https://github.com/EdouardCourty/xrpl-php#readme)|[Repo](https://github.com/EdouardCourty/xrpl-php)|
22
+
|**PHP**|`XRPL_PHP`|[Get Started Using XRPL_PHP](../tutorials/php/hardcastle_xrpl_php/build-apps/get-started.md)|[XRPL_PHP Docs](https://alexanderbuzz.github.io/xrpl-php-docs/)|[Repo](https://github.com/AlexanderBuzz/xrpl-php)|
Copy file name to clipboardexpand all lines: docs/tutorials/how-tos/send-xrp.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ To interact with the XRP Ledger, you need to set up a dev environment with the n
27
27
-**JavaScript** with the [xrpl.js library](https://github.com/XRPLF/xrpl.js/). See [Get Started Using JavaScript](../javascript/build-apps/get-started.md) for setup steps.
28
28
-**Python** with the [`xrpl-py` library](https://xrpl-py.readthedocs.io/). See [Get Started using Python](../python/build-apps/get-started.md) for setup steps.
29
29
-**Java** with the [xrpl4j library](https://github.com/XRPLF/xrpl4j). See [Get Started Using Java](../java/build-apps/get-started.md) for setup steps.
30
-
-**PHP** with the [XRPL_PHP library](https://github.com/AlexanderBuzz/xrpl-php). See [Get Started Using PHP](../php/build-apps/get-started.md) for setup steps.
30
+
-**PHP** with the [PHP Client Libraries](/docs/tutorials/php/index.md)
{% xrpl-card title="HTTP & WebSocket APIs" body="Access the XRP Ledger directly through the APIs of its core server." href="/docs/tutorials/http-websocket-apis/" image="/img/logos/globe.svg" imageAlt="globe icon" /%}
Creating an XRP Wallet is the base operation when building applications that interact with the XRP Ledger.
4
+
5
+
If you want to import a wallet from an existing seed, refer to the [Import a Wallet](./import-a-wallet.md) tutorial.
6
+
7
+
Wallets can be generated using two different algorithms:
8
+
- ED25519
9
+
- SECP256K1
10
+
11
+
The XRPL-PHP library supports both algorithms. By default, the `ED25519` algorithm is used.
12
+
13
+
_If you're interested in discovering how the generation workflows work, refer to the [ED25519 Key Derivation](/docs/concepts/accounts/cryptographic-keys.md#ed25519-key-derivation) or [SECP256K1 Key Dreivation](/docs/concepts/accounts/cryptographic-keys.md#secp256k1-key-derivation) documentation page_.
Every field will then be converted into its own [Internal Format](/docs/references/protocol/binary-format.md#internal-format) before being submitted to the XRP Ledger Node.
description: Mint an NFT on the XRP Ledger using the ecourty/xrpl-php library.
4
+
---
5
+
6
+
# Mint an NFT
7
+
8
+
Minting an NFT on the XRP Ledger is an easy process.
9
+
You need to craft your transaction payload with care to avoid any errors:
10
+
- Define the flags according to the NFT type you want to mint. [Documentation reference](/docs/references/protocol/transactions/types/nftokenmint#nftokenmint-flags)
11
+
- Define the "content" or your NFT in the `URI` field, this is usually an IPFS link to the NFT metadata.
12
+
- Craft the transaction!
13
+
14
+
_Here is the [list of all the available fields on the `NFTokenMint` transaction](/docs/references/protocol/transactions/types/nftokenmint.md)_
15
+
16
+
<br />
17
+
18
+
Here is a tutorial on how to mint a simple NFT on the testnet, using a random wallet.
19
+
```php
20
+
<?php
21
+
22
+
use XRPL\Client\XRPLClient;
23
+
use XRPL\Service\Faucet;
24
+
use XRPL\ValueObject\Wallet;
25
+
26
+
$wallet = Wallet::generate();
27
+
Faucet::addFunds($wallet);
28
+
29
+
echo 'Wallet generated and funded!' . \PHP_EOL;
30
+
31
+
$client = new XRPLClient('https://s.altnet.rippletest.net:51234');
32
+
33
+
$transactionData = [
34
+
'TransactionType' => 'NFTokenMint',
35
+
'Account' => $wallet->getAddress(),
36
+
'URI' => '11223344', // Can be virtually anything (Needs to be a hex-encoded)
37
+
'Flags' => 8, // Makes the NFT transferable
38
+
'TransferFee' => 1000, // Fee for transferring the NFT
39
+
'NFTokenTaxon' => 0, // Allows for grouping of NFTs (e.g. by collection, use the same taxon for NFTs of the same collection)
0 commit comments