@@ -20,6 +20,11 @@ def get_default_royalty_info() -> ContractRoyaltySchema
2020
2121Get the default royalty information for this contract .
2222
23+ ```python
24+ royalty_info = contract .royalties .get_default_royalty_info ()
25+ print (royalty_info )
26+ ```
27+
2328**Returns **:
2429
2530the default royalty information.
@@ -34,6 +39,13 @@ def get_token_royalty_info(token_id: int) -> ContractRoyaltySchema
3439
3540Get the royalty information for a specific token.
3641
42+ ```python
43+ token_id = 0
44+
45+ royalty_info = contract.royalties.get_token_royalty_info(token_id)
46+ print (royalty_info)
47+ ```
48+
3749** Arguments** :
3850
3951- `token_id` : the id of the token.
@@ -52,6 +64,17 @@ def set_default_royalty_info(royalty_data: ContractRoyaltySchema) -> TxReceipt
5264
5365Set the default royalty information for this contract.
5466
67+ ```python
68+ from thirdweb.types import ContractRoyaltySchema
69+
70+ royalty_data = ContractRoyaltySchema(
71+ seller_fee_basis_points = 100 ,
72+ fee_recipient = " {{ wallet_address}} "
73+ )
74+
75+ receipt = contract.royalties.set_default_royalty_info()
76+ ```
77+
5578** Arguments** :
5679
5780- `royalty_data` : the default royalty information.
@@ -71,6 +94,18 @@ def set_token_royalty_info(token_id: int,
7194
7295Set the royalty information for a specific token.
7396
97+ ```python
98+ from thirdweb.types import ContractRoyaltySchema
99+
100+ token_id = 0
101+ royalty_data = ContractRoyaltySchema(
102+ seller_fee_basis_points = 100 ,
103+ fee_recipient = " {{ wallet_address}} "
104+ )
105+
106+ receipt = contract.royalties.set_token_royalty_info(token_id, royalty_data)
107+ ```
108+
74109** Arguments** :
75110
76111- `token_id` : the id of the token.
0 commit comments