I am testing a smart contract that requires a nonce for every single method I invoke. My idea was to use the Metasmask transaction nonce of the connected account, but I do not know how to extract the nonce of the next transaction from javascript... is there a built-in api method I can call that returns it?