# \[Help\] 1inch swap transaction Fail with error 'Invalid msg.value'

**URL:** <https://gov.1inch.network/t/help-1inch-swap-transaction-fail-with-error-invalid-msg-value/375>\
**Category:** 3.0 Developer Portal\
**Created:** [May 25, 2022, 7:02am UTC](https://gov.1inch.network/t/help-1inch-swap-transaction-fail-with-error-invalid-msg-value/375 "2022-05-25T07:02:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasanna](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@prasanna](https://gov.1inch.network/u/prasanna)\
**Post date:** [May 25, 2022, 7:02am UTC](https://gov.1inch.network/t/help-1inch-swap-transaction-fail-with-error-invalid-msg-value/375/1 "2022-05-25T07:02:18Z")

</div>

Hello, I am trying to create a Dapp using 1inch apis ([https://docs.1inch.io/docs/aggregation-protocol/api/swap-params](https://docs.1inch.io/docs/aggregation-protocol/api/swap-params)) - but the transaction fails on the blockchain with error:

> Fail with error ‘Invalid msg.value’

Does anybody know why this happens and how to solve it?

Thanks  
Prasanna

---

<div class="post-metadata">

**Author:** ![RoundElephant](https://sea1.discourse-cdn.com/flex001/user_avatar/gov.1inch.network/roundelephant/32/45_2.png) [@RoundElephant](https://gov.1inch.network/u/RoundElephant)\
**Post date:** [May 25, 2022, 1:10pm UTC](https://gov.1inch.network/t/help-1inch-swap-transaction-fail-with-error-invalid-msg-value/375/2 "2022-05-25T13:10:18Z")

</div>

Hi @prasanna! These questions are answered most quickly on the API channel of our Discord server – [1inch Network](https://discord.gg/2kvPyrR9HJ).
