Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing headers in transfer tokens #2

Open
vasyapeteckin opened this issue Oct 17, 2022 · 6 comments
Open

missing headers in transfer tokens #2

vasyapeteckin opened this issue Oct 17, 2022 · 6 comments

Comments

@vasyapeteckin
Copy link

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'}

@Dimfred
Copy link
Owner

Dimfred commented Oct 18, 2022

Hey thank you, feel free to provide a PR to fix this, I am kinda busy rn, but will fix it once I find time.

@LeapGamer
Copy link

Hey im getting the same thing. If I figure a solution ill post it, @vasyapeteckin did you end up solving it?

@Dimfred
Copy link
Owner

Dimfred commented Nov 25, 2022

So if anyone finds time, the first step would probably be to upgrade the imx-sdk to the most recent version, I am pretty sure a very old one is currently installed. Yeah and then basically work from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@LeapGamer @Dimfred @vasyapeteckin and others