question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: invalid BigNumber value

See original GitHub issue

Started getting this error today, on openseaSDK.createSellOrder() method with Node 16.14.0

await openseaSDK.createSellOrder({
        asset: {
             tokenId: item.id,
        },
        startAmount: item.startAmount, // 1.5
        endAmount: item.endAmount,  // 1.35  
        ...

        /** Getting id, prices - from my "item" array  */
 });

My current package.json

"dependencies": {
    "yarn": "^1.22.19",
    "@0x/subproviders": "^7.0.0",
    "@truffle/hdwallet-provider": "^2.0.14",
    "express": "^4.18.1",
    "opensea-js": "^4.0.8",
    "web3": "^1.7.5"
  }

Full error information.

Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.2)
    at Logger.makeError (/app/node_modules/@ethersproject/logger/lib/index.js:233:21)
    at Logger.throwError (/app/node_modules/@ethersproject/logger/lib/index.js:242:20)
    at Logger.throwArgumentError (/app/node_modules/@ethersproject/logger/lib/index.js:245:21)
    at Function.BigNumber.from (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:239:23)
    at toBN (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:292:25)
    at BigNumber.add (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:57:43)
    at /app/node_modules/@opensea/seaport-js/lib/utils/order.js:151:43
    at Array.reduce (<anonymous>)
    at totalItemsAmount (/app/node_modules/@opensea/seaport-js/lib/utils/order.js:147:10)
    at Seaport.<anonymous> (/app/node_modules/@opensea/seaport-js/lib/seaport.js:285:76)
    at step (/app/node_modules/@opensea/seaport-js/lib/seaport.js:44:23)
    at Object.next (/app/node_modules/@opensea/seaport-js/lib/seaport.js:25:53)
    at fulfilled (/app/node_modules/@opensea/seaport-js/lib/seaport.js:16:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
        reason: 'invalid BigNumber value',
        code: 'INVALID_ARGUMENT',
        argument: 'value',
        value: undefined
    }

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sunwrobertcommented, Sep 21, 2022

It should finally be fixed now in 4.0.12. Thanks for your patience everyone.

1reaction
sunwrobertcommented, Sep 16, 2022

This will be fixed in #746

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: invalid BigNumber value (argument ... - Stack Overflow
It looks like you're trying to send an object as the parameter { value: (listingPrice) }. This should probably be written as either...
Read more >
Invalid BigNumber Value Uniswap and Ethers JS
I tried using the ether's BigNumber constructor but I still got the same error. Does anyone know what's going on? ropsten · uniswap...
Read more >
Error: invalid BigNumber value (argument="value ... - GitHub
Lottery.js: Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.7.0) at Logger.
Read more >
invalid bignumber string (argument= value - You.com | The AI ...
The error happens when you're trying to call the people() function (from Remix IDE) without passing any value. Since the People[] public people...
Read more >
invalid BigNumber string : r/solidity - Reddit
When I try to enter this as a parameter in Etherscan, I get an error -> " invalid BigNumber string (argument="value", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found