I'm using a javascript library (etheremjs) to sign a transaction. When creating it, it asks for the nonce field. I researched about it and partially understood it. But my main problem is:
How do I actually get it? Is the nonce a lifetime transaction number of that wallet or just a number for a set of transactions in a period of time? Does it start at 0 or 1? Is it public? How can I know what nonce I should use for a new transaction?