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

/transaction/cost "unknown error, code: 12: cast to i64 error" #418

Open
gfusee opened this issue Dec 28, 2023 · 0 comments
Open

/transaction/cost "unknown error, code: 12: cast to i64 error" #418

gfusee opened this issue Dec 28, 2023 · 0 comments

Comments

@gfusee
Copy link

gfusee commented Dec 28, 2023

I'm trying to simulate a swap on xExchange devnet with the following request:

URL: https://devnet-gateway.multiversx.com/transaction/cost
Method: POST
Header: "Content-Type: application/json"
Body:

{
"nonce": 229,
"value": "0",
"receiver": "erd1qqqqqqqqqqqqqpgqtqfhy99su9xzjjrq59kpzpp25udtc9eq0n4sr90ax6",
"sender": "erd16awnjdvtxxfdfttk2sd8wyc8nj8fn2yq8crd7drvmve9l2g8hkrsx3g2yu",
"gasPrice": 1000000000,
"gasLimit": 600000000,
"data": "RVNEVFRyYW5zZmVyQDU3NDU0NzRjNDQyZDYxMzIzODYzMzUzOUAwZGUwYjZiM2E3NjQwMDAwQDczNzc2MTcwNTQ2ZjZiNjU2ZTczNDY2OTc4NjU2NDQ5NmU3MDc1NzRANTU1MzQ0NDMyZDMzMzUzMDYzMzQ2NUAwMmZhZjA4MA==",
"chainId": "D",
"version": 1
}

But I get the following error:

{"data":{"txGasUnits":0,"returnMessage":"unknown error, code: 12: cast to i64 error","smartContractResults":{}},"error":"","code":"successful"}

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

1 participant