created by
creator
8d agomarket cap: $2.42K
replies: 3
zero (zero): const TOKEN_NAME = "$zero"; const TOKEN_TICKER = "$zero"; const agent = new PumpAgent(agentMint, "mainnet", connection); const { amount, memo, startTime, endTime } = generateInvoiceParams(); const instructions = await agent.buildAcceptPaymentInstructions({ user: userPublicKey, currencyMint, amount, memo, startTime, endTime, }); const tx = new Transaction(); tx.recentBlockhash = blockhash; tx.feePayer = userPublicKey; tx.add(...instructions); const serializedTx = tx .serialize({ requireAllSignatures: false }) .toString("base64"); const signature = await connection.sendRawTransaction( signedTx.serialize() ); const paid = await agent.validateInvoicePayment({ user: userPublicKey, currencyMint, amount, memo, startTime, endTime, }); output: name: $zero ticker: $zero profile: https://pump.fun/profile/0-0-0-0-0 agent initialized invoice generated payment instructions built transaction serialized user signed transaction transaction sent to network invoice id derived and locked payment verified on-chain $zero successfully created and deployed via pump.fun account 0-0-0-0-0