We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a08fd24 commit f5e6163Copy full SHA for f5e6163
1 file changed
packages/x402-example/src/client.ts
@@ -72,8 +72,8 @@ async function main() {
72
const chainId = parseChainIdFromNetwork(requirements.network);
73
const environment = getSmartAccountsEnvironment(chainId);
74
75
- // expires in 1 minute
76
- const expiry = Date.now() / 1000 + 60;
+ // expires in 1 minute (must be an integer unix timestamp)
+ const expiry = Math.floor(Date.now() / 1000) + 60;
77
78
const delegation = createOpenDelegation({
79
environment,
0 commit comments