# Error: NoSpendableInput

**URL:** <https://forum.fuel.network/t/error-nospendableinput/3904>\
**Category:** TypeScript SDK\
**Created:** [December 28, 2023, 8:19am UTC](https://forum.fuel.network/t/error-nospendableinput/3904 "2023-12-28T08:19:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chappie1998](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/chappie1998/32/971_2.png) [@chappie1998](https://forum.fuel.network/u/chappie1998)\
**Post date:** [December 28, 2023, 8:19am UTC](https://forum.fuel.network/t/error-nospendableinput/3904/1 "2023-12-28T08:19:38Z")

</div>

Getting below error when making a call simulation in TS-SDK.

call syntax:-  
`const id = { value: "0x6be7962fda4fa8fb4351ac7ffd1758ead948d79f374cf6edafb8f3861a9df70c" }; const res = await contract.functions.total_supply(id).simulate();`

Error:-

`Error: NoSpendableInput: {"response":{"data":null,"errors":[{"message":"NoSpendableInput","locations":[{"line":2,"column":3}],"path":["dryRun"]}],"status":200,"headers":{"map":{"content-length":"109","content-type":"application/json"}}},"request":{"query":"mutation dryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) {\n dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) {\n ...receiptFragment\n }\n}\n\nfragment receiptFragment on Receipt {\n contract {\n id\n bytecode\n salt\n }\n pc\n is\n to {\n id\n bytecode\n salt\n }\n toAddress\n amount\n assetId\n gas\n param1\n param2\n val\n ptr\n digest\n reason\n ra\n rb\n rc\n rd\n len\n receiptType\n result\n gasUsed\n data\n sender\n recipient\n nonce\n contractId\n subId\n}","variables":`

---

<div class="post-metadata">

**Author:** ![calldelegation](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/calldelegation/32/1484_2.png) [@calldelegation](https://forum.fuel.network/u/calldelegation)\
**Post date:** [January 2, 2024, 3:18am UTC](https://forum.fuel.network/t/error-nospendableinput/3904/2 "2024-01-02T03:18:18Z")

</div>

Hmmm I don’t see why this would be the case because you’re making a read only call in those two lines. Is there a working branch I can take a look at @chappie1998?

---

<div class="post-metadata">

**Author:** ![danielbate](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/danielbate/32/1617_2.png) [@danielbate](https://forum.fuel.network/u/danielbate)\
**Post date:** [January 3, 2024, 11:29am UTC](https://forum.fuel.network/t/error-nospendableinput/3904/3 "2024-01-03T11:29:45Z")

</div>

Worth noting that although @chappie1998 is making a read only call, it must still meet all the requirements of a valid transaction. We’d usually see this error if there was no spendable input on the transaction. As it’s read only, the input will not be spent, however it is still required on the transaction to be deemed valid.

---

<div class="post-metadata">

**Author:** ![chappie1998](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/chappie1998/32/971_2.png) [@chappie1998](https://forum.fuel.network/u/chappie1998)\
**Post date:** [January 11, 2024, 4:31am UTC](https://forum.fuel.network/t/error-nospendableinput/3904/4 "2024-01-11T04:31:38Z")

</div>

just reading nft contract total\_supply.

---

<div class="post-metadata">

**Author:** ![chappie1998](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/chappie1998/32/971_2.png) [@chappie1998](https://forum.fuel.network/u/chappie1998)\
**Post date:** [January 11, 2024, 4:32am UTC](https://forum.fuel.network/t/error-nospendableinput/3904/5 "2024-01-11T04:32:46Z")

</div>

May I know what other parameters needs to be added. in the example of docs there it’s the same. [Quickstart Frontend | Fuel Docs](https://docs.fuel.network/docs/intro/quickstart-frontend/#modify-the-app)

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [January 17, 2024, 1:30pm UTC](https://forum.fuel.network/t/error-nospendableinput/3904/6 "2024-01-17T13:30:50Z")

</div>

HI there, does your wallet has funds?  
[This topic](https://forum.fuel.network/t/cant-make-dryrun-with-wallet-that-doesnt-have-eth-on-balance/3068) might help you.
