Skip to content

missing headers in transfer tokens #2

Open
@vasyapeteckin

Description

@vasyapeteckin

IMX updated the parameters for the transfer of tokens, and now it is required to add parameters to the header, where can I do this?

client = IMXClient(
net="main", n_workers=1, pk="PRIVATE_KEY")

token_gods = ERC20(symbol='GODS', quantity=1, type="ERC20", decimals=18, contract_addr='0xccc8cb5229b0ac8069c51fd58367fd1e622afd97')

some_params = TransferParams(sender=sender_address, receiver=receiver_address, token=token_gods)
future = client.transfer(params=some_params)
res = future.result()
print(res)
returns:
{'status': 'error', 'result': 'x-imx-eth-signature and x-imx-eth-address headers both required'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions