77to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88copies of the Software, and to permit persons to whom the Software is
99furnished to do so, subject to the following conditions:
10+
11+ The above copyright notice and this permission notice shall be included in all
12+ copies or substantial portions of the Software.
13+
14+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+ SOFTWARE.
1021'''
1122
1223from algosdk import mnemonic , account , encoding
2435from contracts .dot_algo_name_record import ValidateRecord
2536import base64
2637import datetime ,time
38+ # Import PureStake API
39+ import mysecrets
2740
2841
2942def SetupClient (network ):
@@ -36,9 +49,9 @@ def SetupClient(network):
3649 elif (network == "purestake" ):
3750 # Purestake conn
3851 algod_address = "https://testnet-algorand.api.purestake.io/ps2"
39- algod_token = "iG4m46pAcU5ws8WYhgYPu1rywUbfYT2DaAfSs9Tv"
52+ algod_token = mysecrets . MY_PURESTAKE_TOKEN
4053 headers = {
41- "X-API-Key" : algod_token ,
54+ "X-API-Key" : mysecrets . MY_PURESTAKE_TOKEN
4255 }
4356
4457 else :
0 commit comments