[{"data":1,"prerenderedAt":2814},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling":3,"docs-kids-\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling":2312,"docs-tracks":2313},{"id":4,"title":5,"body":6,"description":2304,"extension":2305,"meta":2306,"navigation":178,"path":2307,"seo":2308,"source":2309,"stem":2310,"__hash__":2311},"docs\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling.md","Fee and Sequence Handling",{"type":7,"value":8,"toc":2275},"minimark",[9,13,16,21,25,28,30,34,42,47,50,135,138,142,145,265,269,272,385,389,395,617,621,628,773,775,779,786,802,806,851,855,858,1003,1012,1015,1024,1026,1030,1033,1047,1051,1273,1277,1284,1397,1399,1403,1406,1410,1417,1472,1476,1486,1542,1546,1612,1614,1618,1621,1679,1682,1797,1810,1812,1816,1821,1842,1853,2003,2008,2022,2024,2028,2103,2105,2109,2175,2177,2181,2221,2223,2227,2271],[10,11,5],"h1",{"id":12},"fee-and-sequence-handling",[14,15],"hr",{},[17,18,20],"h2",{"id":19},"introduction","Introduction",[22,23,24],"p",{},"Transaction fees and sequence numbers are fundamental mechanisms that ensure the XRP Ledger operates securely and efficiently. Fees prevent spam and compensate the network for processing transactions, while sequence numbers prevent replay attacks and ensure transaction ordering.",[22,26,27],{},"Understanding how these mechanisms work is essential for implementing transactors correctly and for building applications that submit transactions reliably.",[14,29],{},[17,31,33],{"id":32},"transaction-fees","Transaction Fees",[22,35,36,37,41],{},"Every transaction on the XRP Ledger requires a fee, paid in XRP. This fee is ",[38,39,40],"strong",{},"destroyed"," (burned), permanently removing it from circulation.",[43,44,46],"h3",{"id":45},"base-fee","Base Fee",[22,48,49],{},"The base fee is the minimum fee for a standard transaction:",[51,52,57],"pre",{"className":53,"code":54,"language":55,"meta":56,"style":56},"language-cpp shiki shiki-themes github-dark-high-contrast","static XRPAmount\nTransactor::calculateBaseFee(ReadView const& view, STTx const& tx)\n{\n    \u002F\u002F Get the reference fee from the ledger\n    return view.fees().base;\n}\n","cpp","",[58,59,60,73,101,107,114,129],"code",{"__ignoreMap":56},[61,62,65,69],"span",{"class":63,"line":64},"line",1,[61,66,68],{"class":67},"sWyjQ","static",[61,70,72],{"class":71},"sMAXC"," XRPAmount\n",[61,74,76,80,83,87,90,93,96,98],{"class":63,"line":75},2,[61,77,79],{"class":78},"s_sBn","Transactor",[61,81,82],{"class":71},"::",[61,84,86],{"class":85},"sj_SG","calculateBaseFee",[61,88,89],{"class":71},"(ReadView ",[61,91,92],{"class":67},"const&",[61,94,95],{"class":71}," view, STTx ",[61,97,92],{"class":67},[61,99,100],{"class":71}," tx)\n",[61,102,104],{"class":63,"line":103},3,[61,105,106],{"class":71},"{\n",[61,108,110],{"class":63,"line":109},4,[61,111,113],{"class":112},"sQrFR","    \u002F\u002F Get the reference fee from the ledger\n",[61,115,117,120,123,126],{"class":63,"line":116},5,[61,118,119],{"class":67},"    return",[61,121,122],{"class":71}," view.",[61,124,125],{"class":85},"fees",[61,127,128],{"class":71},"().base;\n",[61,130,132],{"class":63,"line":131},6,[61,133,134],{"class":71},"}\n",[22,136,137],{},"The current reference base fee is 10 drops (0.00001 XRP).",[43,139,141],{"id":140},"fee-calculation","Fee Calculation",[22,143,144],{},"Different transaction types may have different fee multipliers:",[51,146,148],{"className":53,"code":147,"language":55,"meta":56,"style":56},"\u002F\u002F Some transactions cost more than the base fee\n\u002F\u002F For example, multi-signed transactions cost more per signature\nXRPAmount baseFee = calculateBaseFee(view, tx);\n\n\u002F\u002F Account for additional signatures\nif (tx.isFieldPresent(sfSigners))\n{\n    auto const& signers = tx.getFieldArray(sfSigners);\n    baseFee = baseFee * (1 + signers.size());\n}\n",[58,149,150,155,160,174,180,185,199,204,227,260],{"__ignoreMap":56},[61,151,152],{"class":63,"line":64},[61,153,154],{"class":112},"\u002F\u002F Some transactions cost more than the base fee\n",[61,156,157],{"class":63,"line":75},[61,158,159],{"class":112},"\u002F\u002F For example, multi-signed transactions cost more per signature\n",[61,161,162,165,168,171],{"class":63,"line":103},[61,163,164],{"class":71},"XRPAmount baseFee ",[61,166,167],{"class":67},"=",[61,169,170],{"class":85}," calculateBaseFee",[61,172,173],{"class":71},"(view, tx);\n",[61,175,176],{"class":63,"line":109},[61,177,179],{"emptyLinePlaceholder":178},true,"\n",[61,181,182],{"class":63,"line":116},[61,183,184],{"class":112},"\u002F\u002F Account for additional signatures\n",[61,186,187,190,193,196],{"class":63,"line":131},[61,188,189],{"class":67},"if",[61,191,192],{"class":71}," (tx.",[61,194,195],{"class":85},"isFieldPresent",[61,197,198],{"class":71},"(sfSigners))\n",[61,200,202],{"class":63,"line":201},7,[61,203,106],{"class":71},[61,205,207,210,213,216,218,221,224],{"class":63,"line":206},8,[61,208,209],{"class":67},"    auto",[61,211,212],{"class":67}," const&",[61,214,215],{"class":71}," signers ",[61,217,167],{"class":67},[61,219,220],{"class":71}," tx.",[61,222,223],{"class":85},"getFieldArray",[61,225,226],{"class":71},"(sfSigners);\n",[61,228,230,233,235,238,241,244,248,251,254,257],{"class":63,"line":229},9,[61,231,232],{"class":71},"    baseFee ",[61,234,167],{"class":67},[61,236,237],{"class":71}," baseFee ",[61,239,240],{"class":67},"*",[61,242,243],{"class":71}," (",[61,245,247],{"class":246},"sCcAr","1",[61,249,250],{"class":67}," +",[61,252,253],{"class":71}," signers.",[61,255,256],{"class":85},"size",[61,258,259],{"class":71},"());\n",[61,261,263],{"class":63,"line":262},10,[61,264,134],{"class":71},[43,266,268],{"id":267},"fee-escalation-transaction-queue","Fee Escalation (Transaction Queue)",[22,270,271],{},"When the network is busy, the required fee increases:",[51,273,275],{"className":53,"code":274,"language":55,"meta":56,"style":56},"static XRPAmount\nTransactor::minimumFee(\n    Application& app,\n    XRPAmount baseFee,\n    Fees const& fees,\n    ApplyFlags flags)\n{\n    \u002F\u002F During high load, fees escalate\n    if (flags & tapNO_ESCALATION)\n        return baseFee;\n\n    return app.getTxQ().minimumFee(baseFee);\n}\n",[58,276,277,283,295,306,311,321,326,330,335,348,356,361,380],{"__ignoreMap":56},[61,278,279,281],{"class":63,"line":64},[61,280,68],{"class":67},[61,282,72],{"class":71},[61,284,285,287,289,292],{"class":63,"line":75},[61,286,79],{"class":78},[61,288,82],{"class":71},[61,290,291],{"class":85},"minimumFee",[61,293,294],{"class":71},"(\n",[61,296,297,300,303],{"class":63,"line":103},[61,298,299],{"class":71},"    Application",[61,301,302],{"class":67},"&",[61,304,305],{"class":71}," app,\n",[61,307,308],{"class":63,"line":109},[61,309,310],{"class":71},"    XRPAmount baseFee,\n",[61,312,313,316,318],{"class":63,"line":116},[61,314,315],{"class":71},"    Fees ",[61,317,92],{"class":67},[61,319,320],{"class":71}," fees,\n",[61,322,323],{"class":63,"line":131},[61,324,325],{"class":71},"    ApplyFlags flags)\n",[61,327,328],{"class":63,"line":201},[61,329,106],{"class":71},[61,331,332],{"class":63,"line":206},[61,333,334],{"class":112},"    \u002F\u002F During high load, fees escalate\n",[61,336,337,340,343,345],{"class":63,"line":229},[61,338,339],{"class":67},"    if",[61,341,342],{"class":71}," (flags ",[61,344,302],{"class":67},[61,346,347],{"class":71}," tapNO_ESCALATION)\n",[61,349,350,353],{"class":63,"line":262},[61,351,352],{"class":67},"        return",[61,354,355],{"class":71}," baseFee;\n",[61,357,359],{"class":63,"line":358},11,[61,360,179],{"emptyLinePlaceholder":178},[61,362,364,366,369,372,375,377],{"class":63,"line":363},12,[61,365,119],{"class":67},[61,367,368],{"class":71}," app.",[61,370,371],{"class":85},"getTxQ",[61,373,374],{"class":71},"().",[61,376,291],{"class":85},[61,378,379],{"class":71},"(baseFee);\n",[61,381,383],{"class":63,"line":382},13,[61,384,134],{"class":71},[43,386,388],{"id":387},"fee-checking-in-preclaim","Fee Checking in Preclaim",[22,390,391,392,394],{},"The base ",[58,393,79],{}," class checks fees during preclaim:",[51,396,398],{"className":53,"code":397,"language":55,"meta":56,"style":56},"static TER\nTransactor::checkFee(PreclaimContext const& ctx, XRPAmount baseFee)\n{\n    auto const feePaid = ctx.tx[sfFee].xrp();\n\n    \u002F\u002F Fee must be non-negative\n    if (feePaid \u003C beast::zero)\n        return temBAD_FEE;\n\n    \u002F\u002F Fee must be sufficient\n    if (feePaid \u003C baseFee)\n        return telINSUF_FEE_P;\n\n    \u002F\u002F Account must have enough to pay fee\n    auto const sle = ctx.view.read(keylet::account(ctx.tx[sfAccount]));\n    auto const balance = (*sle)[sfBalance].xrp();\n\n    if (balance \u003C feePaid)\n        return terINSUF_FEE_B;\n\n    return tesSUCCESS;\n}\n",[58,399,400,407,424,428,449,453,458,474,481,485,490,501,508,512,518,550,573,578,591,599,604,612],{"__ignoreMap":56},[61,401,402,404],{"class":63,"line":64},[61,403,68],{"class":67},[61,405,406],{"class":71}," TER\n",[61,408,409,411,413,416,419,421],{"class":63,"line":75},[61,410,79],{"class":78},[61,412,82],{"class":71},[61,414,415],{"class":85},"checkFee",[61,417,418],{"class":71},"(PreclaimContext ",[61,420,92],{"class":67},[61,422,423],{"class":71}," ctx, XRPAmount baseFee)\n",[61,425,426],{"class":63,"line":103},[61,427,106],{"class":71},[61,429,430,432,435,438,440,443,446],{"class":63,"line":109},[61,431,209],{"class":67},[61,433,434],{"class":67}," const",[61,436,437],{"class":71}," feePaid ",[61,439,167],{"class":67},[61,441,442],{"class":71}," ctx.tx[sfFee].",[61,444,445],{"class":85},"xrp",[61,447,448],{"class":71},"();\n",[61,450,451],{"class":63,"line":116},[61,452,179],{"emptyLinePlaceholder":178},[61,454,455],{"class":63,"line":131},[61,456,457],{"class":112},"    \u002F\u002F Fee must be non-negative\n",[61,459,460,462,465,468,471],{"class":63,"line":201},[61,461,339],{"class":67},[61,463,464],{"class":71}," (feePaid ",[61,466,467],{"class":67},"\u003C",[61,469,470],{"class":78}," beast",[61,472,473],{"class":71},"::zero)\n",[61,475,476,478],{"class":63,"line":206},[61,477,352],{"class":67},[61,479,480],{"class":71}," temBAD_FEE;\n",[61,482,483],{"class":63,"line":229},[61,484,179],{"emptyLinePlaceholder":178},[61,486,487],{"class":63,"line":262},[61,488,489],{"class":112},"    \u002F\u002F Fee must be sufficient\n",[61,491,492,494,496,498],{"class":63,"line":358},[61,493,339],{"class":67},[61,495,464],{"class":71},[61,497,467],{"class":67},[61,499,500],{"class":71}," baseFee)\n",[61,502,503,505],{"class":63,"line":363},[61,504,352],{"class":67},[61,506,507],{"class":71}," telINSUF_FEE_P;\n",[61,509,510],{"class":63,"line":382},[61,511,179],{"emptyLinePlaceholder":178},[61,513,515],{"class":63,"line":514},14,[61,516,517],{"class":112},"    \u002F\u002F Account must have enough to pay fee\n",[61,519,521,523,525,528,530,533,536,539,542,544,547],{"class":63,"line":520},15,[61,522,209],{"class":67},[61,524,434],{"class":67},[61,526,527],{"class":71}," sle ",[61,529,167],{"class":67},[61,531,532],{"class":71}," ctx.view.",[61,534,535],{"class":85},"read",[61,537,538],{"class":71},"(",[61,540,541],{"class":78},"keylet",[61,543,82],{"class":71},[61,545,546],{"class":85},"account",[61,548,549],{"class":71},"(ctx.tx[sfAccount]));\n",[61,551,553,555,557,560,562,564,566,569,571],{"class":63,"line":552},16,[61,554,209],{"class":67},[61,556,434],{"class":67},[61,558,559],{"class":71}," balance ",[61,561,167],{"class":67},[61,563,243],{"class":71},[61,565,240],{"class":67},[61,567,568],{"class":71},"sle)[sfBalance].",[61,570,445],{"class":85},[61,572,448],{"class":71},[61,574,576],{"class":63,"line":575},17,[61,577,179],{"emptyLinePlaceholder":178},[61,579,581,583,586,588],{"class":63,"line":580},18,[61,582,339],{"class":67},[61,584,585],{"class":71}," (balance ",[61,587,467],{"class":67},[61,589,590],{"class":71}," feePaid)\n",[61,592,594,596],{"class":63,"line":593},19,[61,595,352],{"class":67},[61,597,598],{"class":71}," terINSUF_FEE_B;\n",[61,600,602],{"class":63,"line":601},20,[61,603,179],{"emptyLinePlaceholder":178},[61,605,607,609],{"class":63,"line":606},21,[61,608,119],{"class":67},[61,610,611],{"class":71}," tesSUCCESS;\n",[61,613,615],{"class":63,"line":614},22,[61,616,134],{"class":71},[43,618,620],{"id":619},"fee-payment","Fee Payment",[22,622,623,624,627],{},"Fees are paid at the start of ",[58,625,626],{},"doApply",":",[51,629,631],{"className":53,"code":630,"language":55,"meta":56,"style":56},"TER\nTransactor::payFee()\n{\n    auto const feePaid = ctx_.tx[sfFee].xrp();\n\n    \u002F\u002F Get the account SLE\n    auto const sle = view().peek(keylet::account(account_));\n\n    \u002F\u002F Deduct the fee\n    auto const balance = sle->getFieldAmount(sfBalance);\n    sle->setFieldAmount(sfBalance, balance - feePaid);\n\n    \u002F\u002F The fee is destroyed (no destination)\n    return tesSUCCESS;\n}\n",[58,632,633,638,650,654,671,675,680,709,713,718,737,754,758,763,769],{"__ignoreMap":56},[61,634,635],{"class":63,"line":64},[61,636,637],{"class":71},"TER\n",[61,639,640,642,644,647],{"class":63,"line":75},[61,641,79],{"class":78},[61,643,82],{"class":71},[61,645,646],{"class":85},"payFee",[61,648,649],{"class":71},"()\n",[61,651,652],{"class":63,"line":103},[61,653,106],{"class":71},[61,655,656,658,660,662,664,667,669],{"class":63,"line":109},[61,657,209],{"class":67},[61,659,434],{"class":67},[61,661,437],{"class":71},[61,663,167],{"class":67},[61,665,666],{"class":71}," ctx_.tx[sfFee].",[61,668,445],{"class":85},[61,670,448],{"class":71},[61,672,673],{"class":63,"line":116},[61,674,179],{"emptyLinePlaceholder":178},[61,676,677],{"class":63,"line":131},[61,678,679],{"class":112},"    \u002F\u002F Get the account SLE\n",[61,681,682,684,686,688,690,693,695,698,700,702,704,706],{"class":63,"line":201},[61,683,209],{"class":67},[61,685,434],{"class":67},[61,687,527],{"class":71},[61,689,167],{"class":67},[61,691,692],{"class":85}," view",[61,694,374],{"class":71},[61,696,697],{"class":85},"peek",[61,699,538],{"class":71},[61,701,541],{"class":78},[61,703,82],{"class":71},[61,705,546],{"class":85},[61,707,708],{"class":71},"(account_));\n",[61,710,711],{"class":63,"line":206},[61,712,179],{"emptyLinePlaceholder":178},[61,714,715],{"class":63,"line":229},[61,716,717],{"class":112},"    \u002F\u002F Deduct the fee\n",[61,719,720,722,724,726,728,731,734],{"class":63,"line":262},[61,721,209],{"class":67},[61,723,434],{"class":67},[61,725,559],{"class":71},[61,727,167],{"class":67},[61,729,730],{"class":71}," sle->",[61,732,733],{"class":85},"getFieldAmount",[61,735,736],{"class":71},"(sfBalance);\n",[61,738,739,742,745,748,751],{"class":63,"line":358},[61,740,741],{"class":71},"    sle->",[61,743,744],{"class":85},"setFieldAmount",[61,746,747],{"class":71},"(sfBalance, balance ",[61,749,750],{"class":67},"-",[61,752,753],{"class":71}," feePaid);\n",[61,755,756],{"class":63,"line":363},[61,757,179],{"emptyLinePlaceholder":178},[61,759,760],{"class":63,"line":382},[61,761,762],{"class":112},"    \u002F\u002F The fee is destroyed (no destination)\n",[61,764,765,767],{"class":63,"line":514},[61,766,119],{"class":67},[61,768,611],{"class":71},[61,770,771],{"class":63,"line":520},[61,772,134],{"class":71},[14,774],{},[17,776,778],{"id":777},"account-reserves","Account Reserves",[22,780,781,782,785],{},"Accounts must maintain a minimum XRP balance called the ",[38,783,784],{},"reserve",". The reserve has two components:",[787,788,789,796],"ol",{},[790,791,792,795],"li",{},[38,793,794],{},"Base Reserve",": Fixed amount every account must hold (currently 1 XRP)",[790,797,798,801],{},[38,799,800],{},"Owner Reserve",": Additional amount per owned object (currently 0.2 XRP per object)",[43,803,805],{"id":804},"reserve-calculation","Reserve Calculation",[51,807,809],{"className":53,"code":808,"language":55,"meta":56,"style":56},"STAmount accountReserve = view().fees().accountReserve(ownerCount);\n\n\u002F\u002F This is equivalent to:\n\u002F\u002F baseReserve + (ownerCount * ownerReserve)\n\u002F\u002F e.g., 1 XRP + (5 objects * 0.2 XRP) = 2 XRP\n",[58,810,811,832,836,841,846],{"__ignoreMap":56},[61,812,813,816,818,820,822,824,826,829],{"class":63,"line":64},[61,814,815],{"class":71},"STAmount accountReserve ",[61,817,167],{"class":67},[61,819,692],{"class":85},[61,821,374],{"class":71},[61,823,125],{"class":85},[61,825,374],{"class":71},[61,827,828],{"class":85},"accountReserve",[61,830,831],{"class":71},"(ownerCount);\n",[61,833,834],{"class":63,"line":75},[61,835,179],{"emptyLinePlaceholder":178},[61,837,838],{"class":63,"line":103},[61,839,840],{"class":112},"\u002F\u002F This is equivalent to:\n",[61,842,843],{"class":63,"line":109},[61,844,845],{"class":112},"\u002F\u002F baseReserve + (ownerCount * ownerReserve)\n",[61,847,848],{"class":63,"line":116},[61,849,850],{"class":112},"\u002F\u002F e.g., 1 XRP + (5 objects * 0.2 XRP) = 2 XRP\n",[43,852,854],{"id":853},"checking-reserves-before-creating-objects","Checking Reserves Before Creating Objects",[22,856,857],{},"Before creating a new object that will increase the owner count, verify the account can afford it:",[51,859,861],{"className":53,"code":860,"language":55,"meta":56,"style":56},"TER CreateCheck::doApply()\n{\n    auto const sle = view().peek(keylet::account(account_));\n\n    \u002F\u002F Calculate reserve with one additional object\n    STAmount const reserve{\n        view().fees().accountReserve(\n            sle->getFieldU32(sfOwnerCount) + 1)};\n\n    \u002F\u002F Use mPriorBalance (before fee deduction)\n    if (mPriorBalance \u003C reserve)\n        return tecINSUFFICIENT_RESERVE;\n\n    \u002F\u002F Continue with object creation...\n}\n",[58,862,863,877,881,907,911,916,927,942,962,966,971,983,990,994,999],{"__ignoreMap":56},[61,864,865,868,871,873,875],{"class":63,"line":64},[61,866,867],{"class":78},"TER",[61,869,870],{"class":78}," CreateCheck",[61,872,82],{"class":71},[61,874,626],{"class":85},[61,876,649],{"class":71},[61,878,879],{"class":63,"line":75},[61,880,106],{"class":71},[61,882,883,885,887,889,891,893,895,897,899,901,903,905],{"class":63,"line":103},[61,884,209],{"class":67},[61,886,434],{"class":67},[61,888,527],{"class":71},[61,890,167],{"class":67},[61,892,692],{"class":85},[61,894,374],{"class":71},[61,896,697],{"class":85},[61,898,538],{"class":71},[61,900,541],{"class":78},[61,902,82],{"class":71},[61,904,546],{"class":85},[61,906,708],{"class":71},[61,908,909],{"class":63,"line":109},[61,910,179],{"emptyLinePlaceholder":178},[61,912,913],{"class":63,"line":116},[61,914,915],{"class":112},"    \u002F\u002F Calculate reserve with one additional object\n",[61,917,918,921,924],{"class":63,"line":131},[61,919,920],{"class":71},"    STAmount ",[61,922,923],{"class":67},"const",[61,925,926],{"class":71}," reserve{\n",[61,928,929,932,934,936,938,940],{"class":63,"line":201},[61,930,931],{"class":85},"        view",[61,933,374],{"class":71},[61,935,125],{"class":85},[61,937,374],{"class":71},[61,939,828],{"class":85},[61,941,294],{"class":71},[61,943,944,947,950,953,956,959],{"class":63,"line":206},[61,945,946],{"class":71},"            sle->",[61,948,949],{"class":85},"getFieldU32",[61,951,952],{"class":71},"(sfOwnerCount) ",[61,954,955],{"class":67},"+",[61,957,958],{"class":246}," 1",[61,960,961],{"class":71},")};\n",[61,963,964],{"class":63,"line":229},[61,965,179],{"emptyLinePlaceholder":178},[61,967,968],{"class":63,"line":262},[61,969,970],{"class":112},"    \u002F\u002F Use mPriorBalance (before fee deduction)\n",[61,972,973,975,978,980],{"class":63,"line":358},[61,974,339],{"class":67},[61,976,977],{"class":71}," (mPriorBalance ",[61,979,467],{"class":67},[61,981,982],{"class":71}," reserve)\n",[61,984,985,987],{"class":63,"line":363},[61,986,352],{"class":67},[61,988,989],{"class":71}," tecINSUFFICIENT_RESERVE;\n",[61,991,992],{"class":63,"line":382},[61,993,179],{"emptyLinePlaceholder":178},[61,995,996],{"class":63,"line":514},[61,997,998],{"class":112},"    \u002F\u002F Continue with object creation...\n",[61,1000,1001],{"class":63,"line":520},[61,1002,134],{"class":71},[22,1004,1005],{},[38,1006,1007,1008,1011],{},"Why ",[58,1009,1010],{},"mPriorBalance","?",[22,1013,1014],{},"Using the balance before fee deduction allows accounts to use reserve XRP to pay transaction fees. This is important for:",[1016,1017,1018,1021],"ul",{},[790,1019,1020],{},"Deleting objects when an account is low on funds",[790,1022,1023],{},"Sending the last XRP out of an account",[14,1025],{},[17,1027,1029],{"id":1028},"sequence-numbers","Sequence Numbers",[22,1031,1032],{},"Each account has a sequence number that starts at 1 and increments with each transaction. This prevents:",[1016,1034,1035,1041],{},[790,1036,1037,1040],{},[38,1038,1039],{},"Replay attacks",": A transaction can only be applied once",[790,1042,1043,1046],{},[38,1044,1045],{},"Transaction ordering issues",": Transactions are applied in sequence order",[43,1048,1050],{"id":1049},"sequence-number-checking","Sequence Number Checking",[51,1052,1054],{"className":53,"code":1053,"language":55,"meta":56,"style":56},"static NotTEC\nTransactor::checkSeqProxy(ReadView const& view, STTx const& tx, beast::Journal j)\n{\n    auto const account = tx[sfAccount];\n    auto const sle = view.read(keylet::account(account));\n\n    if (!sle)\n        return terNO_ACCOUNT;\n\n    auto const txSeq = tx.getSequence();\n    auto const acctSeq = (*sle)[sfSequence];\n\n    if (txSeq != acctSeq)\n    {\n        if (txSeq \u003C acctSeq)\n            return tefPAST_SEQ;  \u002F\u002F Already used\n        else\n            return terPRE_SEQ;   \u002F\u002F Too high, need earlier tx first\n    }\n\n    return tesSUCCESS;\n}\n",[58,1055,1056,1063,1089,1093,1107,1132,1136,1148,1155,1159,1177,1195,1199,1212,1217,1228,1239,1244,1254,1259,1263,1269],{"__ignoreMap":56},[61,1057,1058,1060],{"class":63,"line":64},[61,1059,68],{"class":67},[61,1061,1062],{"class":71}," NotTEC\n",[61,1064,1065,1067,1069,1072,1074,1076,1078,1080,1083,1086],{"class":63,"line":75},[61,1066,79],{"class":78},[61,1068,82],{"class":71},[61,1070,1071],{"class":85},"checkSeqProxy",[61,1073,89],{"class":71},[61,1075,92],{"class":67},[61,1077,95],{"class":71},[61,1079,92],{"class":67},[61,1081,1082],{"class":71}," tx, ",[61,1084,1085],{"class":78},"beast",[61,1087,1088],{"class":71},"::Journal j)\n",[61,1090,1091],{"class":63,"line":103},[61,1092,106],{"class":71},[61,1094,1095,1097,1099,1102,1104],{"class":63,"line":109},[61,1096,209],{"class":67},[61,1098,434],{"class":67},[61,1100,1101],{"class":71}," account ",[61,1103,167],{"class":67},[61,1105,1106],{"class":71}," tx[sfAccount];\n",[61,1108,1109,1111,1113,1115,1117,1119,1121,1123,1125,1127,1129],{"class":63,"line":116},[61,1110,209],{"class":67},[61,1112,434],{"class":67},[61,1114,527],{"class":71},[61,1116,167],{"class":67},[61,1118,122],{"class":71},[61,1120,535],{"class":85},[61,1122,538],{"class":71},[61,1124,541],{"class":78},[61,1126,82],{"class":71},[61,1128,546],{"class":85},[61,1130,1131],{"class":71},"(account));\n",[61,1133,1134],{"class":63,"line":131},[61,1135,179],{"emptyLinePlaceholder":178},[61,1137,1138,1140,1142,1145],{"class":63,"line":201},[61,1139,339],{"class":67},[61,1141,243],{"class":71},[61,1143,1144],{"class":67},"!",[61,1146,1147],{"class":71},"sle)\n",[61,1149,1150,1152],{"class":63,"line":206},[61,1151,352],{"class":67},[61,1153,1154],{"class":71}," terNO_ACCOUNT;\n",[61,1156,1157],{"class":63,"line":229},[61,1158,179],{"emptyLinePlaceholder":178},[61,1160,1161,1163,1165,1168,1170,1172,1175],{"class":63,"line":262},[61,1162,209],{"class":67},[61,1164,434],{"class":67},[61,1166,1167],{"class":71}," txSeq ",[61,1169,167],{"class":67},[61,1171,220],{"class":71},[61,1173,1174],{"class":85},"getSequence",[61,1176,448],{"class":71},[61,1178,1179,1181,1183,1186,1188,1190,1192],{"class":63,"line":358},[61,1180,209],{"class":67},[61,1182,434],{"class":67},[61,1184,1185],{"class":71}," acctSeq ",[61,1187,167],{"class":67},[61,1189,243],{"class":71},[61,1191,240],{"class":67},[61,1193,1194],{"class":71},"sle)[sfSequence];\n",[61,1196,1197],{"class":63,"line":363},[61,1198,179],{"emptyLinePlaceholder":178},[61,1200,1201,1203,1206,1209],{"class":63,"line":382},[61,1202,339],{"class":67},[61,1204,1205],{"class":71}," (txSeq ",[61,1207,1208],{"class":67},"!=",[61,1210,1211],{"class":71}," acctSeq)\n",[61,1213,1214],{"class":63,"line":514},[61,1215,1216],{"class":71},"    {\n",[61,1218,1219,1222,1224,1226],{"class":63,"line":520},[61,1220,1221],{"class":67},"        if",[61,1223,1205],{"class":71},[61,1225,467],{"class":67},[61,1227,1211],{"class":71},[61,1229,1230,1233,1236],{"class":63,"line":552},[61,1231,1232],{"class":67},"            return",[61,1234,1235],{"class":71}," tefPAST_SEQ;",[61,1237,1238],{"class":112},"  \u002F\u002F Already used\n",[61,1240,1241],{"class":63,"line":575},[61,1242,1243],{"class":67},"        else\n",[61,1245,1246,1248,1251],{"class":63,"line":580},[61,1247,1232],{"class":67},[61,1249,1250],{"class":71}," terPRE_SEQ;",[61,1252,1253],{"class":112},"   \u002F\u002F Too high, need earlier tx first\n",[61,1255,1256],{"class":63,"line":593},[61,1257,1258],{"class":71},"    }\n",[61,1260,1261],{"class":63,"line":601},[61,1262,179],{"emptyLinePlaceholder":178},[61,1264,1265,1267],{"class":63,"line":606},[61,1266,119],{"class":67},[61,1268,611],{"class":71},[61,1270,1271],{"class":63,"line":614},[61,1272,134],{"class":71},[43,1274,1276],{"id":1275},"sequence-number-consumption","Sequence Number Consumption",[22,1278,1279,1280,1283],{},"After a successful transaction (or ",[58,1281,1282],{},"tec"," failure), the sequence number is incremented:",[51,1285,1287],{"className":53,"code":1286,"language":55,"meta":56,"style":56},"TER\nTransactor::consumeSeqProxy(SLE::pointer const& sleAccount)\n{\n    auto const txSeq = ctx_.tx.getSequence();\n    auto const acctSeq = (*sleAccount)[sfSequence];\n\n    \u002F\u002F Increment the account sequence\n    (*sleAccount)[sfSequence] = acctSeq + 1;\n\n    return tesSUCCESS;\n}\n",[58,1288,1289,1293,1315,1319,1336,1353,1357,1362,1383,1387,1393],{"__ignoreMap":56},[61,1290,1291],{"class":63,"line":64},[61,1292,637],{"class":71},[61,1294,1295,1297,1299,1302,1304,1307,1310,1312],{"class":63,"line":75},[61,1296,79],{"class":78},[61,1298,82],{"class":71},[61,1300,1301],{"class":85},"consumeSeqProxy",[61,1303,538],{"class":71},[61,1305,1306],{"class":78},"SLE",[61,1308,1309],{"class":71},"::pointer ",[61,1311,92],{"class":67},[61,1313,1314],{"class":71}," sleAccount)\n",[61,1316,1317],{"class":63,"line":103},[61,1318,106],{"class":71},[61,1320,1321,1323,1325,1327,1329,1332,1334],{"class":63,"line":109},[61,1322,209],{"class":67},[61,1324,434],{"class":67},[61,1326,1167],{"class":71},[61,1328,167],{"class":67},[61,1330,1331],{"class":71}," ctx_.tx.",[61,1333,1174],{"class":85},[61,1335,448],{"class":71},[61,1337,1338,1340,1342,1344,1346,1348,1350],{"class":63,"line":116},[61,1339,209],{"class":67},[61,1341,434],{"class":67},[61,1343,1185],{"class":71},[61,1345,167],{"class":67},[61,1347,243],{"class":71},[61,1349,240],{"class":67},[61,1351,1352],{"class":71},"sleAccount)[sfSequence];\n",[61,1354,1355],{"class":63,"line":131},[61,1356,179],{"emptyLinePlaceholder":178},[61,1358,1359],{"class":63,"line":201},[61,1360,1361],{"class":112},"    \u002F\u002F Increment the account sequence\n",[61,1363,1364,1367,1369,1372,1374,1376,1378,1380],{"class":63,"line":206},[61,1365,1366],{"class":71},"    (",[61,1368,240],{"class":67},[61,1370,1371],{"class":71},"sleAccount)[sfSequence] ",[61,1373,167],{"class":67},[61,1375,1185],{"class":71},[61,1377,955],{"class":67},[61,1379,958],{"class":246},[61,1381,1382],{"class":71},";\n",[61,1384,1385],{"class":63,"line":229},[61,1386,179],{"emptyLinePlaceholder":178},[61,1388,1389,1391],{"class":63,"line":262},[61,1390,119],{"class":67},[61,1392,611],{"class":71},[61,1394,1395],{"class":63,"line":358},[61,1396,134],{"class":71},[14,1398],{},[17,1400,1402],{"id":1401},"tickets","Tickets",[22,1404,1405],{},"Tickets provide an alternative to strict sequence ordering. A ticket is a pre-reserved sequence number that can be used later.",[43,1407,1409],{"id":1408},"creating-tickets","Creating Tickets",[22,1411,1412,1413,1416],{},"The ",[58,1414,1415],{},"TicketCreate"," transaction reserves a range of sequence numbers:",[51,1418,1420],{"className":53,"code":1419,"language":55,"meta":56,"style":56},"\u002F\u002F Reserve 10 tickets\n{\n    \"TransactionType\": \"TicketCreate\",\n    \"Account\": \"rAccount...\",\n    \"TicketCount\": 10\n}\n",[58,1421,1422,1427,1431,1446,1458,1468],{"__ignoreMap":56},[61,1423,1424],{"class":63,"line":64},[61,1425,1426],{"class":112},"\u002F\u002F Reserve 10 tickets\n",[61,1428,1429],{"class":63,"line":75},[61,1430,106],{"class":71},[61,1432,1433,1437,1440,1443],{"class":63,"line":103},[61,1434,1436],{"class":1435},"sTRMh","    \"TransactionType\"",[61,1438,1439],{"class":71},": ",[61,1441,1442],{"class":1435},"\"TicketCreate\"",[61,1444,1445],{"class":71},",\n",[61,1447,1448,1451,1453,1456],{"class":63,"line":109},[61,1449,1450],{"class":1435},"    \"Account\"",[61,1452,1439],{"class":71},[61,1454,1455],{"class":1435},"\"rAccount...\"",[61,1457,1445],{"class":71},[61,1459,1460,1463,1465],{"class":63,"line":116},[61,1461,1462],{"class":1435},"    \"TicketCount\"",[61,1464,1439],{"class":71},[61,1466,1467],{"class":246},"10\n",[61,1469,1470],{"class":63,"line":131},[61,1471,134],{"class":71},[43,1473,1475],{"id":1474},"using-tickets","Using Tickets",[22,1477,1478,1479,1482,1483,627],{},"Instead of ",[58,1480,1481],{},"Sequence",", use ",[58,1484,1485],{},"TicketSequence",[51,1487,1489],{"className":53,"code":1488,"language":55,"meta":56,"style":56},"\u002F\u002F Use ticket #5 instead of the account sequence\n{\n    \"TransactionType\": \"Payment\",\n    \"Account\": \"rAccount...\",\n    \"TicketSequence\": 5,\n    \u002F\u002F No \"Sequence\" field\n}\n",[58,1490,1491,1496,1500,1511,1521,1533,1538],{"__ignoreMap":56},[61,1492,1493],{"class":63,"line":64},[61,1494,1495],{"class":112},"\u002F\u002F Use ticket #5 instead of the account sequence\n",[61,1497,1498],{"class":63,"line":75},[61,1499,106],{"class":71},[61,1501,1502,1504,1506,1509],{"class":63,"line":103},[61,1503,1436],{"class":1435},[61,1505,1439],{"class":71},[61,1507,1508],{"class":1435},"\"Payment\"",[61,1510,1445],{"class":71},[61,1512,1513,1515,1517,1519],{"class":63,"line":109},[61,1514,1450],{"class":1435},[61,1516,1439],{"class":71},[61,1518,1455],{"class":1435},[61,1520,1445],{"class":71},[61,1522,1523,1526,1528,1531],{"class":63,"line":116},[61,1524,1525],{"class":1435},"    \"TicketSequence\"",[61,1527,1439],{"class":71},[61,1529,1530],{"class":246},"5",[61,1532,1445],{"class":71},[61,1534,1535],{"class":63,"line":131},[61,1536,1537],{"class":112},"    \u002F\u002F No \"Sequence\" field\n",[61,1539,1540],{"class":63,"line":201},[61,1541,134],{"class":71},[43,1543,1545],{"id":1544},"ticket-handling-in-transactors","Ticket Handling in Transactors",[51,1547,1549],{"className":53,"code":1548,"language":55,"meta":56,"style":56},"\u002F\u002F Get the sequence value (works for both regular sequence and tickets)\nstd::uint32_t const seq = ctx_.tx.getSeqValue();\n\n\u002F\u002F For creating objects, use this value as the identifier\nKeylet const checkKeylet = keylet::check(account_, seq);\n",[58,1550,1551,1556,1580,1584,1589],{"__ignoreMap":56},[61,1552,1553],{"class":63,"line":64},[61,1554,1555],{"class":112},"\u002F\u002F Get the sequence value (works for both regular sequence and tickets)\n",[61,1557,1558,1561,1563,1566,1568,1571,1573,1575,1578],{"class":63,"line":75},[61,1559,1560],{"class":78},"std",[61,1562,82],{"class":71},[61,1564,1565],{"class":67},"uint32_t",[61,1567,434],{"class":67},[61,1569,1570],{"class":71}," seq ",[61,1572,167],{"class":67},[61,1574,1331],{"class":71},[61,1576,1577],{"class":85},"getSeqValue",[61,1579,448],{"class":71},[61,1581,1582],{"class":63,"line":103},[61,1583,179],{"emptyLinePlaceholder":178},[61,1585,1586],{"class":63,"line":109},[61,1587,1588],{"class":112},"\u002F\u002F For creating objects, use this value as the identifier\n",[61,1590,1591,1594,1596,1599,1601,1604,1606,1609],{"class":63,"line":116},[61,1592,1593],{"class":71},"Keylet ",[61,1595,923],{"class":67},[61,1597,1598],{"class":71}," checkKeylet ",[61,1600,167],{"class":67},[61,1602,1603],{"class":78}," keylet",[61,1605,82],{"class":71},[61,1607,1608],{"class":85},"check",[61,1610,1611],{"class":71},"(account_, seq);\n",[14,1613],{},[17,1615,1617],{"id":1616},"lastledgersequence","LastLedgerSequence",[22,1619,1620],{},"Transactions can specify a maximum ledger sequence for inclusion:",[51,1622,1624],{"className":53,"code":1623,"language":55,"meta":56,"style":56},"{\n    \"TransactionType\": \"Payment\",\n    \"Account\": \"rAccount...\",\n    \"Sequence\": 42,\n    \"LastLedgerSequence\": 75000000  \u002F\u002F Expire after this ledger\n}\n",[58,1625,1626,1630,1640,1650,1662,1675],{"__ignoreMap":56},[61,1627,1628],{"class":63,"line":64},[61,1629,106],{"class":71},[61,1631,1632,1634,1636,1638],{"class":63,"line":75},[61,1633,1436],{"class":1435},[61,1635,1439],{"class":71},[61,1637,1508],{"class":1435},[61,1639,1445],{"class":71},[61,1641,1642,1644,1646,1648],{"class":63,"line":103},[61,1643,1450],{"class":1435},[61,1645,1439],{"class":71},[61,1647,1455],{"class":1435},[61,1649,1445],{"class":71},[61,1651,1652,1655,1657,1660],{"class":63,"line":109},[61,1653,1654],{"class":1435},"    \"Sequence\"",[61,1656,1439],{"class":71},[61,1658,1659],{"class":246},"42",[61,1661,1445],{"class":71},[61,1663,1664,1667,1669,1672],{"class":63,"line":116},[61,1665,1666],{"class":1435},"    \"LastLedgerSequence\"",[61,1668,1439],{"class":71},[61,1670,1671],{"class":246},"75000000",[61,1673,1674],{"class":112},"  \u002F\u002F Expire after this ledger\n",[61,1676,1677],{"class":63,"line":131},[61,1678,134],{"class":71},[22,1680,1681],{},"If the transaction is not included by this ledger, it becomes invalid:",[51,1683,1685],{"className":53,"code":1684,"language":55,"meta":56,"style":56},"static NotTEC\nTransactor::checkPriorTxAndLastLedger(PreclaimContext const& ctx)\n{\n    \u002F\u002F Check LastLedgerSequence if present\n    if (auto const lastLedger = ctx.tx[~sfLastLedgerSequence])\n    {\n        if (ctx.view.seq() > *lastLedger)\n            return tefMAX_LEDGER;  \u002F\u002F Transaction expired\n    }\n\n    return tesSUCCESS;\n}\n",[58,1686,1687,1693,1709,1713,1718,1743,1747,1769,1779,1783,1787,1793],{"__ignoreMap":56},[61,1688,1689,1691],{"class":63,"line":64},[61,1690,68],{"class":67},[61,1692,1062],{"class":71},[61,1694,1695,1697,1699,1702,1704,1706],{"class":63,"line":75},[61,1696,79],{"class":78},[61,1698,82],{"class":71},[61,1700,1701],{"class":85},"checkPriorTxAndLastLedger",[61,1703,418],{"class":71},[61,1705,92],{"class":67},[61,1707,1708],{"class":71}," ctx)\n",[61,1710,1711],{"class":63,"line":103},[61,1712,106],{"class":71},[61,1714,1715],{"class":63,"line":109},[61,1716,1717],{"class":112},"    \u002F\u002F Check LastLedgerSequence if present\n",[61,1719,1720,1722,1724,1727,1729,1732,1734,1737,1740],{"class":63,"line":116},[61,1721,339],{"class":67},[61,1723,243],{"class":71},[61,1725,1726],{"class":67},"auto",[61,1728,434],{"class":67},[61,1730,1731],{"class":71}," lastLedger ",[61,1733,167],{"class":67},[61,1735,1736],{"class":71}," ctx.tx[",[61,1738,1739],{"class":67},"~",[61,1741,1742],{"class":71},"sfLastLedgerSequence])\n",[61,1744,1745],{"class":63,"line":131},[61,1746,1216],{"class":71},[61,1748,1749,1751,1754,1757,1760,1763,1766],{"class":63,"line":201},[61,1750,1221],{"class":67},[61,1752,1753],{"class":71}," (ctx.view.",[61,1755,1756],{"class":85},"seq",[61,1758,1759],{"class":71},"() ",[61,1761,1762],{"class":67},">",[61,1764,1765],{"class":67}," *",[61,1767,1768],{"class":71},"lastLedger)\n",[61,1770,1771,1773,1776],{"class":63,"line":206},[61,1772,1232],{"class":67},[61,1774,1775],{"class":71}," tefMAX_LEDGER;",[61,1777,1778],{"class":112},"  \u002F\u002F Transaction expired\n",[61,1780,1781],{"class":63,"line":229},[61,1782,1258],{"class":71},[61,1784,1785],{"class":63,"line":262},[61,1786,179],{"emptyLinePlaceholder":178},[61,1788,1789,1791],{"class":63,"line":358},[61,1790,119],{"class":67},[61,1792,611],{"class":71},[61,1794,1795],{"class":63,"line":363},[61,1796,134],{"class":71},[22,1798,1799,1802,1803,1805,1806,1809],{},[38,1800,1801],{},"Best Practice:"," Always set ",[58,1804,1617],{}," to prevent transactions from being stuck indefinitely. A common value is ",[58,1807,1808],{},"current_ledger + 4",".",[14,1811],{},[17,1813,1815],{"id":1814},"mpriorbalance-and-msourcebalance","mPriorBalance and mSourceBalance",[22,1817,1412,1818,1820],{},[58,1819,79],{}," base class tracks two balance values:",[51,1822,1824],{"className":53,"code":1823,"language":55,"meta":56,"style":56},"XRPAmount mPriorBalance;   \u002F\u002F Balance before transaction processing\nXRPAmount mSourceBalance;  \u002F\u002F Balance after fee deduction\n",[58,1825,1826,1834],{"__ignoreMap":56},[61,1827,1828,1831],{"class":63,"line":64},[61,1829,1830],{"class":71},"XRPAmount mPriorBalance;",[61,1832,1833],{"class":112},"   \u002F\u002F Balance before transaction processing\n",[61,1835,1836,1839],{"class":63,"line":75},[61,1837,1838],{"class":71},"XRPAmount mSourceBalance;",[61,1840,1841],{"class":112},"  \u002F\u002F Balance after fee deduction\n",[22,1843,1844,1845,1848,1849,1852],{},"These are set during the ",[58,1846,1847],{},"reset()"," method before ",[58,1850,1851],{},"doApply()"," runs:",[51,1854,1856],{"className":53,"code":1855,"language":55,"meta":56,"style":56},"std::pair\u003CTER, XRPAmount>\nTransactor::reset(XRPAmount fee)\n{\n    auto const sle = view().peek(keylet::account(account_));\n\n    \u002F\u002F Store balance before fee\n    mPriorBalance = (*sle)[sfBalance].xrp();\n\n    \u002F\u002F Deduct fee and store\n    mSourceBalance = mPriorBalance - fee;\n\n    \u002F\u002F Update the ledger\n    (*sle)[sfBalance] = mSourceBalance;\n\n    return {tesSUCCESS, fee};\n}\n",[58,1857,1858,1873,1885,1889,1915,1919,1924,1941,1945,1950,1965,1969,1974,1988,1992,1999],{"__ignoreMap":56},[61,1859,1860,1862,1865,1867,1870],{"class":63,"line":64},[61,1861,1560],{"class":78},[61,1863,1864],{"class":71},"::pair",[61,1866,467],{"class":67},[61,1868,1869],{"class":71},"TER, XRPAmount",[61,1871,1872],{"class":67},">\n",[61,1874,1875,1877,1879,1882],{"class":63,"line":75},[61,1876,79],{"class":78},[61,1878,82],{"class":71},[61,1880,1881],{"class":85},"reset",[61,1883,1884],{"class":71},"(XRPAmount fee)\n",[61,1886,1887],{"class":63,"line":103},[61,1888,106],{"class":71},[61,1890,1891,1893,1895,1897,1899,1901,1903,1905,1907,1909,1911,1913],{"class":63,"line":109},[61,1892,209],{"class":67},[61,1894,434],{"class":67},[61,1896,527],{"class":71},[61,1898,167],{"class":67},[61,1900,692],{"class":85},[61,1902,374],{"class":71},[61,1904,697],{"class":85},[61,1906,538],{"class":71},[61,1908,541],{"class":78},[61,1910,82],{"class":71},[61,1912,546],{"class":85},[61,1914,708],{"class":71},[61,1916,1917],{"class":63,"line":116},[61,1918,179],{"emptyLinePlaceholder":178},[61,1920,1921],{"class":63,"line":131},[61,1922,1923],{"class":112},"    \u002F\u002F Store balance before fee\n",[61,1925,1926,1929,1931,1933,1935,1937,1939],{"class":63,"line":201},[61,1927,1928],{"class":71},"    mPriorBalance ",[61,1930,167],{"class":67},[61,1932,243],{"class":71},[61,1934,240],{"class":67},[61,1936,568],{"class":71},[61,1938,445],{"class":85},[61,1940,448],{"class":71},[61,1942,1943],{"class":63,"line":206},[61,1944,179],{"emptyLinePlaceholder":178},[61,1946,1947],{"class":63,"line":229},[61,1948,1949],{"class":112},"    \u002F\u002F Deduct fee and store\n",[61,1951,1952,1955,1957,1960,1962],{"class":63,"line":262},[61,1953,1954],{"class":71},"    mSourceBalance ",[61,1956,167],{"class":67},[61,1958,1959],{"class":71}," mPriorBalance ",[61,1961,750],{"class":67},[61,1963,1964],{"class":71}," fee;\n",[61,1966,1967],{"class":63,"line":358},[61,1968,179],{"emptyLinePlaceholder":178},[61,1970,1971],{"class":63,"line":363},[61,1972,1973],{"class":112},"    \u002F\u002F Update the ledger\n",[61,1975,1976,1978,1980,1983,1985],{"class":63,"line":382},[61,1977,1366],{"class":71},[61,1979,240],{"class":67},[61,1981,1982],{"class":71},"sle)[sfBalance] ",[61,1984,167],{"class":67},[61,1986,1987],{"class":71}," mSourceBalance;\n",[61,1989,1990],{"class":63,"line":514},[61,1991,179],{"emptyLinePlaceholder":178},[61,1993,1994,1996],{"class":63,"line":520},[61,1995,119],{"class":67},[61,1997,1998],{"class":71}," {tesSUCCESS, fee};\n",[61,2000,2001],{"class":63,"line":552},[61,2002,134],{"class":71},[22,2004,2005],{},[38,2006,2007],{},"Usage:",[1016,2009,2010,2016],{},[790,2011,2012,2013,2015],{},"Use ",[58,2014,1010],{}," for reserve checks (allows fee payment from reserves)",[790,2017,2012,2018,2021],{},[58,2019,2020],{},"mSourceBalance"," for balance-dependent operations (actual available funds)",[14,2023],{},[17,2025,2027],{"id":2026},"fee-related-result-codes","Fee-Related Result Codes",[2029,2030,2031,2047],"table",{},[2032,2033,2034],"thead",{},[2035,2036,2037,2041,2044],"tr",{},[2038,2039,2040],"th",{},"Code",[2038,2042,2043],{},"Meaning",[2038,2045,2046],{},"When Returned",[2048,2049,2050,2064,2077,2090],"tbody",{},[2035,2051,2052,2058,2061],{},[2053,2054,2055],"td",{},[58,2056,2057],{},"temBAD_FEE",[2053,2059,2060],{},"Fee is malformed",[2053,2062,2063],{},"Negative fee",[2035,2065,2066,2071,2074],{},[2053,2067,2068],{},[58,2069,2070],{},"telINSUF_FEE_P",[2053,2072,2073],{},"Fee too low",[2053,2075,2076],{},"Below minimum for network load",[2035,2078,2079,2084,2087],{},[2053,2080,2081],{},[58,2082,2083],{},"terINSUF_FEE_B",[2053,2085,2086],{},"Can't afford fee",[2053,2088,2089],{},"Balance \u003C fee",[2035,2091,2092,2097,2100],{},[2053,2093,2094],{},[58,2095,2096],{},"tecINSUFFICIENT_RESERVE",[2053,2098,2099],{},"Reserve not met",[2053,2101,2102],{},"Creating object without enough XRP",[14,2104],{},[17,2106,2108],{"id":2107},"sequence-related-result-codes","Sequence-Related Result Codes",[2029,2110,2111,2121],{},[2032,2112,2113],{},[2035,2114,2115,2117,2119],{},[2038,2116,2040],{},[2038,2118,2043],{},[2038,2120,2046],{},[2048,2122,2123,2136,2149,2162],{},[2035,2124,2125,2130,2133],{},[2053,2126,2127],{},[58,2128,2129],{},"tefPAST_SEQ",[2053,2131,2132],{},"Sequence already used",[2053,2134,2135],{},"Transaction replayed or sequence too low",[2035,2137,2138,2143,2146],{},[2053,2139,2140],{},[58,2141,2142],{},"terPRE_SEQ",[2053,2144,2145],{},"Sequence too high",[2053,2147,2148],{},"Earlier transaction not yet applied",[2035,2150,2151,2156,2159],{},[2053,2152,2153],{},[58,2154,2155],{},"tefMAX_LEDGER",[2053,2157,2158],{},"Transaction expired",[2053,2160,2161],{},"LastLedgerSequence exceeded",[2035,2163,2164,2169,2172],{},[2053,2165,2166],{},[58,2167,2168],{},"tefNO_TICKET",[2053,2170,2171],{},"Ticket not found",[2053,2173,2174],{},"TicketSequence doesn't exist",[14,2176],{},[17,2178,2180],{"id":2179},"best-practices","Best Practices",[787,2182,2183,2189,2197,2203,2209,2215],{},[790,2184,2185,2188],{},[38,2186,2187],{},"Always set LastLedgerSequence",": Prevent stuck transactions",[790,2190,2191,2194,2195],{},[38,2192,2193],{},"Check reserves before creating objects",": Use ",[58,2196,1010],{},[790,2198,2199,2202],{},[38,2200,2201],{},"Handle sequence gaps",": Use tickets for out-of-order transactions",[790,2204,2205,2208],{},[38,2206,2207],{},"Account for fee escalation",": During high load, fees increase",[790,2210,2211,2214],{},[38,2212,2213],{},"Don't hardcode fees",": Query the current fee level",[790,2216,2217,2220],{},[38,2218,2219],{},"Consider ticket usage",": For systems that need flexible ordering",[14,2222],{},[17,2224,2226],{"id":2225},"codebase-references","Codebase References",[2029,2228,2229,2239],{},[2032,2230,2231],{},[2035,2232,2233,2236],{},[2038,2234,2235],{},"File",[2038,2237,2238],{},"Description",[2048,2240,2241,2251,2261],{},[2035,2242,2243,2248],{},[2053,2244,2245],{},[58,2246,2247],{},"src\u002Fxrpld\u002Fapp\u002Ftx\u002Fdetail\u002FTransactor.cpp",[2053,2249,2250],{},"Fee and sequence handling implementation",[2035,2252,2253,2258],{},[2053,2254,2255],{},[58,2256,2257],{},"src\u002Fxrpld\u002Fapp\u002Fmisc\u002FTxQ.cpp",[2053,2259,2260],{},"Transaction queue and fee escalation",[2035,2262,2263,2268],{},[2053,2264,2265],{},[58,2266,2267],{},"include\u002Fxrpl\u002Fprotocol\u002FFees.h",[2053,2269,2270],{},"Fee structure definitions",[2272,2273,2274],"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 .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}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 .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);}html pre.shiki code .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}",{"title":56,"searchDepth":75,"depth":75,"links":2276},[2277,2278,2285,2289,2293,2298,2299,2300,2301,2302,2303],{"id":19,"depth":75,"text":20},{"id":32,"depth":75,"text":33,"children":2279},[2280,2281,2282,2283,2284],{"id":45,"depth":103,"text":46},{"id":140,"depth":103,"text":141},{"id":267,"depth":103,"text":268},{"id":387,"depth":103,"text":388},{"id":619,"depth":103,"text":620},{"id":777,"depth":75,"text":778,"children":2286},[2287,2288],{"id":804,"depth":103,"text":805},{"id":853,"depth":103,"text":854},{"id":1028,"depth":75,"text":1029,"children":2290},[2291,2292],{"id":1049,"depth":103,"text":1050},{"id":1275,"depth":103,"text":1276},{"id":1401,"depth":75,"text":1402,"children":2294},[2295,2296,2297],{"id":1408,"depth":103,"text":1409},{"id":1474,"depth":103,"text":1475},{"id":1544,"depth":103,"text":1545},{"id":1616,"depth":75,"text":1617},{"id":1814,"depth":75,"text":1815},{"id":2026,"depth":75,"text":2027},{"id":2107,"depth":75,"text":2108},{"id":2179,"depth":75,"text":2180},{"id":2225,"depth":75,"text":2226},"Fee and Sequence Handling for Transactors: Understanding the Lifecycle of a Transaction, in the Core Dev Bootcamp: XRPL Commons docs.","md",{},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":5,"description":2304},"xrpl-trainings\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling.md","docs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling","4vV-SwqPV4N1YuHTfbNh98H8d8MZvaFKQF2n5T8nlkM",[],[2314,2354,2368,2388,2411,2803],{"title":2315,"path":2316,"children":2317,"description":2353,"pages":382},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[2318,2321,2324,2327,2330,2333,2336,2339,2342,2345,2348,2350],{"title":2319,"path":2320},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":2322,"path":2323},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":2325,"path":2326},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":2328,"path":2329},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":2331,"path":2332},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":2334,"path":2335},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":2337,"path":2338},"Multi-Purpose Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":2340,"path":2341},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":2343,"path":2344},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":2346,"path":2347},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":1402,"path":2349},"\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":2351,"path":2352},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":2355,"path":2356,"children":2357,"description":2367,"pages":109},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[2358,2361,2364],{"title":2359,"path":2360},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":2362,"path":2363},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":2365,"path":2366},"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":2369,"path":2370,"children":2371,"description":2387,"pages":131},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[2372,2375,2378,2381,2384],{"title":2373,"path":2374},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":2376,"path":2377},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":2379,"path":2380},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":2382,"path":2383},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":2385,"path":2386},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":2389,"path":2390,"children":2391,"description":2410,"pages":201},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[2392,2395,2398,2401,2404,2407],{"title":2393,"path":2394},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":2396,"path":2397},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":2399,"path":2400},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":2402,"path":2403},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":2405,"path":2406},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":2408,"path":2409},"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":2412,"path":2413,"children":2414,"description":2801,"pages":2802},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[2415,2435,2478,2528,2557,2614,2645,2661,2701,2735,2760,2776],{"title":2416,"path":2417,"children":2418},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[2419,2422,2425,2428],{"title":2420,"path":2421},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":2423,"path":2424},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":2426,"path":2427},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":2429,"path":2430,"children":2431},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[2432],{"title":2433,"path":2434},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":2436,"path":2437,"children":2438},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[2439,2442,2445,2448,2451,2454,2457,2460,2463],{"title":2440,"path":2441},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":2443,"path":2444},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":2446,"path":2447},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":2449,"path":2450},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":2452,"path":2453},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":2455,"path":2456},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":2458,"path":2459},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":2461,"path":2462},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":2429,"path":2464,"children":2465},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[2466,2469,2472,2475],{"title":2467,"path":2468},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":2470,"path":2471},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":2473,"path":2474},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":2476,"path":2477},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":2479,"path":2480,"children":2481},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[2482,2485,2488,2491,2494,2497,2500,2503,2506,2509,2512,2515],{"title":2483,"path":2484},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":2486,"path":2487},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":2489,"path":2490},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":2492,"path":2493},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":2495,"path":2496},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":2498,"path":2499},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":2501,"path":2502},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":2504,"path":2505},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":2507,"path":2508},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":2510,"path":2511},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":2513,"path":2514},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":2516,"path":2517,"children":2518},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[2519,2522,2525],{"title":2520,"path":2521},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":2523,"path":2524},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":2526,"path":2527},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":2529,"path":2530,"children":2531},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[2532,2535,2538,2539,2542,2545,2548,2551,2554],{"title":2533,"path":2534},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":2536,"path":2537},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":5,"path":2307},{"title":2540,"path":2541},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":2543,"path":2544},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":2546,"path":2547},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":2549,"path":2550},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":2552,"path":2553},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":2555,"path":2556},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":2558,"path":2559,"children":2560},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[2561,2564,2567,2570,2573,2576,2579,2582,2585,2588,2591,2594,2597,2608],{"title":2562,"path":2563},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":2565,"path":2566},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":2568,"path":2569},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":2571,"path":2572},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":2574,"path":2575},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":2577,"path":2578},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":2580,"path":2581},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":2583,"path":2584},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":2586,"path":2587},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":2589,"path":2590},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":2592,"path":2593},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":2595,"path":2596},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":2516,"path":2598,"children":2599},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[2600,2602,2605],{"title":2520,"path":2601},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":2603,"path":2604},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":2606,"path":2607},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":2429,"path":2609,"children":2610},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[2611],{"title":2612,"path":2613},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":2615,"path":2616,"children":2617},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[2618,2621,2624,2627,2630,2633,2639],{"title":2619,"path":2620},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":2622,"path":2623},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":2625,"path":2626},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":2628,"path":2629},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":2631,"path":2632},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":2516,"path":2634,"children":2635},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[2636],{"title":2637,"path":2638},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":2429,"path":2640,"children":2641},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[2642],{"title":2643,"path":2644},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":2646,"path":2647,"children":2648},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[2649,2652,2655,2658],{"title":2650,"path":2651},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":2653,"path":2654},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":2656,"path":2657},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":2659,"path":2660},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":2662,"path":2663,"children":2664},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[2665,2668,2671,2674,2677,2689],{"title":2666,"path":2667},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":2669,"path":2670},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":2672,"path":2673},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":2675,"path":2676},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":2516,"path":2678,"children":2679},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[2680,2683,2686],{"title":2681,"path":2682},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":2684,"path":2685},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":2687,"path":2688},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":2429,"path":2690,"children":2691},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[2692,2695,2698],{"title":2693,"path":2694},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":2696,"path":2697},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":2699,"path":2700},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":2702,"path":2703,"children":2704},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[2705,2708,2711,2714,2717,2720,2723,2726],{"title":2706,"path":2707},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":2709,"path":2710},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":2712,"path":2713},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":2715,"path":2716},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":2718,"path":2719},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":2721,"path":2722},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":2724,"path":2725},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":2429,"path":2727,"children":2728},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[2729,2732],{"title":2730,"path":2731},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":2733,"path":2734},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":2736,"path":2737,"children":2738},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[2739,2742,2745,2748,2751,2754,2757],{"title":2740,"path":2741},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":2743,"path":2744},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":2746,"path":2747},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":2749,"path":2750},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":2752,"path":2753},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":2755,"path":2756},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":2758,"path":2759},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":2761,"path":2762,"children":2763},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[2764,2767,2770,2773],{"title":2765,"path":2766},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":2768,"path":2769},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":2771,"path":2772},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":2774,"path":2775},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":2777,"path":2778,"children":2779},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[2780,2783,2786,2789,2792,2795,2798],{"title":2781,"path":2782},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":2784,"path":2785},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":2787,"path":2788},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":2790,"path":2791},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":2793,"path":2794},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":2796,"path":2797},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":2799,"path":2800},"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":2804,"path":2805,"children":2806,"description":2813,"pages":103},"Tools","\u002Fdocs\u002Ftools",[2807,2810],{"title":2808,"path":2809},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":2811,"path":2812},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220771788]