[{"data":1,"prerenderedAt":181},["ShallowReactive",2],{"learn\u002Flearn\u002Fchecking-before-you-sign":3,"learn\u002Flearn\u002Fchecking-before-you-sign-surround":170},{"id":4,"title":5,"body":6,"category":159,"description":160,"extension":161,"level":162,"meta":163,"navigation":164,"order":165,"path":166,"seo":167,"stem":168,"__hash__":169},"learn\u002Flearn\u002Fchecking-before-you-sign.md","Read before you sign",{"type":7,"value":8,"toc":151},"minimark",[9,19,24,27,30,73,77,80,95,98,102,110,113,117,143],[10,11,12,13,18],"p",{},"Every payment in crypto passes through one moment: a screen in your wallet asking you to sign.\nUp to that point, nothing has moved and anything can be cancelled for free. After it, the payment\nis final — on Solana, about 150 milliseconds later, with no undo available to you or to anyone\nelse (",[14,15,17],"a",{"href":16},"\u002Flearn\u002Fwhen-is-a-payment-final","why it is that fast","). Treat that screen as the real\ndecision, not a formality to click through.",[20,21,23],"h2",{"id":22},"what-a-transaction-actually-contains","What a transaction actually contains",[10,25,26],{},"A transaction is a list of instructions plus a fee. For a simple payment the list is short: move\nthis amount of this token from my address to that address. Your wallet turns that into something\nyour key can sign, and the network executes it.",[10,28,29],{},"Read four things every time:",[31,32,33,50,56,62],"ol",{},[34,35,36,40,41,45,46,49],"li",{},[37,38,39],"strong",{},"The amount"," — including decimals. ",[42,43,44],"code",{},"0.5"," and ",[42,47,48],{},"5"," look similar at a glance.",[34,51,52,55],{},[37,53,54],{},"The currency or token"," — a token can be named anything. If an app quotes USDC but the wallet\nshows an unfamiliar token, something is wrong.",[34,57,58,61],{},[37,59,60],{},"The recipient"," — check the beginning and end of the address, and more importantly, that it\nis who you expect. If you are paying a shop, it should be the shop's address from the invoice\nyou just scanned, not one you pasted from a chat.",[34,63,64,67,68,72],{},[37,65,66],{},"The fee"," — small on Solana, but a wildly high fee is a signal that the transaction is not\nwhat you think. What a payment costs beyond that fee is in\n",[14,69,71],{"href":70},"\u002Flearn\u002Fwhat-a-payment-costs","what a payment costs, and why",".",[20,74,76],{"id":75},"sending-is-not-the-same-as-approving","Sending is not the same as approving",[10,78,79],{},"There are two very different things a signature can do:",[81,82,83,89],"ul",{},[34,84,85,88],{},[37,86,87],{},"A transfer"," moves a specific amount, once, to a specific address. This is what a payment is.",[34,90,91,94],{},[37,92,93],{},"An approval"," gives a program permission to move tokens from your account later, sometimes up\nto an amount far larger than the payment in front of you. It is a standing permission, not a\npayment.",[10,96,97],{},"Approvals exist for good reasons — swapping tokens needs one — but they are also the favourite\ntool of drainers, because a single approval can empty a balance long after you closed the tab. If\nyou did not expect an approval, cancel it. If you must grant one, grant a specific small amount\nrather than an unlimited one, and revoke it afterwards.",[20,99,101],{"id":100},"why-the-amount-can-be-trusted-here","Why the amount can be trusted here",[10,103,104,105,109],{},"Payvand's invoices put the amount and the recipient ",[106,107,108],"em",{},"inside the address the payment must reach",".\nThere is no separate \"amount\" field a server could change between the QR code and your approval:\npay a different amount and the payment would go to a different address, which is not the one the\nseller is watching. So the seller cannot raise the price after you scan, and a page cannot quietly\nredirect the funds.",[10,111,112],{},"When you do pay, approve exactly what the invoice shows. If the wallet popup disagrees with the\nscreen you scanned, stop and ask — one of the two is not what you think it is.",[20,114,116],{"id":115},"habits-worth-keeping","Habits worth keeping",[81,118,119,125,131,137],{},[34,120,121,124],{},[37,122,123],{},"Sign one thing at a time."," A queue of approvals is designed to make you stop reading.",[34,126,127,130],{},[37,128,129],{},"Do not sign on a device you do not control."," Shared computers and remote-support sessions are\nhow \"helpful\" strangers empty wallets.",[34,132,133,136],{},[37,134,135],{},"Prefer a hardware wallet for large amounts."," It shows the amount and recipient on its own\nscreen, so a compromised computer cannot swap them behind your back.",[34,138,139,142],{},[37,140,141],{},"If in doubt, reject."," Rejecting costs nothing and the payment can be retried in a minute.",[10,144,145,146,150],{},"If something was signed that should not have been, ",[14,147,149],{"href":148},"\u002Flearn\u002Fif-your-phone-is-lost","the lost-phone checklist","\nis the same set of steps to run: move what is left, stop the old key, and report it.",{"title":152,"searchDepth":153,"depth":153,"links":154},"",2,[155,156,157,158],{"id":22,"depth":153,"text":23},{"id":75,"depth":153,"text":76},{"id":100,"depth":153,"text":101},{"id":115,"depth":153,"text":116},"safety","The approval screen is the last moment anyone can stop a payment. What to check, and the difference between sending money and letting a program spend it later.","md",null,{},true,3,"\u002Flearn\u002Fchecking-before-you-sign",{"title":5,"description":160},"learn\u002Fchecking-before-you-sign","1Jj1EFy1IgOEQpAKiPc6zRyzmaUl-kzve6v-UsHdmzc",[171,176],{"title":172,"path":173,"stem":174,"description":175,"children":-1},"Alpenglow, from the inside","\u002Flearn\u002Falpenglow-internals","learn\u002Falpenglow-internals","Votor's certificates, the 80% fast path, the 60% fallback, and what \"final in 150 ms\" costs in assumptions. The consensus change that replaced TowerBFT.",{"title":177,"path":178,"stem":179,"description":180,"children":-1},"What is actually inside a Solana transaction","\u002Flearn\u002Fhow-a-transaction-works","learn\u002Fhow-a-transaction-works","Signatures, a message, account flags, a blockhash with an expiry, a fee in micro-lamports, and a 1,232-byte box. The anatomy, with the real constants.",1795469626851]