[{"data":1,"prerenderedAt":2046},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fxrpl-basics\u002Fescrow":3,"docs-kids-\u002Fdocs\u002Fxrpl-basics\u002Fescrow":1543,"docs-tracks":1544},{"id":4,"title":5,"body":6,"description":1535,"extension":1536,"meta":1537,"navigation":96,"path":1538,"seo":1539,"source":1540,"stem":1541,"__hash__":1542},"docs\u002Fdocs\u002Fxrpl-basics\u002Fescrow.md","Escrow",{"type":7,"value":8,"toc":1526},"minimark",[9,13,17,22,29,282,286,289,551,558,1201,1205,1208,1407,1410,1414,1423,1428,1431,1501,1508,1512,1515,1522],[10,11,5],"h1",{"id":12},"escrow",[14,15,16],"p",{},"An escrow on the XRP Ledger allows users to lock XRP and release it under specific conditions. This feature enables conditional payments, ensuring funds are only transferred when criteria are met. If conditions aren't fulfilled, the escrow can be canceled, returning the funds to the sender.",[18,19,21],"h2",{"id":20},"start-coding","Start coding",[14,23,24,25],{},"Create a new file or edit ",[26,27,28],"code",{},"index.ts",[30,31,36],"pre",{"className":32,"code":33,"language":34,"meta":35,"style":35},"language-typescript shiki shiki-themes github-dark-high-contrast","import dayjs from 'dayjs';\nimport { Client, isoTimeToRippleTime, xrpToDrops } from 'xrpl';\nimport { generateConditionAndFulfillment, escrowTransaction } from '.\u002Fhelpers';\n\nconst main = async () => {\n  console.log('lets get started...');\n  \u002F\u002F Connect the client to the network\n  const client = new Client('wss:\u002F\u002Fs.altnet.rippletest.net:51233');\n  await client.connect();\n\n  const { wallet: walletOne } = await client.fundWallet();\n  const { wallet: walletTwo } = await client.fundWallet();\n  console.log({ walletOne, walletTwo });\n};\n\nmain();\n","typescript","",[26,37,38,61,76,91,98,123,141,148,173,188,193,227,253,263,269,274],{"__ignoreMap":35},[39,40,43,47,51,54,58],"span",{"class":41,"line":42},"line",1,[39,44,46],{"class":45},"sWyjQ","import",[39,48,50],{"class":49},"sMAXC"," dayjs ",[39,52,53],{"class":45},"from",[39,55,57],{"class":56},"sTRMh"," 'dayjs'",[39,59,60],{"class":49},";\n",[39,62,64,66,69,71,74],{"class":41,"line":63},2,[39,65,46],{"class":45},[39,67,68],{"class":49}," { Client, isoTimeToRippleTime, xrpToDrops } ",[39,70,53],{"class":45},[39,72,73],{"class":56}," 'xrpl'",[39,75,60],{"class":49},[39,77,79,81,84,86,89],{"class":41,"line":78},3,[39,80,46],{"class":45},[39,82,83],{"class":49}," { generateConditionAndFulfillment, escrowTransaction } ",[39,85,53],{"class":45},[39,87,88],{"class":56}," '.\u002Fhelpers'",[39,90,60],{"class":49},[39,92,94],{"class":41,"line":93},4,[39,95,97],{"emptyLinePlaceholder":96},true,"\n",[39,99,101,104,108,111,114,117,120],{"class":41,"line":100},5,[39,102,103],{"class":45},"const",[39,105,107],{"class":106},"sj_SG"," main",[39,109,110],{"class":45}," =",[39,112,113],{"class":45}," async",[39,115,116],{"class":49}," () ",[39,118,119],{"class":45},"=>",[39,121,122],{"class":49}," {\n",[39,124,126,129,132,135,138],{"class":41,"line":125},6,[39,127,128],{"class":49},"  console.",[39,130,131],{"class":106},"log",[39,133,134],{"class":49},"(",[39,136,137],{"class":56},"'lets get started...'",[39,139,140],{"class":49},");\n",[39,142,144],{"class":41,"line":143},7,[39,145,147],{"class":146},"sQrFR","  \u002F\u002F Connect the client to the network\n",[39,149,151,154,158,160,163,166,168,171],{"class":41,"line":150},8,[39,152,153],{"class":45},"  const",[39,155,157],{"class":156},"sCcAr"," client",[39,159,110],{"class":45},[39,161,162],{"class":45}," new",[39,164,165],{"class":106}," Client",[39,167,134],{"class":49},[39,169,170],{"class":56},"'wss:\u002F\u002Fs.altnet.rippletest.net:51233'",[39,172,140],{"class":49},[39,174,176,179,182,185],{"class":41,"line":175},9,[39,177,178],{"class":45},"  await",[39,180,181],{"class":49}," client.",[39,183,184],{"class":106},"connect",[39,186,187],{"class":49},"();\n",[39,189,191],{"class":41,"line":190},10,[39,192,97],{"emptyLinePlaceholder":96},[39,194,196,198,201,205,208,211,214,217,220,222,225],{"class":41,"line":195},11,[39,197,153],{"class":45},[39,199,200],{"class":49}," { ",[39,202,204],{"class":203},"s_sBn","wallet",[39,206,207],{"class":49},": ",[39,209,210],{"class":156},"walletOne",[39,212,213],{"class":49}," } ",[39,215,216],{"class":45},"=",[39,218,219],{"class":45}," await",[39,221,181],{"class":49},[39,223,224],{"class":106},"fundWallet",[39,226,187],{"class":49},[39,228,230,232,234,236,238,241,243,245,247,249,251],{"class":41,"line":229},12,[39,231,153],{"class":45},[39,233,200],{"class":49},[39,235,204],{"class":203},[39,237,207],{"class":49},[39,239,240],{"class":156},"walletTwo",[39,242,213],{"class":49},[39,244,216],{"class":45},[39,246,219],{"class":45},[39,248,181],{"class":49},[39,250,224],{"class":106},[39,252,187],{"class":49},[39,254,256,258,260],{"class":41,"line":255},13,[39,257,128],{"class":49},[39,259,131],{"class":106},[39,261,262],{"class":49},"({ walletOne, walletTwo });\n",[39,264,266],{"class":41,"line":265},14,[39,267,268],{"class":49},"};\n",[39,270,272],{"class":41,"line":271},15,[39,273,97],{"emptyLinePlaceholder":96},[39,275,277,280],{"class":41,"line":276},16,[39,278,279],{"class":106},"main",[39,281,187],{"class":49},[18,283,285],{"id":284},"create-the-escrow","Create the escrow",[14,287,288],{},"In order to create an escrow on the XRP Ledger, you need to specify the amount of XRP to lock, the destination account, and the conditions for release, such as a time-based or cryptographic condition. Additionally, you must ensure the transaction is properly signed and submitted to the network, and verify its success to confirm the escrow is active.",[30,290,292],{"className":32,"code":291,"language":34,"meta":35,"style":35},"\u002F\u002F Time after which the destination user can claim the funds\nconst WAITING_TIME = 10; \u002F\u002F seconds\n\n\u002F\u002F Define the time from when the Destination wallet can claim the money in the escrow. So here it would be 10 seconds after the escrow creation.\nconst finishAfter = dayjs().add(WAITING_TIME, 'seconds').toISOString();\n\n\u002F\u002F Generate the condition and fulfillment\nconst { condition, fulfillment } = generateConditionAndFulfillment();\n\nconst escrowCreateResponse = await escrowTransaction({\n  txn: {\n    Account: walletOne.address,\n    TransactionType: 'EscrowCreate',\n    Amount: xrpToDrops('1'),\n    Destination: walletTwo.address,\n    FinishAfter: isoTimeToRippleTime(finishAfter),\n    Condition: condition,\n  },\n  client,\n  wallet: walletOne,\n});\n\n\u002F\u002F We need the sequence to finish an escrow, if it is not there, stop the function\nif (!escrowCreateResponse.result.Sequence) {\n  await client.disconnect();\n  return;\n}\n",[26,293,294,299,317,321,326,363,367,372,395,399,416,421,426,437,453,458,469,475,481,487,493,499,504,510,525,537,545],{"__ignoreMap":35},[39,295,296],{"class":41,"line":42},[39,297,298],{"class":146},"\u002F\u002F Time after which the destination user can claim the funds\n",[39,300,301,303,306,308,311,314],{"class":41,"line":63},[39,302,103],{"class":45},[39,304,305],{"class":156}," WAITING_TIME",[39,307,110],{"class":45},[39,309,310],{"class":156}," 10",[39,312,313],{"class":49},"; ",[39,315,316],{"class":146},"\u002F\u002F seconds\n",[39,318,319],{"class":41,"line":78},[39,320,97],{"emptyLinePlaceholder":96},[39,322,323],{"class":41,"line":93},[39,324,325],{"class":146},"\u002F\u002F Define the time from when the Destination wallet can claim the money in the escrow. So here it would be 10 seconds after the escrow creation.\n",[39,327,328,330,333,335,338,341,344,346,349,352,355,358,361],{"class":41,"line":100},[39,329,103],{"class":45},[39,331,332],{"class":156}," finishAfter",[39,334,110],{"class":45},[39,336,337],{"class":106}," dayjs",[39,339,340],{"class":49},"().",[39,342,343],{"class":106},"add",[39,345,134],{"class":49},[39,347,348],{"class":156},"WAITING_TIME",[39,350,351],{"class":49},", ",[39,353,354],{"class":56},"'seconds'",[39,356,357],{"class":49},").",[39,359,360],{"class":106},"toISOString",[39,362,187],{"class":49},[39,364,365],{"class":41,"line":125},[39,366,97],{"emptyLinePlaceholder":96},[39,368,369],{"class":41,"line":143},[39,370,371],{"class":146},"\u002F\u002F Generate the condition and fulfillment\n",[39,373,374,376,378,381,383,386,388,390,393],{"class":41,"line":150},[39,375,103],{"class":45},[39,377,200],{"class":49},[39,379,380],{"class":156},"condition",[39,382,351],{"class":49},[39,384,385],{"class":156},"fulfillment",[39,387,213],{"class":49},[39,389,216],{"class":45},[39,391,392],{"class":106}," generateConditionAndFulfillment",[39,394,187],{"class":49},[39,396,397],{"class":41,"line":175},[39,398,97],{"emptyLinePlaceholder":96},[39,400,401,403,406,408,410,413],{"class":41,"line":190},[39,402,103],{"class":45},[39,404,405],{"class":156}," escrowCreateResponse",[39,407,110],{"class":45},[39,409,219],{"class":45},[39,411,412],{"class":106}," escrowTransaction",[39,414,415],{"class":49},"({\n",[39,417,418],{"class":41,"line":195},[39,419,420],{"class":49},"  txn: {\n",[39,422,423],{"class":41,"line":229},[39,424,425],{"class":49},"    Account: walletOne.address,\n",[39,427,428,431,434],{"class":41,"line":255},[39,429,430],{"class":49},"    TransactionType: ",[39,432,433],{"class":56},"'EscrowCreate'",[39,435,436],{"class":49},",\n",[39,438,439,442,445,447,450],{"class":41,"line":265},[39,440,441],{"class":49},"    Amount: ",[39,443,444],{"class":106},"xrpToDrops",[39,446,134],{"class":49},[39,448,449],{"class":56},"'1'",[39,451,452],{"class":49},"),\n",[39,454,455],{"class":41,"line":271},[39,456,457],{"class":49},"    Destination: walletTwo.address,\n",[39,459,460,463,466],{"class":41,"line":276},[39,461,462],{"class":49},"    FinishAfter: ",[39,464,465],{"class":106},"isoTimeToRippleTime",[39,467,468],{"class":49},"(finishAfter),\n",[39,470,472],{"class":41,"line":471},17,[39,473,474],{"class":49},"    Condition: condition,\n",[39,476,478],{"class":41,"line":477},18,[39,479,480],{"class":49},"  },\n",[39,482,484],{"class":41,"line":483},19,[39,485,486],{"class":49},"  client,\n",[39,488,490],{"class":41,"line":489},20,[39,491,492],{"class":49},"  wallet: walletOne,\n",[39,494,496],{"class":41,"line":495},21,[39,497,498],{"class":49},"});\n",[39,500,502],{"class":41,"line":501},22,[39,503,97],{"emptyLinePlaceholder":96},[39,505,507],{"class":41,"line":506},23,[39,508,509],{"class":146},"\u002F\u002F We need the sequence to finish an escrow, if it is not there, stop the function\n",[39,511,513,516,519,522],{"class":41,"line":512},24,[39,514,515],{"class":45},"if",[39,517,518],{"class":49}," (",[39,520,521],{"class":45},"!",[39,523,524],{"class":49},"escrowCreateResponse.result.Sequence) {\n",[39,526,528,530,532,535],{"class":41,"line":527},25,[39,529,178],{"class":45},[39,531,181],{"class":49},[39,533,534],{"class":106},"disconnect",[39,536,187],{"class":49},[39,538,540,543],{"class":41,"line":539},26,[39,541,542],{"class":45},"  return",[39,544,60],{"class":49},[39,546,548],{"class":41,"line":547},27,[39,549,550],{"class":49},"}\n",[14,552,553,554,557],{},"Create a ",[26,555,556],{},"helpers.ts"," file and add the generateConditionAndFulfillment and escrowTransaction function:",[30,559,561],{"className":32,"code":560,"language":34,"meta":35,"style":35},"import crypto from 'crypto';\nimport {\n  Client,\n  EscrowCreate,\n  EscrowFinish,\n  EscrowCancel,\n  Wallet,\n  Transaction,\n} from 'xrpl';\n\u002F\u002F @ts-expect-error no types available\nimport cc from 'five-bells-condition';\n\nexport const generateConditionAndFulfillment = () => {\n  console.log(\n    \"******* LET'S GENERATE A CRYPTO CONDITION AND FULFILLMENT *******\"\n  );\n  console.log();\n\n  \u002F\u002F use cryptographically secure random bytes generation\n  const preimage = crypto.randomBytes(32);\n\n  const fulfillment = new cc.PreimageSha256();\n  fulfillment.setPreimage(preimage);\n\n  const condition = fulfillment\n    .getConditionBinary()\n    .toString('hex')\n    .toUpperCase();\n  console.log('Condition:', condition);\n\n  \u002F\u002F Keep secret until you want to finish the escrow\n  const fulfillment_hex = fulfillment\n    .serializeBinary()\n    .toString('hex')\n    .toUpperCase();\n  console.log(\n    'Fulfillment (keep secret until you want to finish the escrow):',\n    fulfillment_hex\n  );\n\n  console.log();\n\n  return {\n    condition,\n    fulfillment: fulfillment_hex,\n  };\n};\n\nexport type TransactionProps\u003CT extends Transaction> = {\n  txn: T;\n  client: Client;\n  wallet: Wallet;\n};\n\nexport const escrowTransaction = async \u003CT extends Transaction>({\n  txn,\n  client,\n  wallet,\n}: TransactionProps\u003CT>) => {\n  const escrowResponse = await client.submitAndWait(txn, {\n    autofill: true,\n    wallet,\n  });\n\n  console.log(JSON.stringify(escrowResponse, null, 2));\n\n  return escrowResponse;\n};\n",[26,562,563,577,583,588,593,598,603,608,613,624,629,643,647,665,674,679,684,692,696,701,723,727,746,757,761,773,784,799,809,824,829,835,847,857,870,879,888,896,902,907,912,921,926,933,939,945,951,956,961,991,1005,1017,1030,1035,1040,1065,1071,1076,1082,1103,1123,1134,1140,1146,1151,1183,1188,1196],{"__ignoreMap":35},[39,564,565,567,570,572,575],{"class":41,"line":42},[39,566,46],{"class":45},[39,568,569],{"class":49}," crypto ",[39,571,53],{"class":45},[39,573,574],{"class":56}," 'crypto'",[39,576,60],{"class":49},[39,578,579,581],{"class":41,"line":63},[39,580,46],{"class":45},[39,582,122],{"class":49},[39,584,585],{"class":41,"line":78},[39,586,587],{"class":49},"  Client,\n",[39,589,590],{"class":41,"line":93},[39,591,592],{"class":49},"  EscrowCreate,\n",[39,594,595],{"class":41,"line":100},[39,596,597],{"class":49},"  EscrowFinish,\n",[39,599,600],{"class":41,"line":125},[39,601,602],{"class":49},"  EscrowCancel,\n",[39,604,605],{"class":41,"line":143},[39,606,607],{"class":49},"  Wallet,\n",[39,609,610],{"class":41,"line":150},[39,611,612],{"class":49},"  Transaction,\n",[39,614,615,618,620,622],{"class":41,"line":175},[39,616,617],{"class":49},"} ",[39,619,53],{"class":45},[39,621,73],{"class":56},[39,623,60],{"class":49},[39,625,626],{"class":41,"line":190},[39,627,628],{"class":146},"\u002F\u002F @ts-expect-error no types available\n",[39,630,631,633,636,638,641],{"class":41,"line":195},[39,632,46],{"class":45},[39,634,635],{"class":49}," cc ",[39,637,53],{"class":45},[39,639,640],{"class":56}," 'five-bells-condition'",[39,642,60],{"class":49},[39,644,645],{"class":41,"line":229},[39,646,97],{"emptyLinePlaceholder":96},[39,648,649,652,655,657,659,661,663],{"class":41,"line":255},[39,650,651],{"class":45},"export",[39,653,654],{"class":45}," const",[39,656,392],{"class":106},[39,658,110],{"class":45},[39,660,116],{"class":49},[39,662,119],{"class":45},[39,664,122],{"class":49},[39,666,667,669,671],{"class":41,"line":265},[39,668,128],{"class":49},[39,670,131],{"class":106},[39,672,673],{"class":49},"(\n",[39,675,676],{"class":41,"line":271},[39,677,678],{"class":56},"    \"******* LET'S GENERATE A CRYPTO CONDITION AND FULFILLMENT *******\"\n",[39,680,681],{"class":41,"line":276},[39,682,683],{"class":49},"  );\n",[39,685,686,688,690],{"class":41,"line":471},[39,687,128],{"class":49},[39,689,131],{"class":106},[39,691,187],{"class":49},[39,693,694],{"class":41,"line":477},[39,695,97],{"emptyLinePlaceholder":96},[39,697,698],{"class":41,"line":483},[39,699,700],{"class":146},"  \u002F\u002F use cryptographically secure random bytes generation\n",[39,702,703,705,708,710,713,716,718,721],{"class":41,"line":489},[39,704,153],{"class":45},[39,706,707],{"class":156}," preimage",[39,709,110],{"class":45},[39,711,712],{"class":49}," crypto.",[39,714,715],{"class":106},"randomBytes",[39,717,134],{"class":49},[39,719,720],{"class":156},"32",[39,722,140],{"class":49},[39,724,725],{"class":41,"line":495},[39,726,97],{"emptyLinePlaceholder":96},[39,728,729,731,734,736,738,741,744],{"class":41,"line":501},[39,730,153],{"class":45},[39,732,733],{"class":156}," fulfillment",[39,735,110],{"class":45},[39,737,162],{"class":45},[39,739,740],{"class":49}," cc.",[39,742,743],{"class":106},"PreimageSha256",[39,745,187],{"class":49},[39,747,748,751,754],{"class":41,"line":506},[39,749,750],{"class":49},"  fulfillment.",[39,752,753],{"class":106},"setPreimage",[39,755,756],{"class":49},"(preimage);\n",[39,758,759],{"class":41,"line":512},[39,760,97],{"emptyLinePlaceholder":96},[39,762,763,765,768,770],{"class":41,"line":527},[39,764,153],{"class":45},[39,766,767],{"class":156}," condition",[39,769,110],{"class":45},[39,771,772],{"class":49}," fulfillment\n",[39,774,775,778,781],{"class":41,"line":539},[39,776,777],{"class":49},"    .",[39,779,780],{"class":106},"getConditionBinary",[39,782,783],{"class":49},"()\n",[39,785,786,788,791,793,796],{"class":41,"line":547},[39,787,777],{"class":49},[39,789,790],{"class":106},"toString",[39,792,134],{"class":49},[39,794,795],{"class":56},"'hex'",[39,797,798],{"class":49},")\n",[39,800,802,804,807],{"class":41,"line":801},28,[39,803,777],{"class":49},[39,805,806],{"class":106},"toUpperCase",[39,808,187],{"class":49},[39,810,812,814,816,818,821],{"class":41,"line":811},29,[39,813,128],{"class":49},[39,815,131],{"class":106},[39,817,134],{"class":49},[39,819,820],{"class":56},"'Condition:'",[39,822,823],{"class":49},", condition);\n",[39,825,827],{"class":41,"line":826},30,[39,828,97],{"emptyLinePlaceholder":96},[39,830,832],{"class":41,"line":831},31,[39,833,834],{"class":146},"  \u002F\u002F Keep secret until you want to finish the escrow\n",[39,836,838,840,843,845],{"class":41,"line":837},32,[39,839,153],{"class":45},[39,841,842],{"class":156}," fulfillment_hex",[39,844,110],{"class":45},[39,846,772],{"class":49},[39,848,850,852,855],{"class":41,"line":849},33,[39,851,777],{"class":49},[39,853,854],{"class":106},"serializeBinary",[39,856,783],{"class":49},[39,858,860,862,864,866,868],{"class":41,"line":859},34,[39,861,777],{"class":49},[39,863,790],{"class":106},[39,865,134],{"class":49},[39,867,795],{"class":56},[39,869,798],{"class":49},[39,871,873,875,877],{"class":41,"line":872},35,[39,874,777],{"class":49},[39,876,806],{"class":106},[39,878,187],{"class":49},[39,880,882,884,886],{"class":41,"line":881},36,[39,883,128],{"class":49},[39,885,131],{"class":106},[39,887,673],{"class":49},[39,889,891,894],{"class":41,"line":890},37,[39,892,893],{"class":56},"    'Fulfillment (keep secret until you want to finish the escrow):'",[39,895,436],{"class":49},[39,897,899],{"class":41,"line":898},38,[39,900,901],{"class":49},"    fulfillment_hex\n",[39,903,905],{"class":41,"line":904},39,[39,906,683],{"class":49},[39,908,910],{"class":41,"line":909},40,[39,911,97],{"emptyLinePlaceholder":96},[39,913,915,917,919],{"class":41,"line":914},41,[39,916,128],{"class":49},[39,918,131],{"class":106},[39,920,187],{"class":49},[39,922,924],{"class":41,"line":923},42,[39,925,97],{"emptyLinePlaceholder":96},[39,927,929,931],{"class":41,"line":928},43,[39,930,542],{"class":45},[39,932,122],{"class":49},[39,934,936],{"class":41,"line":935},44,[39,937,938],{"class":49},"    condition,\n",[39,940,942],{"class":41,"line":941},45,[39,943,944],{"class":49},"    fulfillment: fulfillment_hex,\n",[39,946,948],{"class":41,"line":947},46,[39,949,950],{"class":49},"  };\n",[39,952,954],{"class":41,"line":953},47,[39,955,268],{"class":49},[39,957,959],{"class":41,"line":958},48,[39,960,97],{"emptyLinePlaceholder":96},[39,962,964,966,969,972,975,978,981,984,987,989],{"class":41,"line":963},49,[39,965,651],{"class":45},[39,967,968],{"class":45}," type",[39,970,971],{"class":203}," TransactionProps",[39,973,974],{"class":49},"\u003C",[39,976,977],{"class":203},"T",[39,979,980],{"class":45}," extends",[39,982,983],{"class":203}," Transaction",[39,985,986],{"class":49},"> ",[39,988,216],{"class":45},[39,990,122],{"class":49},[39,992,994,997,1000,1003],{"class":41,"line":993},50,[39,995,996],{"class":203},"  txn",[39,998,999],{"class":45},":",[39,1001,1002],{"class":203}," T",[39,1004,60],{"class":49},[39,1006,1008,1011,1013,1015],{"class":41,"line":1007},51,[39,1009,1010],{"class":203},"  client",[39,1012,999],{"class":45},[39,1014,165],{"class":203},[39,1016,60],{"class":49},[39,1018,1020,1023,1025,1028],{"class":41,"line":1019},52,[39,1021,1022],{"class":203},"  wallet",[39,1024,999],{"class":45},[39,1026,1027],{"class":203}," Wallet",[39,1029,60],{"class":49},[39,1031,1033],{"class":41,"line":1032},53,[39,1034,268],{"class":49},[39,1036,1038],{"class":41,"line":1037},54,[39,1039,97],{"emptyLinePlaceholder":96},[39,1041,1043,1045,1047,1049,1051,1053,1056,1058,1060,1062],{"class":41,"line":1042},55,[39,1044,651],{"class":45},[39,1046,654],{"class":45},[39,1048,412],{"class":106},[39,1050,110],{"class":45},[39,1052,113],{"class":45},[39,1054,1055],{"class":49}," \u003C",[39,1057,977],{"class":203},[39,1059,980],{"class":45},[39,1061,983],{"class":203},[39,1063,1064],{"class":49},">({\n",[39,1066,1068],{"class":41,"line":1067},56,[39,1069,1070],{"class":49},"  txn,\n",[39,1072,1074],{"class":41,"line":1073},57,[39,1075,486],{"class":49},[39,1077,1079],{"class":41,"line":1078},58,[39,1080,1081],{"class":49},"  wallet,\n",[39,1083,1085,1088,1090,1092,1094,1096,1099,1101],{"class":41,"line":1084},59,[39,1086,1087],{"class":49},"}",[39,1089,999],{"class":45},[39,1091,971],{"class":203},[39,1093,974],{"class":49},[39,1095,977],{"class":203},[39,1097,1098],{"class":49},">) ",[39,1100,119],{"class":45},[39,1102,122],{"class":49},[39,1104,1106,1108,1111,1113,1115,1117,1120],{"class":41,"line":1105},60,[39,1107,153],{"class":45},[39,1109,1110],{"class":156}," escrowResponse",[39,1112,110],{"class":45},[39,1114,219],{"class":45},[39,1116,181],{"class":49},[39,1118,1119],{"class":106},"submitAndWait",[39,1121,1122],{"class":49},"(txn, {\n",[39,1124,1126,1129,1132],{"class":41,"line":1125},61,[39,1127,1128],{"class":49},"    autofill: ",[39,1130,1131],{"class":156},"true",[39,1133,436],{"class":49},[39,1135,1137],{"class":41,"line":1136},62,[39,1138,1139],{"class":49},"    wallet,\n",[39,1141,1143],{"class":41,"line":1142},63,[39,1144,1145],{"class":49},"  });\n",[39,1147,1149],{"class":41,"line":1148},64,[39,1150,97],{"emptyLinePlaceholder":96},[39,1152,1154,1156,1158,1160,1163,1166,1169,1172,1175,1177,1180],{"class":41,"line":1153},65,[39,1155,128],{"class":49},[39,1157,131],{"class":106},[39,1159,134],{"class":49},[39,1161,1162],{"class":156},"JSON",[39,1164,1165],{"class":49},".",[39,1167,1168],{"class":106},"stringify",[39,1170,1171],{"class":49},"(escrowResponse, ",[39,1173,1174],{"class":156},"null",[39,1176,351],{"class":49},[39,1178,1179],{"class":156},"2",[39,1181,1182],{"class":49},"));\n",[39,1184,1186],{"class":41,"line":1185},66,[39,1187,97],{"emptyLinePlaceholder":96},[39,1189,1191,1193],{"class":41,"line":1190},67,[39,1192,542],{"class":45},[39,1194,1195],{"class":49}," escrowResponse;\n",[39,1197,1199],{"class":41,"line":1198},68,[39,1200,268],{"class":49},[18,1202,1204],{"id":1203},"finishing-the-escrow","Finishing the escrow",[14,1206,1207],{},"To finish an escrow on the XRP Ledger, you must wait until the specified conditions are met, such as a time-based or cryptographic condition. Then, submit an \"EscrowFinish\" transaction, providing the necessary details like the condition, fulfillment, and sequence number, to release the locked funds to the designated recipient.",[30,1209,1211],{"className":32,"code":1210,"language":34,"meta":35,"style":35},"\u002F\u002F Wait \"WAITING_TIME\" seconds before finishing the escrow\nconsole.log(`Waiting ${WAITING_TIME} seconds`);\nconst sleep = (ms: number) => {\n  return new Promise((resolve) => setTimeout(resolve, ms));\n};\n\nawait sleep(WAITING_TIME * 1000);\n\nawait escrowTransaction({\n  txn: {\n    Account: walletTwo.address,\n    TransactionType: 'EscrowFinish',\n    Condition: condition,\n    Fulfillment: fulfillment,\n    OfferSequence: escrowCreateResponse.result.Sequence,\n    Owner: walletOne.address,\n  },\n  client,\n  wallet: walletTwo, \u002F\u002F Make sure this is the wallet which was in the \"Destination\" field during the escrow creation\n});\nconsole.log('Escrow transaction sent successfully');\nawait client.disconnect();\n",[26,1212,1213,1218,1237,1263,1288,1292,1296,1315,1319,1327,1331,1336,1345,1349,1354,1359,1364,1368,1372,1380,1384,1397],{"__ignoreMap":35},[39,1214,1215],{"class":41,"line":42},[39,1216,1217],{"class":146},"\u002F\u002F Wait \"WAITING_TIME\" seconds before finishing the escrow\n",[39,1219,1220,1223,1225,1227,1230,1232,1235],{"class":41,"line":63},[39,1221,1222],{"class":49},"console.",[39,1224,131],{"class":106},[39,1226,134],{"class":49},[39,1228,1229],{"class":56},"`Waiting ${",[39,1231,348],{"class":156},[39,1233,1234],{"class":56},"} seconds`",[39,1236,140],{"class":49},[39,1238,1239,1241,1244,1246,1248,1251,1253,1256,1259,1261],{"class":41,"line":78},[39,1240,103],{"class":45},[39,1242,1243],{"class":106}," sleep",[39,1245,110],{"class":45},[39,1247,518],{"class":49},[39,1249,1250],{"class":203},"ms",[39,1252,999],{"class":45},[39,1254,1255],{"class":156}," number",[39,1257,1258],{"class":49},") ",[39,1260,119],{"class":45},[39,1262,122],{"class":49},[39,1264,1265,1267,1269,1272,1275,1278,1280,1282,1285],{"class":41,"line":93},[39,1266,542],{"class":45},[39,1268,162],{"class":45},[39,1270,1271],{"class":156}," Promise",[39,1273,1274],{"class":49},"((",[39,1276,1277],{"class":203},"resolve",[39,1279,1258],{"class":49},[39,1281,119],{"class":45},[39,1283,1284],{"class":106}," setTimeout",[39,1286,1287],{"class":49},"(resolve, ms));\n",[39,1289,1290],{"class":41,"line":100},[39,1291,268],{"class":49},[39,1293,1294],{"class":41,"line":125},[39,1295,97],{"emptyLinePlaceholder":96},[39,1297,1298,1301,1303,1305,1307,1310,1313],{"class":41,"line":143},[39,1299,1300],{"class":45},"await",[39,1302,1243],{"class":106},[39,1304,134],{"class":49},[39,1306,348],{"class":156},[39,1308,1309],{"class":45}," *",[39,1311,1312],{"class":156}," 1000",[39,1314,140],{"class":49},[39,1316,1317],{"class":41,"line":150},[39,1318,97],{"emptyLinePlaceholder":96},[39,1320,1321,1323,1325],{"class":41,"line":175},[39,1322,1300],{"class":45},[39,1324,412],{"class":106},[39,1326,415],{"class":49},[39,1328,1329],{"class":41,"line":190},[39,1330,420],{"class":49},[39,1332,1333],{"class":41,"line":195},[39,1334,1335],{"class":49},"    Account: walletTwo.address,\n",[39,1337,1338,1340,1343],{"class":41,"line":229},[39,1339,430],{"class":49},[39,1341,1342],{"class":56},"'EscrowFinish'",[39,1344,436],{"class":49},[39,1346,1347],{"class":41,"line":255},[39,1348,474],{"class":49},[39,1350,1351],{"class":41,"line":265},[39,1352,1353],{"class":49},"    Fulfillment: fulfillment,\n",[39,1355,1356],{"class":41,"line":271},[39,1357,1358],{"class":49},"    OfferSequence: escrowCreateResponse.result.Sequence,\n",[39,1360,1361],{"class":41,"line":276},[39,1362,1363],{"class":49},"    Owner: walletOne.address,\n",[39,1365,1366],{"class":41,"line":471},[39,1367,480],{"class":49},[39,1369,1370],{"class":41,"line":477},[39,1371,486],{"class":49},[39,1373,1374,1377],{"class":41,"line":483},[39,1375,1376],{"class":49},"  wallet: walletTwo, ",[39,1378,1379],{"class":146},"\u002F\u002F Make sure this is the wallet which was in the \"Destination\" field during the escrow creation\n",[39,1381,1382],{"class":41,"line":489},[39,1383,498],{"class":49},[39,1385,1386,1388,1390,1392,1395],{"class":41,"line":495},[39,1387,1222],{"class":49},[39,1389,131],{"class":106},[39,1391,134],{"class":49},[39,1393,1394],{"class":56},"'Escrow transaction sent successfully'",[39,1396,140],{"class":49},[39,1398,1399,1401,1403,1405],{"class":41,"line":501},[39,1400,1300],{"class":45},[39,1402,181],{"class":49},[39,1404,534],{"class":106},[39,1406,187],{"class":49},[14,1408,1409],{},"After this step, the escrow transaction has been successfully submitted to the XRP Ledger, signaling the completion of the escrow process. The funds should now be released to the designated recipient, provided all conditions have been met. The client is then disconnected from the network, indicating the end of the transaction session.",[18,1411,1413],{"id":1412},"extra-credits","Extra credits",[14,1415,1416],{},[1417,1418,1422],"a",{"href":1419,"rel":1420},"https:\u002F\u002Fyoutu.be\u002FUw5eedmXVbE?si=G36gvwRNUr7aLlWV",[1421],"nofollow","The training in video",[1424,1425,1427],"h3",{"id":1426},"canceling-your-escrow","Canceling your escrow",[14,1429,1430],{},"If the conditions aren't met, you can cancel the escrow with the EscrowCancel transaction type:",[30,1432,1434],{"className":32,"code":1433,"language":34,"meta":35,"style":35},"await escrowTransaction({\n  txn: {\n    Account: walletOne.address, \u002F\u002F The account submitting the cancel request\n    TransactionType: 'EscrowCancel',\n    Owner: walletOne.address, \u002F\u002F The account that created the escrow\n    OfferSequence: escrowCreateResponse.result.Sequence, \u002F\u002F The sequence number of the EscrowCreate transaction\n  },\n  client,\n  wallet: walletOne, \u002F\u002F The wallet of the account that created the escrow\n});\n",[26,1435,1436,1444,1448,1456,1465,1473,1481,1485,1489,1497],{"__ignoreMap":35},[39,1437,1438,1440,1442],{"class":41,"line":42},[39,1439,1300],{"class":45},[39,1441,412],{"class":106},[39,1443,415],{"class":49},[39,1445,1446],{"class":41,"line":63},[39,1447,420],{"class":49},[39,1449,1450,1453],{"class":41,"line":78},[39,1451,1452],{"class":49},"    Account: walletOne.address, ",[39,1454,1455],{"class":146},"\u002F\u002F The account submitting the cancel request\n",[39,1457,1458,1460,1463],{"class":41,"line":93},[39,1459,430],{"class":49},[39,1461,1462],{"class":56},"'EscrowCancel'",[39,1464,436],{"class":49},[39,1466,1467,1470],{"class":41,"line":100},[39,1468,1469],{"class":49},"    Owner: walletOne.address, ",[39,1471,1472],{"class":146},"\u002F\u002F The account that created the escrow\n",[39,1474,1475,1478],{"class":41,"line":125},[39,1476,1477],{"class":49},"    OfferSequence: escrowCreateResponse.result.Sequence, ",[39,1479,1480],{"class":146},"\u002F\u002F The sequence number of the EscrowCreate transaction\n",[39,1482,1483],{"class":41,"line":143},[39,1484,480],{"class":49},[39,1486,1487],{"class":41,"line":150},[39,1488,486],{"class":49},[39,1490,1491,1494],{"class":41,"line":175},[39,1492,1493],{"class":49},"  wallet: walletOne, ",[39,1495,1496],{"class":146},"\u002F\u002F The wallet of the account that created the escrow\n",[39,1498,1499],{"class":41,"line":190},[39,1500,498],{"class":49},[14,1502,1503],{},[1417,1504,1507],{"href":1505,"rel":1506},"https:\u002F\u002Fxrpl.org\u002Fdocs\u002Freferences\u002Fprotocol\u002Ftransactions\u002Ftypes\u002Fescrowcancel",[1421],"Learn more about escrow cancel",[1424,1509,1511],{"id":1510},"use-the-escrow-as-a-smart-contract","Use the escrow as a smart contract",[14,1513,1514],{},"You can use XRP Ledger escrows as smart contracts that release XRP after a certain time has passed or after a cryptographic condition has been fulfilled.",[14,1516,1517],{},[1417,1518,1521],{"href":1519,"rel":1520},"https:\u002F\u002Fxrpl.org\u002Fdocs\u002Ftutorials\u002Fhow-tos\u002Fuse-specialized-payment-types\u002Fuse-escrows\u002Fuse-an-escrow-as-a-smart-contract",[1421],"Learn about escrow as a smart contract",[1523,1524,1525],"style",{},"html pre.shiki code .sWyjQ, html code.shiki .sWyjQ{--shiki-default:#FF9492}html pre.shiki code .sMAXC, html code.shiki .sMAXC{--shiki-default:#F0F3F6}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html pre.shiki code .sj_SG, html code.shiki .sj_SG{--shiki-default:#DBB7FF}html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":35,"searchDepth":63,"depth":63,"links":1527},[1528,1529,1530,1531],{"id":20,"depth":63,"text":21},{"id":284,"depth":63,"text":285},{"id":1203,"depth":63,"text":1204},{"id":1412,"depth":63,"text":1413,"children":1532},[1533,1534],{"id":1426,"depth":78,"text":1427},{"id":1510,"depth":78,"text":1511},"In this session, we will create an escrow.","md",{},"\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":5,"description":1535},"xrpl-trainings\u002Fxrpl-basics\u002Fescrow.md","docs\u002Fxrpl-basics\u002Fescrow","7IQkFlDOn1ew7xeG79tBH4YrTe_R4O2YhV9DnwfvDKc",[],[1545,1584,1598,1618,1641,2035],{"title":1546,"path":1547,"children":1548,"description":1583,"pages":255},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[1549,1552,1555,1558,1561,1564,1567,1570,1573,1574,1577,1580],{"title":1550,"path":1551},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":1553,"path":1554},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":1556,"path":1557},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":1559,"path":1560},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":1562,"path":1563},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":1565,"path":1566},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":1568,"path":1569},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":1571,"path":1572},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":5,"path":1538},{"title":1575,"path":1576},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1578,"path":1579},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":1581,"path":1582},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":1585,"path":1586,"children":1587,"description":1597,"pages":93},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[1588,1591,1594],{"title":1589,"path":1590},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":1592,"path":1593},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":1595,"path":1596},"Creating an AMM Pool","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-an-amm-pool","This session will cover token issuance and providing liquidity for your tokens using the automatic market maker built in to the XRPL",{"title":1599,"path":1600,"children":1601,"description":1617,"pages":125},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[1602,1605,1608,1611,1614],{"title":1603,"path":1604},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":1606,"path":1607},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":1609,"path":1610},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":1612,"path":1613},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":1615,"path":1616},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":1619,"path":1620,"children":1621,"description":1640,"pages":143},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[1622,1625,1628,1631,1634,1637],{"title":1623,"path":1624},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":1626,"path":1627},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":1629,"path":1630},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":1632,"path":1633},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":1635,"path":1636},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":1638,"path":1639},"Banking Contract Key Concepts","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-contract-key-concepts","This workshop will walk you through deploying a smart contract and building a full app on the XRPL EVM sidechain",{"title":1642,"path":1643,"children":1644,"description":2033,"pages":2034},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[1645,1665,1708,1758,1789,1846,1877,1893,1933,1967,1992,2008],{"title":1646,"path":1647,"children":1648},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[1649,1652,1655,1658],{"title":1650,"path":1651},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":1653,"path":1654},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":1656,"path":1657},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":1659,"path":1660,"children":1661},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[1662],{"title":1663,"path":1664},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":1666,"path":1667,"children":1668},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[1669,1672,1675,1678,1681,1684,1687,1690,1693],{"title":1670,"path":1671},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":1673,"path":1674},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":1676,"path":1677},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":1679,"path":1680},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":1682,"path":1683},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":1685,"path":1686},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":1688,"path":1689},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":1691,"path":1692},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":1659,"path":1694,"children":1695},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[1696,1699,1702,1705],{"title":1697,"path":1698},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":1700,"path":1701},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":1703,"path":1704},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":1706,"path":1707},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":1709,"path":1710,"children":1711},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[1712,1715,1718,1721,1724,1727,1730,1733,1736,1739,1742,1745],{"title":1713,"path":1714},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":1716,"path":1717},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":1719,"path":1720},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":1722,"path":1723},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":1725,"path":1726},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":1728,"path":1729},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":1731,"path":1732},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":1734,"path":1735},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":1737,"path":1738},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":1740,"path":1741},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":1743,"path":1744},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":1746,"path":1747,"children":1748},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[1749,1752,1755],{"title":1750,"path":1751},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":1753,"path":1754},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":1756,"path":1757},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":1759,"path":1760,"children":1761},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[1762,1765,1768,1771,1774,1777,1780,1783,1786],{"title":1763,"path":1764},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":1766,"path":1767},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":1769,"path":1770},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":1772,"path":1773},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":1775,"path":1776},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":1778,"path":1779},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":1781,"path":1782},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":1784,"path":1785},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":1787,"path":1788},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":1790,"path":1791,"children":1792},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[1793,1796,1799,1802,1805,1808,1811,1814,1817,1820,1823,1826,1829,1840],{"title":1794,"path":1795},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":1797,"path":1798},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":1800,"path":1801},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":1803,"path":1804},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":1806,"path":1807},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":1809,"path":1810},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":1812,"path":1813},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":1815,"path":1816},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":1818,"path":1819},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":1821,"path":1822},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":1824,"path":1825},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":1827,"path":1828},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":1746,"path":1830,"children":1831},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[1832,1834,1837],{"title":1750,"path":1833},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":1835,"path":1836},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":1838,"path":1839},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":1659,"path":1841,"children":1842},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[1843],{"title":1844,"path":1845},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":1847,"path":1848,"children":1849},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[1850,1853,1856,1859,1862,1865,1871],{"title":1851,"path":1852},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":1854,"path":1855},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":1857,"path":1858},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":1860,"path":1861},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":1863,"path":1864},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":1746,"path":1866,"children":1867},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[1868],{"title":1869,"path":1870},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":1659,"path":1872,"children":1873},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[1874],{"title":1875,"path":1876},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":1878,"path":1879,"children":1880},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[1881,1884,1887,1890],{"title":1882,"path":1883},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":1885,"path":1886},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":1888,"path":1889},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":1891,"path":1892},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":1894,"path":1895,"children":1896},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[1897,1900,1903,1906,1909,1921],{"title":1898,"path":1899},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":1901,"path":1902},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":1904,"path":1905},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":1907,"path":1908},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":1746,"path":1910,"children":1911},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[1912,1915,1918],{"title":1913,"path":1914},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":1916,"path":1917},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":1919,"path":1920},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":1659,"path":1922,"children":1923},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[1924,1927,1930],{"title":1925,"path":1926},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":1928,"path":1929},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":1931,"path":1932},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":1934,"path":1935,"children":1936},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[1937,1940,1943,1946,1949,1952,1955,1958],{"title":1938,"path":1939},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":1941,"path":1942},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":1944,"path":1945},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":1947,"path":1948},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":1950,"path":1951},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":1953,"path":1954},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":1956,"path":1957},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":1659,"path":1959,"children":1960},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[1961,1964],{"title":1962,"path":1963},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":1965,"path":1966},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":1968,"path":1969,"children":1970},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[1971,1974,1977,1980,1983,1986,1989],{"title":1972,"path":1973},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":1975,"path":1976},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":1978,"path":1979},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":1981,"path":1982},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":1984,"path":1985},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":1987,"path":1988},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":1990,"path":1991},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":1993,"path":1994,"children":1995},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[1996,1999,2002,2005],{"title":1997,"path":1998},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":2000,"path":2001},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":2003,"path":2004},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":2006,"path":2007},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":2009,"path":2010,"children":2011},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[2012,2015,2018,2021,2024,2027,2030],{"title":2013,"path":2014},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":2016,"path":2017},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":2019,"path":2020},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":2022,"path":2023},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":2025,"path":2026},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":2028,"path":2029},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":2031,"path":2032},"Homework 1: Amendment Status Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fhomework\u002Fhomework1","The XRPL Core Dev Bootcamp – Online Edition is a program designed for intermediate to advanced C++ developers looking to deepen their skills in the core of the XRP Ledger.",126,{"title":2036,"path":2037,"children":2038,"description":2045,"pages":78},"Tools","\u002Fdocs\u002Ftools",[2039,2042],{"title":2040,"path":2041},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":2043,"path":2044},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220768441]