[{"data":1,"prerenderedAt":378},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcli\u002Flaser-beam-cli-user-guide":3,"docs-surround-\u002Fdocs\u002Fcli\u002Flaser-beam-cli-user-guide":368},{"id":4,"title":5,"body":6,"description":359,"extension":360,"image":361,"meta":362,"navTitle":361,"navigation":363,"path":364,"seo":365,"stem":366,"__hash__":367},"docs\u002Fdocs\u002Fcli\u002Flaser-beam-cli-user-guide.md","Laser Beam CLI User Guide",{"type":7,"value":8,"toc":338},"minimark",[9,13,17,22,33,40,45,48,51,61,64,70,77,83,91,95,101,106,112,116,122,125,131,135,138,142,149,155,159,162,168,171,174,178,184,188,194,197,201,207,211,216,220,223,229,232,238,242,245,248,252,258,264,267,273,277,280,283,289,301,306,312,316,319,325,332],[10,11,5],"h1",{"id":12},"laser-beam-cli-user-guide",[14,15,16],"p",{},"To perform an instant transaction, both parties must submit Beam coins to an open Laser Channel. The coins will remain locked while the channel is open, only committing the channel's last state to the blockchain when Laser Channel is closed, thus, completing the payment.",[18,19,21],"h2",{"id":20},"create-a-laser-channel","Create a Laser Channel",[14,23,24],{},[25,26,27,28,32],"strong",{},"The",[29,30,31],"code",{},"laser_fee","for both parties is 100 Groth's.",[14,34,35,36,39],{},"Both the Sender and Receiver must agree on the",[29,37,38],{},"locked_amount","to perform an instant payment.",[41,42,44],"h3",{"id":43},"opening-a-laser-channel-between-two-wallets","Opening a Laser Channel between two wallets",[14,46,47],{},"Using Alice and Bob as an example, let's go over setting up a direct channel between two wallets.",[14,49,50],{},"To create a channel, Alice enters the following command:",[52,53,58],"pre",{"className":54,"code":56,"language":57},[55],"language-text","$ .\u002Fbeam-wallet laser --laser_receive --laser_my_locked_amount \u003Camount in beam> --laser_remote_locked_amount \u003Camount in beam> --laser_fee \u003Camount in groth>\n","text",[29,59,56],{"__ignoreMap":60},"",[14,62,63],{},"The output will generate a channel address that Alice can send to Bob, it should be similar to the following:",[52,65,68],{"className":66,"code":67,"language":57},[55],"I 2020-06-04.13:23:35.342 Beam Wallet\nI 2020-06-04.13:23:35.343 Rules signature: 0-5547a592195f4cd4, 10-2fdbbbb74ac57c55, 20-67131c58aa9a6b85\nEnter password: *\nI 2020-06-04.13:23:36.039 wallet sucessfully opened...\nI 2020-06-04.13:23:36.260 New address generated:\n\n333133cddf316e40f3352e9dae6bae568e97052c1b73531b263a695170658cd13e6\n",[29,69,67],{"__ignoreMap":60},[14,71,72,73,76],{},"Using the channel address he received from Alice, Bob will insert the channel address right after ",[29,74,75],{},"laser_address",", entering the following command:",[52,78,81],{"className":79,"code":80,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_open --laser_address \u003Caddress> --laser_my_locked_amount \u003Camount in beam> --laser_remote_locked_amount \u003Camount in beam> --laser_fee \u003Camount in groth>\n",[29,82,80],{"__ignoreMap":60},[14,84,85,86,90],{},"If Bob incorrectly entered the values previous command, then Alice will receive an “",[87,88,89],"em",{},"Incoming connection with incorrect…","” message on her wallet.",[41,92,94],{"id":93},"how-it-will-look-in-alices-wallet","How it will look in Alice's wallet",[52,96,99],{"className":97,"code":98,"language":57},[55],"$ .\u002Fbeam-wallet-masternet.exe laser --laser_receive --laser_my_locked_amount 1 --laser_remote_locked_amount 2 --laser_fee 100 -n 127.0.0.1:1000\n",[29,100,98],{"__ignoreMap":60},[102,103,105],"h4",{"id":104},"open-laser-channel","Open Laser Channel",[52,107,110],{"className":108,"code":109,"language":57},[55],"Laser Channels:\nchannel Id                        |aMy    |aTrg     |state     |fee       |valid till\n7a0f1a491fe95f3fe453a298dd62ba12  |1      |2        |Open      |0.000001  |55966\n",[29,111,109],{"__ignoreMap":60},[41,113,115],{"id":114},"how-it-will-look-in-bobs-wallet","How it will look in Bob's wallet",[52,117,120],{"className":118,"code":119,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_open --laser_address 333133cddf316e40f3352e9dae6bae568e97052c1b73531b263a695170658cd13e6 --laser_my_locked_amount 2 --laser_remote_locked_amount 1 --laser_fee 100 -n 127.0.0.1:1000\n",[29,121,119],{"__ignoreMap":60},[102,123,105],{"id":124},"open-laser-channel-1",[52,126,129],{"className":127,"code":128,"language":57},[55],"Laser Channels:\nchannel Id                        |aMy    |aTrg     |state     |fee       |valid till\n7a0f1a491fe95f3fe453a298dd62ba12  |2      |1        |Open      |0.000001  |55966\n",[29,130,128],{"__ignoreMap":60},[18,132,134],{"id":133},"sending-beam","Sending Beam",[14,136,137],{},"Now that Alice and Bob have established a Laser Channel between their wallets, they can send direct payments",[41,139,141],{"id":140},"establish-laser-channel-connection","Establish Laser Channel connection",[14,143,144,145,148],{},"Using ",[29,146,147],{},"laser_listen",", Bob will confirm that the channel ID is open by entering the following command:",[52,150,153],{"className":151,"code":152,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_listen [channel id 1,channel id 2, ... channel id N]\n",[29,154,152],{"__ignoreMap":60},[41,156,158],{"id":157},"send-a-direct-payment","Send a direct payment",[14,160,161],{},"To send her Beam coins to Bob, Alice will enter the following command:",[52,163,166],{"className":164,"code":165,"language":57},[55],"$ .\u002Fbeam-wallet-masternet laser --laser_send \u003Camount in beam> --laser_channel \u003Cchannel id>\n",[29,167,165],{"__ignoreMap":60},[14,169,170],{},"After sending the payment, Alice will receive a message about changing her channel balance.",[41,172,94],{"id":173},"how-it-will-look-in-alices-wallet-1",[102,175,177],{"id":176},"sending-bob-beam-coins","Sending Bob Beam coins",[52,179,182],{"className":180,"code":181,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_send 0.2 --laser_channel 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000\n",[29,183,181],{"__ignoreMap":60},[102,185,187],{"id":186},"payment-sent-and-changing-channel-balance","Payment Sent and changing channel balance",[52,189,192],{"className":190,"code":191,"language":57},[55],"D 2020-06-04.14:19:35.166 ### Bbs mesage out ###\nD 2020-06-04.14:19:35.166 Channel:7a0f1a491fe95f3fe453a298dd62ba12 state Open. Last Revision: 2. My balance: 220000000 \u002F Total balance: 300000000\nD 2020-06-04.14:19:35.167 Save channel: 7a0f1a491fe95f3fe453a298dd62ba12\nI 2020-06-04.14:19:35.200 Update finished: 7a0f1a491fe95f3fe453a298dd62ba12\nD 2020-06-04.14:19:35.487 OnMined() diff: 0\nD 2020-06-04.14:19:35.488 Receiver::OnComplete\n",[29,193,191],{"__ignoreMap":60},[41,195,115],{"id":196},"how-it-will-look-in-bobs-wallet-1",[102,198,200],{"id":199},"verifying-channel-id","Verifying Channel ID",[52,202,205],{"className":203,"code":204,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_listen 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000»\n",[29,206,204],{"__ignoreMap":60},[102,208,210],{"id":209},"payment-received","Payment received",[52,212,214],{"className":213,"code":191,"language":57},[55],[29,215,191],{"__ignoreMap":60},[18,217,219],{"id":218},"view-open-laser-channels","View open Laser Channels",[14,221,222],{},"To print out a list of all open Laser Channels and channel details, enter the following command:",[52,224,227],{"className":225,"code":226,"language":57},[55],".\u002Fbeam-wallet laser --laser_channels_list \n",[29,228,226],{"__ignoreMap":60},[14,230,231],{},"The ouput should be similar to following:",[52,233,236],{"className":234,"code":235,"language":57},[55],"Laser Channels:\n\nchannel Id                        |aMy       |aT        |state     |fee       |valid till\n7a0f1a491fe95f3fe453a298dd62ba12  |2.2       |0.8       |Open      |0.000001  |57464\nb9236abe78ab5747ca955189df079d2b  |1.0000005 |1.0000005 |Closed    |0.000001  |0\n",[29,237,235],{"__ignoreMap":60},[18,239,241],{"id":240},"closing-and-deleting-a-channel","Closing and deleting a Channel",[14,243,244],{},"While both users must be online when first creating a Laser Channel, users have multiple options for closing an open channel.",[14,246,247],{},"Continuing with our examples of Bob and Alice, we will go over closing a Laser Beam Channel.",[41,249,251],{"id":250},"closing-a-channel-when-both-parties-online","Closing a channel when both parties online",[14,253,254,255,257],{},"Using",[29,256,147],{}," Bob will check the channel ID's current state. Bob enters the following command:",[52,259,262],{"className":260,"code":261,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_listen 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000\n",[29,263,261],{"__ignoreMap":60},[14,265,266],{},"To close the channel, Alice will enter the following command:",[52,268,271],{"className":269,"code":270,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_close 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000\n",[29,272,270],{"__ignoreMap":60},[41,274,276],{"id":275},"closing-a-channel-when-only-one-party-is-online","Closing a channel when only one party is online",[14,278,279],{},"Bob and Alice have agreed to close the open Laser Beam Channel but Bob's internet connection can be unreliable, and is often offline fordays at a time.",[14,281,282],{},"Alice can close the open channel without Bob by entering following command:",[52,284,287],{"className":285,"code":286,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_drop 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000\n",[29,288,286],{"__ignoreMap":60},[14,290,291],{},[25,292,293,296,297,300],{},[29,294,295],{},"laser_close","and",[29,298,299],{},"laser_drop","commands only closes the connection between the two Beam wallets.",[14,302,303],{},[25,304,305],{},"Laser Beam Channels with \"Closed\" status are deletable after 24 hours or 1440 blocks.",[14,307,308,311],{},[25,309,310],{},"Channels with \"Waiting\" or \"OpenFailed\" status are ready for immediate deletion. To delete the Laser Beam Channel, follow the steps below",":",[41,313,315],{"id":314},"delete-closed-laser-beam-channel","Delete closed Laser Beam Channel",[14,317,318],{},"To delete a channel from your wallet database, enter the following command:",[52,320,323],{"className":321,"code":322,"language":57},[55]," .\u002Fbeam-wallet-masternet laser --laser_delete \u003Cchannel id 1,channel id 2, ... channel id N\n",[29,324,322],{"__ignoreMap":60},[14,326,327,328,331],{},"Alice deletes the Laser Beam Channel from her",[29,329,330],{},"wallet.db","file by entering:",[52,333,336],{"className":334,"code":335,"language":57},[55],"$ .\u002Fbeam-wallet laser --laser_delete 7a0f1a491fe95f3fe453a298dd62ba12 -n 127.0.0.1:1000\n",[29,337,335],{"__ignoreMap":60},{"title":60,"searchDepth":339,"depth":339,"links":340},2,[341,347,353,354],{"id":20,"depth":339,"text":21,"children":342},[343,345,346],{"id":43,"depth":344,"text":44},3,{"id":93,"depth":344,"text":94},{"id":114,"depth":344,"text":115},{"id":133,"depth":339,"text":134,"children":348},[349,350,351,352],{"id":140,"depth":344,"text":141},{"id":157,"depth":344,"text":158},{"id":173,"depth":344,"text":94},{"id":196,"depth":344,"text":115},{"id":218,"depth":339,"text":219},{"id":240,"depth":339,"text":241,"children":355},[356,357,358],{"id":250,"depth":344,"text":251},{"id":275,"depth":344,"text":276},{"id":314,"depth":344,"text":315},"Laser Beam is a direct link (or \"channel\") between two Beam wallets that allows instant payments. Laser Beam is not available on Desktop or Mobile wallets.","md",null,{},true,"\u002Fdocs\u002Fcli\u002Flaser-beam-cli-user-guide",{"title":5,"description":359},"docs\u002Fcli\u002Flaser-beam-cli-user-guide","eysBdK-FnvPcawqNgXQRF_b3_SxKm8pQWjaAM1IwbdE",[369,374],{"title":370,"path":371,"stem":372,"description":373,"children":-1},"Confidential Assets","\u002Fdocs\u002Fcli\u002Fconfidential-assets","docs\u002Fcli\u002Fconfidential-assets","Confidential Assets (known as \"Tokens\" in the Beam ecosystem) are new assets created on the Beam blockchain with native support via Beam nodes, wallets, and DAPPS. New tokens created on the Beam blockchain offer the same privacy and security as Beam coins",{"title":375,"path":376,"stem":377,"description":60,"children":-1},"Running Beam Shaders Using CLI Wallet","\u002Fdocs\u002Fcli\u002Frunning-beam-shaders-using-cli-wallet","docs\u002Fcli\u002Frunning-beam-shaders-using-cli-wallet",1783006042770]