Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

When I deploy, sometimes I succeed and sometimes I fail. Who can help solve this problem,That's strange!! #31

@ifczt

Description

@ifczt
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 ~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions