Allowance call returns empty set through Moralis deep-index

Hi, I tried to use the requests below to fetch the allowance value but it keeps returning an empty set. I’m not sure where the error is originating from. Something to check out by the Moralis team in case it is broken or something…

token = web3.toChecksumAddress('0xfd290c590866f8282d89671A85Ac9964b165d682')
chain = "bsc"

apprvUrl = 'https://deep-index.moralis.io/api/v2/erc20/' + token + '/allowance?chain=' + chain + '&owner_address=' + my_wallet_address + '&spender_address=' +  router_address

apprvStatusReq = requests.request("GET", apprvUrl, headers=my_moralis_API)

print(json.dumps(apprvStatusReq.json(), indent=4))

Hey @BJonas

Could you please provide us full request. With token, spender and wallet addresses :raised_hands:

Hi there,

Sure here are the details:

token = "0xfd290c590866f8282d89671A85Ac9964b165d682"
router_address = "0x10ED43C718714eb63d5aA57B78B54704E256024E" 
my_wallet_address = "0x47ad853ab1fdcc0c178f1a12d467e6f5b5714616"

It’s a problem on API side. I will let you know when it will be fixed :man_mechanic:

Oh I see…Sure, no prob, thank you.

Hey @BJonas

That problem was fixed. Let me know how it works for you :man_mechanic:

1 Like

Works like a champ! Kudos for the quick response and good work.

2 Likes