Skip to content

Commit 77c59ac

Browse files
committed
docs: update SDK transaction examples with prerequisites and ensure proper formatting
1 parent 0faf98f commit 77c59ac

File tree

7 files changed

+11
-3
lines changed

7 files changed

+11
-3
lines changed

.chain-interactions/send-transactions/with-sdks.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Select your preferred SDK below to see complete, runnable examples that send bal
2626
!!! warning
2727
Never share your mnemonic phrase or private keys. The examples below use mnemonics for demonstration purposes only. In production, use secure key management solutions.
2828

29+
## Prerequisites
30+
31+
- Access to a Polkadot-SDK-compatible wallet, with its mnemonic phrase or private key.
32+
- A funded account on Polkadot Hub, with some testnet tokens. You can use the [Polkadot Faucet](https://faucet.polkadot.io/?parachain=1111){target=\_blank} to obtain test tokens.
33+
2934
## Send Transactions
3035

3136
=== "PAPI"

.snippets/code/chain-interactions/send-transactions/with-sdks/dedot/send-transfer-ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
<span data-ty>Transaction finalized in block: 0x80b039e897d8cfe4ec0c641cd17cc7a47ed4b26797b31c7d3c93c3b0b96f7b9f</span>
1818
<span data-ty>Transaction successful!</span>
1919
<span data-ty>Disconnected from Polkadot Testnet</span>
20-
</div>
20+
</div>

.snippets/code/chain-interactions/send-transactions/with-sdks/pjs/send-transfer-js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
<span data-ty>Transaction finalized in block: 0x77b5d73d30412ec39ac6cfe6cf3ec2134fec8e3fcbcd821218863d01f9fac40f</span>
1313
<span data-ty>Transaction hash: 0x6f2fbe51985c87a5534c919d76859b66138aaf874147a1e300e50d93cee1c429</span>
1414
<span data-ty>Transaction successful!</span>
15-
</div>
15+
</div>

.snippets/code/chain-interactions/send-transactions/with-sdks/psi/send-transfer-py.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<span data-ty>Transaction successful!</span>
1212
<span data-ty>Extrinsic Hash: 0x5509e26874f5274747896349be68b0904058f4e2822385fdb7c8dc86f2dab879</span>
1313
<span data-ty>Block Hash: 0xfd79ad0e21c5a91c358e2bd59540a98681e407e4231c9577221f97cc121449b8</span>
14-
</div>
14+
</div>

.snippets/code/chain-interactions/send-transactions/with-sdks/subxt/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ subxt = { version = "0.35", default-features = false, features = ["macros"] }
1212
subxt-signer = { version = "0.4", features = ["bip39"] }
1313
tokio = { version = "1", features = ["rt", "macros"] }
1414

15+

.snippets/code/chain-interactions/send-transactions/with-sdks/subxt/send-transfer-rs.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
<span data-ty>Transfer event: Transfer { from: 14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3, to: 15uPcYeUE2XaMiMJuR6W7QGW2LsLdKXX7F3PxKG8gcizPh3X, amount: 1000000000000 }</span>
1414
</div>
1515

16+

.snippets/code/chain-interactions/send-transactions/with-sdks/subxt/src/bin/send_transfer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6767
Ok(())
6868
}
6969

70+

0 commit comments

Comments
 (0)