I know how to pass the current Unix time from the frontend:
web3.js:
anchor.web3.SYSVAR_CLOCK_PUBKEY
Rust:
let current_time = ctx.accounts.clock.unix_timestamp;
I do not want that. I need the smart contract itself to get the current time.
I know how to pass the current Unix time from the frontend:
web3.js:
anchor.web3.SYSVAR_CLOCK_PUBKEY
Rust:
let current_time = ctx.accounts.clock.unix_timestamp;
I do not want that. I need the smart contract itself to get the current time.