{"title":"PumpSwap error 0x1797 (6039) means the payment is too small to cover the trading fees","answer":"The buy offered two of the smallest units of wrapped SOL, which represents SOL in a token account. Those two lamports were worth 0.000000002 SOL, and the buyer asked for at least one unit of the coin. PumpSwap reported that the payment could not cover the fees.","next_check":"Read the payment amount in the signed buy and compare it in whole smallest units with a fresh quote that includes the fees.","log_limit":"A pasted log line alone cannot show the fee, and the meaning stays open if you cannot identify the program that failed.","json_url":"/errors/pumpswap-6039.json","transaction_url":"/tx/UFVqNXjJcLhcmd9nUAWypTUu9V8H5JnvHSbdmx2twoo3iXJxHsDuNwFnBpb19wEgusRYhR9kheYxZAmrd3Qfzg8","related_guide":null,"checks":[{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","venue":"PumpSwap","code":6039,"hex":"0x1797","name":"BuyNotEnoughQuoteTokensToCoverFees","meaning":"The amount offered in the payment coin was too small to cover the trading fees.","source":"https://github.com/pump-fun/pump-public-docs/blob/8cda1fa30ea658b20909d8aedf002047119388d2/idl/pump_amm.json","revision":"idl/pump_amm.json at 8cda1fa30ea658b20909d8aedf002047119388d2 from 2026-10-07","guide":"pumpswap-6039"},{"program":"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P","venue":"Pump","code":6041,"hex":"0x1799","name":"BuyNotEnoughSolToCoverFees","meaning":"This buy leaves too little SOL to pay the fees.","source":"https://github.com/pump-fun/pump-public-docs/blob/639b87fb45c3adeffa6f7c4a1bf0cb85e392bf22/idl/pump.json","revision":"idl/pump.json at 639b87fb45c3adeffa6f7c4a1bf0cb85e392bf22 from 2026-10-13","guide":"pumpswap-6039"}],"next":"In BuyExactQuoteInV2 the spendable_quote_in amount includes trading fees, and min_base_amount_out sets the smallest return the buyer accepts. Check the payment coin’s decimal places and the fees for this pool before rebuilding the buy for an amount the buyer agrees to spend. Pump uses BuyNotEnoughSolToCoverFees on its bonding curve, which sets the launch price, when the SOL offered for the buy cannot cover the fees. The pool log gives no breakdown of the fee on the recorded buy.","reviewed":"2026-11-28","receipt":{"signature":"UFVqNXjJcLhcmd9nUAWypTUu9V8H5JnvHSbdmx2twoo3iXJxHsDuNwFnBpb19wEgusRYhR9kheYxZAmrd3Qfzg8","fee_lamports":5638,"time":"2026-11-28 18:56:33 UTC","instruction":"BuyExactQuoteInV2","outer_index":0,"source":"decoded receipt","url":"https://explorer.solana.com/tx/UFVqNXjJcLhcmd9nUAWypTUu9V8H5JnvHSbdmx2twoo3iXJxHsDuNwFnBpb19wEgusRYhR9kheYxZAmrd3Qfzg8","program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","venue":"PumpSwap","code":6039,"hex":"0x1797","error_name":"BuyNotEnoughQuoteTokensToCoverFees","fee_sol":"0.000005638"},"sources":[{"label":"idl/pump_amm.json at 8cda1fa30ea658b20909d8aedf002047119388d2 from 2026-10-07","url":"https://github.com/pump-fun/pump-public-docs/blob/8cda1fa30ea658b20909d8aedf002047119388d2/idl/pump_amm.json"},{"label":"idl/pump.json at 639b87fb45c3adeffa6f7c4a1bf0cb85e392bf22 from 2026-10-13","url":"https://github.com/pump-fun/pump-public-docs/blob/639b87fb45c3adeffa6f7c4a1bf0cb85e392bf22/idl/pump.json"},{"label":"the October 2026 guide to pool trade amounts and accounts","url":"https://github.com/pump-fun/pump-public-docs/blob/639b87fb45c3adeffa6f7c4a1bf0cb85e392bf22/docs/instructions/PUMP_SWAP_TRADE_V2.md"}],"decoder":"/errors","report":"/wallet-report","live":{"source":"These counts come from the live stream of confirmed transactions that touch pump.fun or PumpSwap.","method":"Each transaction contributes its fee once, and a failure belongs to the program that reported it. A successful transaction belongs to the first pump.fun or PumpSwap instruction we could identify. An instruction is one step in a transaction, and its attempts include transactions that failed at a later step. The fees include the extra amount paid for priority, and one billion lamports make one SOL.","payers":"Each minute counts a sender once per instruction and outcome, and adding minutes could count the same sender twice.","updated_at":"2026-11-29 04:57:58 UTC","periods_end_at":"2026-11-29 04:57:00 UTC","windows":{"hour":{"start":"2026-11-29 03:57:00 UTC","end":"2026-11-29 04:57:00 UTC","status":"complete","errors":[{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","code":"6039","transactions":45,"fee_lamports":1253782,"instructions":[{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","instruction":"BuyExactQuoteIn","outcome":"6039","transactions":22,"fee_lamports":110000,"priority_lamports":0,"attempts":155733,"share":0.00014126742565801726},{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","instruction":"BuyExactQuoteInV2","outcome":"6039","transactions":23,"fee_lamports":1143782,"priority_lamports":1028782,"attempts":41236,"share":0.0005577650596566107}],"has_attempts":true},{"program":"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P","code":"6041","transactions":0,"fee_lamports":0,"instructions":[],"has_attempts":true}]},"day":{"start":"2026-11-28 04:57:00 UTC","end":"2026-11-29 04:57:00 UTC","status":"partial","errors":[{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","code":"6039","transactions":5742,"fee_lamports":80549201,"instructions":[{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","instruction":"BuyExactQuoteIn","outcome":"6039","transactions":2030,"fee_lamports":10181833,"priority_lamports":26833,"attempts":4266734,"share":0.00047577374169563885},{"program":"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","instruction":"BuyExactQuoteInV2","outcome":"6039","transactions":3712,"fee_lamports":70367368,"priority_lamports":51807368,"attempts":2124440,"share":0.0017472839901338706}],"has_attempts":true},{"program":"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P","code":"6041","transactions":2,"fee_lamports":132866,"instructions":[{"program":"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P","instruction":"BuyExactQuoteInV3","outcome":"6041","transactions":2,"fee_lamports":132866,"priority_lamports":122866,"attempts":2639507,"share":7.577172555329461e-07}],"has_attempts":true}],"missing_seconds":17.5,"gaps":[{"start":"2026-11-28 19:46:42 UTC","end":"2026-11-28 19:47:01 UTC"}]}}},"live_url":"/errors/live.json"}