File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ You can choose either syntax or even mix both styles in your projects.
2727 - [ Unfreezing a Token] ( #unfreezing-a-token )
2828 - [ Rejecting a Token] ( #rejecting-a-token )
2929 - [ Rejecting a Non-Fungible Token] ( #rejecting-a-non-fungible-token )
30+ - [ Pausing a Token] ( #pausing-a-token )
3031 - [ Querying NFT Info] ( #querying-nft-info )
3132- [ HBAR Transactions] ( #hbar-transactions )
3233 - [ Transferring HBAR] ( #transferring-hbar )
@@ -448,6 +449,32 @@ transaction.execute(client)
448449 transaction.execute(client)
449450```
450451
452+ ### Pausing a Token
453+
454+ #### Pythonic Syntax:
455+ ```
456+ transaction = TokenPauseTransaction(
457+ token_id=token_id
458+ ).freeze_with(client)
459+
460+ transaction.sign(pause_key)
461+ receipt = transaction.execute(client)
462+ print(f"Pause status: {receipt.status.name}")
463+
464+
465+ ```
466+ #### Method Chaining:
467+ ```
468+ receipt = (
469+ TokenPauseTransaction()
470+ .set_token_id(token_id)
471+ .freeze_with(client)
472+ .sign(pause_key) # pause_key must match
473+ .execute(client)
474+ )
475+ print(f"Pause status: {receipt.status.name}")
476+ ```
477+
451478### Querying NFT Info
452479
453480#### Pythonic Syntax:
You can’t perform that action at this time.
0 commit comments