Link to GitHub
Entities:
extends: -
is extended by: -
This is a configuration manager for the SDK. It is responsible for handling configuration settings for the SDK.
__config
(dict): The dictionary containing:private_key
(str): Your wallet's private key that will be used to pay for calls. Is required in config.eth_rpc_endpoint
(str): RPC endpoint that is used to access the Ethereum network. Is required in config.wallet_index
(int): The index of the wallet that will be used to pay for calls.ipfs_endpoint
(str): IPFS endpoint that is used to access IPFS. Defaults to "/dns/ipfs.singularitynet.io/tcp/80/".concurrency
(bool): If set to True, will enable concurrency for the SDK.force_update
(bool): If set to False, will reuse the existing gRPC stubs (if any) instead of downloading proto and regenerating them every time.mpe_contract_address
(str): The address of the Multi-Party Escrow smart contract.token_contract_address
(str): The address of the SingularityNET token smart contract.registry_contract_address
(str): The address of the Registry smart contract.signer_private_key
(str): The private key of the signer. Used to sign the service call. Equals toprivate_key
by default.lighthouse_token
(str): The Lighthouse token used to access the Lighthouse storage provider. Defaults to " ". Currently, it can't be changed.
Initializes a new instance of the class. Sets __config
fields from passed arguments.
private_key
(str): Your wallet's private key that will be used to pay for calls. Is required in config.eth_rpc_endpoint
(str): RPC endpoint that is used to access the Ethereum network. Is required in config.wallet_index
(int): The index of the wallet that will be used to pay for calls. Defaults to 0.ipfs_endpoint
(str): IPFS endpoint that is used to access IPFS. Defaults to None.concurrency
(bool): If set to True, will enable concurrency for the SDK. Defaults to True.force_update
(bool): If set to False, will reuse the existing gRPC stubs (if any) instead of downloading proto and regenerating them every time. Defaults to False.mpe_contract_address
(str): The address of the Multi-Party Escrow smart contract. Defaults to None.token_contract_address
(str): The address of the SingularityNET token smart contract. Defaults to None.registry_contract_address
(str): The address of the Registry smart contract. Defaults to None.signer_private_key
(str): The private key of the signer. Used to sign the service call. Equals toprivate_key
by default.
- None
Overrides the __getitem__
Python special method. Returns the value associated with the given key from
the __config
dict.
key
(str): The key of the value to retrieve.
- The value associated with the given key. (Any)
Returns the value associated with the given key from the __config
dict or the default value if the key is not found.
key
(str): The key of the value to retrieve.default
(Any): The default value to return if the key is not found. Defaults to None.
- The value associated with the given key or the default value if the key is not found. (Any)
Returns the ipfs_endpoint
field value from the __config
dict.
- The IPFS endpoint. (str)