When I deploy, sometimes I succeed and sometimes I fail. Who can help solve this problem,That's strange!!
def get_metadata(client, mint_key):
metadata_account = get_metadata_account(mint_key)
client_metadata_account = client.get_account_info(metadata_account)
print(client_metadata_account)
data = base64.b64decode(client_metadata_account['result']['value']['data'][0])
# data = base64.b64decode(client.get_account_info(metadata_account)['result']['value']['data'][0])
metadata = unpack_metadata_account(data)
return metadata
Output
{'jsonrpc': '2.0', 'result': {'context': {'slot': 109953095}, 'value': None}, 'id': 2}
some time can get value some time value is None plz help me ~~
Me TOOO! They did not answer! I had this problem last week many times!
I got this problem which was due to name/symbol when calling api.deploy(..., name, symbol, ...) not matching the metadata name/symbol values in the JSON. Changing them to match fixed it for me.
Happens all the time. It happens due to the blockchain not accepting the tx to deploy. If you look in solana.explorer, the tx won't appear there. The good question is why.
I got this problem which was due to
name/symbolwhen callingapi.deploy(..., name, symbol, ...)not matching the metadataname/symbolvalues in the JSON. Changing them to match fixed it for me.
as soon as I did this it worked!
@ifczt @themaqs @louislandelle @aziganshin @phoebexiong did any of you find the solution for this issue I am facing the same issue intermittently . I have kept the symbol and name same in both places but still face the issue . if you have a solution please can you post it here
@DevVarunn
Unfortunately, No! We have migrated to rust and js versions! :D
Guys, you need to insert the await_full_confirmation everywhere!