#/usr/bin/python3
import json
import time
import base64
import os
from algosdk.v2client import algod
from algosdk import mnemonic
from algosdk import transaction
from algosdk import encoding
from algosdk import account
utility to connect to node
def connect_to_network():
algod_token = 'eBlXRdLQNW6nbPb6grYp05BXsq0UHIz47nFik7sS'
algod_address = 'https://testnet-algorand.api.purestake.io/ps2'
purestake_token = {'X-Api-key': algod_token}
# Initialize an algod client
#algod_client = algod.AlgodClient(algod_token=algod_token, algod_address=algod_address)
algod_client = algod.AlgodClient(algod_token, algod_address, headers=purestake_token)
return algod_client
group transactions
def sample() :
# connect to node
acl = connect_to_network()
print(format(acl))
# get suggested parameters
params = acl.suggested_params()
gen = params.gen
gh = params.gh
last_round = params.last
fee = acl.suggested_fee().fee
print(fee)
run
sample()
Using above program i am not able to get the suggested fee