@@ -25,10 +25,10 @@ class KinClient(object):
2525
2626 def __init__ (self , environment ):
2727 """Create a new instance of the KinClient to query the Kin blockchain.
28- :param ` kin.Environment` environment: an environment for the client to point to.
28+ :param kin.Environment environment: an environment for the client to point to.
2929
3030 :return: An instance of the KinClient.
31- :rtype: :class:` KinErrors.KinClient`
31+ :rtype: KinErrors.KinClient
3232 """
3333
3434 self .environment = environment
@@ -41,12 +41,12 @@ def kin_account(self, seed, channel_secret_keys=None, app_id=ANON_APP_ID):
4141 """
4242 Create a new instance of a KinAccount to perform authenticated operations on the blockchain.
4343 :param str seed: The secret seed of the account that will be used
44- :param list of str channel_secret_keys: A list of seeds to be used as channels
44+ :param list[ str] channel_secret_keys: A list of seeds to be used as channels
4545 :param str app_id: the unique id of your app
4646 :return: An instance of KinAccount
4747 :rtype: kin.KinAccount
4848
49- :raises: :class:` KinErrors.AccountNotFoundError`: if SDK wallet or channel account is not yet created.
49+ :raises: KinErrors.AccountNotFoundError if SDK wallet or channel account is not yet created.
5050 """
5151
5252 # Create a new kin account, using self as the KinClient to be used
@@ -101,7 +101,7 @@ def get_account_balance(self, address):
101101 :rtype: float
102102
103103 :raises: StellarAddressInvalidError: if the provided address has the wrong format.
104- :raises: :class:` KinErrors.AccountNotFoundError`: if the account does not exist.
104+ :raises: KinErrors.AccountNotFoundError if the account does not exist.
105105 """
106106
107107 if not is_valid_address (address ):
@@ -119,7 +119,7 @@ def does_account_exists(self, address):
119119 :return: does the account exists on the blockchain
120120 :rtype boolean
121121
122- :raises: :class:` KinErrors.StellarAddressInvalidError`: if the address is not valid.
122+ :raises: KinErrors.StellarAddressInvalidError if the address is not valid.
123123 """
124124
125125 if not is_valid_address (address ):
@@ -137,7 +137,7 @@ def get_account_data(self, address):
137137 :param str address: the public address of the account to query.
138138
139139 :return: account data
140- :rtype: :class:` kin.AccountData`
140+ :rtype: kin.blockchain.horizon_models. AccountData
141141
142142 :raises: StellarAddressInvalidError: if the provided address has a wrong format.
143143 :raises: :class:`KinErrors.AccountNotFoundError`: if the account does not exist.
@@ -161,7 +161,7 @@ def get_transaction_data(self, tx_hash, simple=True):
161161 :param boolean simple: (optional) returns a simplified transaction object
162162
163163 :return: transaction data
164- :rtype: :class:` kin.TransactionData` or ` kin.SimplifiedTransaction`
164+ :rtype: kin.transactions.RawTransaction | kin.transactions. SimplifiedTransaction
165165
166166 :raises: ValueError: if the provided hash is invalid.
167167 :raises: :class:`KinErrors.ResourceNotFoundError`: if the transaction does not exist.
@@ -189,7 +189,7 @@ def get_account_tx_history(self, address, amount=10, descending=True, cursor=Non
189189 :param int cursor: The horizon paging token
190190 :param bool simple: Should the returned txs be simplified, if True, complicated txs will be ignored
191191 :return: A list of transactions
192- :rtype: list
192+ :rtype: list[kin.transactions.RawTransaction | kin.transactions.SimplifiedTransaction]
193193 """
194194
195195 if not is_valid_address (address ):
@@ -264,13 +264,14 @@ def friendbot(self, address):
264264 """
265265 Use the friendbot service to create and fund an account
266266 :param str address: The address to create and fund
267- :return: the hash of the friendobt transaction
267+
268+ :return: the hash of the friendbot transaction
268269 :rtype str
269270
270271 :raises ValueError: if no friendbot service was provided
271272 :raises ValueError: if the address is invalid
272- :raises :class: ` KinErrors.AccountExistsError`: if the account already exists
273- :raises :class: ` KinErrors.FriendbotError`: If the friendbot request failed
273+ :raises KinErrors.AccountExistsError if the account already exists
274+ :raises KinErrors.FriendbotError If the friendbot request failed
274275 """
275276
276277 if self .environment .friendbot_url is None :
@@ -294,14 +295,14 @@ def monitor_account_payments(self, address, callback_fn):
294295 :param str address: the address of the account to query.
295296
296297 :param callback_fn: the function to call on each received payment as `callback_fn(address, tx_data, monitor)`.
297- :type: callable[str,:class:` kin.TransactionData`,:class:` kin.SingleMonitor` ]
298+ :type: callable[str,kin.transactions.SimplifiedTransaction, kin.SingleMonitor]
298299
299300 :return: a monitor instance
300- :rtype: :class:` kin.SingleMonitor`
301+ :rtype: kin.monitors. SingleMonitor
301302
302303 :raises: ValueError: when no address is given.
303304 :raises: ValueError: if the address is in the wrong format
304- :raises: :class:` KinErrors.AccountNotActivatedError`: if the account given is not activated
305+ :raises: KinErrors.AccountNotActivatedError if the account given is not activated
305306 """
306307
307308 return SingleMonitor (self , address , callback_fn )
@@ -313,14 +314,14 @@ def monitor_accounts_payments(self, addresses, callback_fn):
313314 :param str addresses: the addresses of the accounts to query.
314315
315316 :param callback_fn: the function to call on each received payment as `callback_fn(address, tx_data, monitor)`.
316- :type: callable[str,:class:` kin.TransactionData`,:class:` kin.MultiMonitor` ]
317+ :type: callable[str,kin.transactions.SimplifiedTransaction , kin.monitors. MultiMonitor]
317318
318319 :return: a monitor instance
319- :rtype: :class:` kin.MultiMonitor`
320+ :rtype: kin.monitors. MultiMonitor
320321
321322 :raises: ValueError: when no address is given.
322323 :raises: ValueError: if the addresses are in the wrong format
323- :raises: :class:` KinErrors.AccountNotActivatedError`: if the accounts given are not activated
324+ :raises: KinErrors.AccountNotActivatedError if the accounts given are not activated
324325 """
325326
326327 return MultiMonitor (self , addresses , callback_fn )
0 commit comments