Error: invalid BigNumber value
See original GitHub issueStarted 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:
- Created a year ago
- Comments:16 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It should finally be fixed now in 4.0.12. Thanks for your patience everyone.
This will be fixed in #746