-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from singnet/development
Release version 3.6.1
- Loading branch information
Showing
5 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ The package is published in PyPI at the following link: | |
The SingularityNET SDK allows you to make calls to SingularityNET services programmatically from your application. | ||
To communicate between clients and services, SingularityNET uses [gRPC](https://grpc.io/). | ||
To handle payment of services, SingularityNET uses | ||
[Ethereum state channels](https://dev.singularitynet.io/docs/concepts/multi-party-escrow/). | ||
[Ethereum state channels](https://dev.singularitynet.io/docs/ai-consumers/mpe/). | ||
The SingularityNET SDK abstracts and manages state channels with service providers on behalf of the user and | ||
handles authentication with the SingularityNET services. | ||
|
||
|
@@ -144,18 +144,19 @@ If you want to use the free calls you will need to pass these arguments to the ` | |
|
||
```python | ||
free_call_auth_token_bin = "f2548d27ffd319b9c05918eeac15ebab934e5cfcd68e1ec3db2b92765", | ||
free_call_token_expiry_block = 172800 | ||
free_call_token_expiry_block = 172800, | ||
email = "[email protected]" # which using in AI marketplace account | ||
``` | ||
|
||
You can receive these for a given service from the [Dapp](https://beta.singularitynet.io/) | ||
|
||
Creating a service client with free calls included would look like this: | ||
```python | ||
service_client = snet_sdk.create_service_client(org_id="26072b8b6a0e448180f8c0e702ab6d2f", | ||
service_id="Exampleservice", | ||
group_name="default_group", | ||
service_id="Exampleservice" | ||
free_call_auth_token_bin="f2548d27ffd319b9c05918eeac15ebab934e5cfcd68e1ec3db2b92765", | ||
free_call_token_expiry_block=172800) | ||
free_call_token_expiry_block=172800, | ||
email="[email protected]") | ||
``` | ||
|
||
### Paid call | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "3.6.0" | ||
__version__ = "3.6.1" |