[{"data":1,"prerenderedAt":3893},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fxrpl-basics\u002Fmptoken":3,"docs-kids-\u002Fdocs\u002Fxrpl-basics\u002Fmptoken":3391,"docs-tracks":3392},{"id":4,"title":5,"body":6,"description":3383,"extension":3384,"meta":3385,"navigation":222,"path":3386,"seo":3387,"source":3388,"stem":3389,"__hash__":3390},"docs\u002Fdocs\u002Fxrpl-basics\u002Fmptoken.md","Multi-Purpose Tokens",{"type":7,"value":8,"toc":3355},"minimark",[9,14,18,23,52,56,59,148,153,173,177,185,818,822,833,853,858,876,881,1115,1118,1138,1142,1156,1160,1166,1177,1181,1192,1196,1235,1239,1245,1259,1262,1272,1275,1334,1338,1344,1348,1374,1377,1390,1393,1445,1449,1452,1456,1620,1624,1627,1641,1649,3332,3336,3351],[10,11,13],"h1",{"id":12},"multi-purpose-tokens-mpt-on-the-xrp-ledger","Multi-Purpose Tokens (MPT) on the XRP Ledger",[15,16,17],"p",{},"Multi-Purpose Tokens (MPT) are a recent amendment to the XRP Ledger, enhancing the token system by allowing tokens to serve multiple functions beyond just being a medium of exchange. This amendment introduces new capabilities for token issuers and holders.",[19,20,22],"h2",{"id":21},"use-cases","Use Cases",[24,25,26,34,40,46],"ul",{},[27,28,29,33],"li",{},[30,31,32],"strong",{},"Stablecoins",": Create stablecoins with features like freezing and clawback.",[27,35,36,39],{},[30,37,38],{},"Utility Tokens",": Design tokens with specific utility functions.",[27,41,42,45],{},[30,43,44],{},"Security Tokens",": Implement security tokens with transfer restrictions.",[27,47,48,51],{},[30,49,50],{},"Community Credit",": Track debts and credits between known parties.",[19,53,55],{"id":54},"mptoken-flags","MPToken Flags",[15,57,58],{},"Each flag is a power of 2, allowing them to be combined using bitwise operations. The total value is the sum of all enabled flags.",[60,61,62,78],"table",{},[63,64,65],"thead",{},[66,67,68,72,75],"tr",{},[69,70,71],"th",{},"Flag",[69,73,74],{},"Value",[69,76,77],{},"Description",[79,80,81,93,104,115,126,137],"tbody",{},[66,82,83,87,90],{},[84,85,86],"td",{},"canLock",[84,88,89],{},"2",[84,91,92],{},"Lock tokens globally or per account",[66,94,95,98,101],{},[84,96,97],{},"requireAuth",[84,99,100],{},"4",[84,102,103],{},"Require issuer approval for new holders",[66,105,106,109,112],{},[84,107,108],{},"canEscrow",[84,110,111],{},"8",[84,113,114],{},"Enable time-locked escrow (Not implemented)",[66,116,117,120,123],{},[84,118,119],{},"canTrade",[84,121,122],{},"16",[84,124,125],{},"Enable DEX trading (Not implemented)",[66,127,128,131,134],{},[84,129,130],{},"canTransfer",[84,132,133],{},"32",[84,135,136],{},"Enable basic token transfers",[66,138,139,142,145],{},[84,140,141],{},"canClawback",[84,143,144],{},"64",[84,146,147],{},"Allow issuer to recover tokens",[149,150,152],"h3",{"id":151},"common-flag-combinations","Common Flag Combinations:",[24,154,155,161,167],{},[27,156,157,160],{},[30,158,159],{},"Basic",": canTransfer (32)",[27,162,163,166],{},[30,164,165],{},"Secure",": canLock + canClawback + canTransfer (98)",[27,168,169,172],{},[30,170,171],{},"Regulated",": canLock + canClawback + canTransfer + requireAuth (102)",[19,174,176],{"id":175},"getting-started-creating-the-main-structure-of-your-script","Getting Started: Creating the Main Structure of Your Script",[15,178,179,180,184],{},"Create a new file or edit ",[181,182,183],"code",{},"index.ts",":",[186,187,192],"pre",{"className":188,"code":189,"language":190,"meta":191,"style":191},"language-typescript shiki shiki-themes github-dark-high-contrast","import { Client } from 'xrpl';\n\nconst client = new Client(\"wss:\u002F\u002Fs.devnet.rippletest.net:51233\");\n\nconst main = async () => {\n  try {\n    console.log(\"Let's create a Multi-Purpose Token...\");\n    await client.connect();\n\n    \u002F\u002F Create issuer and holder wallets\n    const { wallet: issuerWallet } = await client.fundWallet();\n    const { wallet: holderWallet } = await client.fundWallet();\n\n    console.log('Issuer Wallet:', issuerWallet.address);\n    console.log('Holder Wallet:', holderWallet.address);\n\n    \u002F\u002F Define token metadata\n    const tokenMetadata = {\n      name: \"MyMPToken\",\n      symbol: \"MPT\",\n      description: \"A sample Multi-Purpose Token\",\n    };\n\n    \u002F\u002F Convert metadata to hex string\n    const metadataHex = Buffer.from(JSON.stringify(tokenMetadata)).toString('hex');\n\n    \u002F\u002F Set flags for a regulated token\n    const totalFlagsValue = 102;  \u002F\u002F canLock + canClawback + canTransfer + requireAuth\n\n    \u002F\u002F Create MPToken issuance transaction\n    const transactionBlob = {\n      TransactionType: \"MPTokenIssuanceCreate\",\n      Account: issuerWallet.address,\n      Flags: totalFlagsValue,\n      MPTokenMetadata: metadataHex\n      \u002F\u002F MaximumAmount: \"1000000000000000000\", (Optional) The maximum asset amount of this token that can ever be issued\n      \u002F\u002F TransferFee: 5000, (Optional) between 0 and 50000 for 50.000% fees charged by the issuer for secondary sales of Token\n      \u002F\u002F AssetScale: 2, (Optional) 10^(-scale) of a corresponding fractional unit. For example, a US Dollar Stablecoin will likely have an asset scale of 2, representing 2 decimal places.\n    };\n\n    \u002F\u002F Submit token issuance\n    const mptokenCreationResult = await client.submitAndWait(transactionBlob, {\n      autofill: true,\n      wallet: issuerWallet\n    });\n\n    console.log('MPToken Creation Result:', mptokenCreationResult.result.meta?.TransactionResult);\n    console.log('MPToken Issuance ID:', mptokenCreationResult.result.meta?.mpt_issuance_id);\n\n    await client.disconnect();\n    console.log(\"All done!\");\n  } catch (error) {\n    console.error(\"Error creating MPToken:\", error);\n  }\n};\n\nmain();\n","typescript","",[181,193,194,217,224,253,258,280,288,304,319,324,331,366,392,397,412,427,432,438,450,462,473,484,490,495,501,540,545,551,570,575,581,593,604,610,616,622,628,634,640,645,650,656,676,687,693,699,704,719,734,739,751,765,777,793,799,805,810],{"__ignoreMap":191},[195,196,199,203,207,210,214],"span",{"class":197,"line":198},"line",1,[195,200,202],{"class":201},"sWyjQ","import",[195,204,206],{"class":205},"sMAXC"," { Client } ",[195,208,209],{"class":201},"from",[195,211,213],{"class":212},"sTRMh"," 'xrpl'",[195,215,216],{"class":205},";\n",[195,218,220],{"class":197,"line":219},2,[195,221,223],{"emptyLinePlaceholder":222},true,"\n",[195,225,227,230,234,237,240,244,247,250],{"class":197,"line":226},3,[195,228,229],{"class":201},"const",[195,231,233],{"class":232},"sCcAr"," client",[195,235,236],{"class":201}," =",[195,238,239],{"class":201}," new",[195,241,243],{"class":242},"sj_SG"," Client",[195,245,246],{"class":205},"(",[195,248,249],{"class":212},"\"wss:\u002F\u002Fs.devnet.rippletest.net:51233\"",[195,251,252],{"class":205},");\n",[195,254,256],{"class":197,"line":255},4,[195,257,223],{"emptyLinePlaceholder":222},[195,259,261,263,266,268,271,274,277],{"class":197,"line":260},5,[195,262,229],{"class":201},[195,264,265],{"class":242}," main",[195,267,236],{"class":201},[195,269,270],{"class":201}," async",[195,272,273],{"class":205}," () ",[195,275,276],{"class":201},"=>",[195,278,279],{"class":205}," {\n",[195,281,283,286],{"class":197,"line":282},6,[195,284,285],{"class":201},"  try",[195,287,279],{"class":205},[195,289,291,294,297,299,302],{"class":197,"line":290},7,[195,292,293],{"class":205},"    console.",[195,295,296],{"class":242},"log",[195,298,246],{"class":205},[195,300,301],{"class":212},"\"Let's create a Multi-Purpose Token...\"",[195,303,252],{"class":205},[195,305,307,310,313,316],{"class":197,"line":306},8,[195,308,309],{"class":201},"    await",[195,311,312],{"class":205}," client.",[195,314,315],{"class":242},"connect",[195,317,318],{"class":205},"();\n",[195,320,322],{"class":197,"line":321},9,[195,323,223],{"emptyLinePlaceholder":222},[195,325,327],{"class":197,"line":326},10,[195,328,330],{"class":329},"sQrFR","    \u002F\u002F Create issuer and holder wallets\n",[195,332,334,337,340,344,347,350,353,356,359,361,364],{"class":197,"line":333},11,[195,335,336],{"class":201},"    const",[195,338,339],{"class":205}," { ",[195,341,343],{"class":342},"s_sBn","wallet",[195,345,346],{"class":205},": ",[195,348,349],{"class":232},"issuerWallet",[195,351,352],{"class":205}," } ",[195,354,355],{"class":201},"=",[195,357,358],{"class":201}," await",[195,360,312],{"class":205},[195,362,363],{"class":242},"fundWallet",[195,365,318],{"class":205},[195,367,369,371,373,375,377,380,382,384,386,388,390],{"class":197,"line":368},12,[195,370,336],{"class":201},[195,372,339],{"class":205},[195,374,343],{"class":342},[195,376,346],{"class":205},[195,378,379],{"class":232},"holderWallet",[195,381,352],{"class":205},[195,383,355],{"class":201},[195,385,358],{"class":201},[195,387,312],{"class":205},[195,389,363],{"class":242},[195,391,318],{"class":205},[195,393,395],{"class":197,"line":394},13,[195,396,223],{"emptyLinePlaceholder":222},[195,398,400,402,404,406,409],{"class":197,"line":399},14,[195,401,293],{"class":205},[195,403,296],{"class":242},[195,405,246],{"class":205},[195,407,408],{"class":212},"'Issuer Wallet:'",[195,410,411],{"class":205},", issuerWallet.address);\n",[195,413,415,417,419,421,424],{"class":197,"line":414},15,[195,416,293],{"class":205},[195,418,296],{"class":242},[195,420,246],{"class":205},[195,422,423],{"class":212},"'Holder Wallet:'",[195,425,426],{"class":205},", holderWallet.address);\n",[195,428,430],{"class":197,"line":429},16,[195,431,223],{"emptyLinePlaceholder":222},[195,433,435],{"class":197,"line":434},17,[195,436,437],{"class":329},"    \u002F\u002F Define token metadata\n",[195,439,441,443,446,448],{"class":197,"line":440},18,[195,442,336],{"class":201},[195,444,445],{"class":232}," tokenMetadata",[195,447,236],{"class":201},[195,449,279],{"class":205},[195,451,453,456,459],{"class":197,"line":452},19,[195,454,455],{"class":205},"      name: ",[195,457,458],{"class":212},"\"MyMPToken\"",[195,460,461],{"class":205},",\n",[195,463,465,468,471],{"class":197,"line":464},20,[195,466,467],{"class":205},"      symbol: ",[195,469,470],{"class":212},"\"MPT\"",[195,472,461],{"class":205},[195,474,476,479,482],{"class":197,"line":475},21,[195,477,478],{"class":205},"      description: ",[195,480,481],{"class":212},"\"A sample Multi-Purpose Token\"",[195,483,461],{"class":205},[195,485,487],{"class":197,"line":486},22,[195,488,489],{"class":205},"    };\n",[195,491,493],{"class":197,"line":492},23,[195,494,223],{"emptyLinePlaceholder":222},[195,496,498],{"class":197,"line":497},24,[195,499,500],{"class":329},"    \u002F\u002F Convert metadata to hex string\n",[195,502,504,506,509,511,514,516,518,521,524,527,530,533,535,538],{"class":197,"line":503},25,[195,505,336],{"class":201},[195,507,508],{"class":232}," metadataHex",[195,510,236],{"class":201},[195,512,513],{"class":205}," Buffer.",[195,515,209],{"class":242},[195,517,246],{"class":205},[195,519,520],{"class":232},"JSON",[195,522,523],{"class":205},".",[195,525,526],{"class":242},"stringify",[195,528,529],{"class":205},"(tokenMetadata)).",[195,531,532],{"class":242},"toString",[195,534,246],{"class":205},[195,536,537],{"class":212},"'hex'",[195,539,252],{"class":205},[195,541,543],{"class":197,"line":542},26,[195,544,223],{"emptyLinePlaceholder":222},[195,546,548],{"class":197,"line":547},27,[195,549,550],{"class":329},"    \u002F\u002F Set flags for a regulated token\n",[195,552,554,556,559,561,564,567],{"class":197,"line":553},28,[195,555,336],{"class":201},[195,557,558],{"class":232}," totalFlagsValue",[195,560,236],{"class":201},[195,562,563],{"class":232}," 102",[195,565,566],{"class":205},";  ",[195,568,569],{"class":329},"\u002F\u002F canLock + canClawback + canTransfer + requireAuth\n",[195,571,573],{"class":197,"line":572},29,[195,574,223],{"emptyLinePlaceholder":222},[195,576,578],{"class":197,"line":577},30,[195,579,580],{"class":329},"    \u002F\u002F Create MPToken issuance transaction\n",[195,582,584,586,589,591],{"class":197,"line":583},31,[195,585,336],{"class":201},[195,587,588],{"class":232}," transactionBlob",[195,590,236],{"class":201},[195,592,279],{"class":205},[195,594,596,599,602],{"class":197,"line":595},32,[195,597,598],{"class":205},"      TransactionType: ",[195,600,601],{"class":212},"\"MPTokenIssuanceCreate\"",[195,603,461],{"class":205},[195,605,607],{"class":197,"line":606},33,[195,608,609],{"class":205},"      Account: issuerWallet.address,\n",[195,611,613],{"class":197,"line":612},34,[195,614,615],{"class":205},"      Flags: totalFlagsValue,\n",[195,617,619],{"class":197,"line":618},35,[195,620,621],{"class":205},"      MPTokenMetadata: metadataHex\n",[195,623,625],{"class":197,"line":624},36,[195,626,627],{"class":329},"      \u002F\u002F MaximumAmount: \"1000000000000000000\", (Optional) The maximum asset amount of this token that can ever be issued\n",[195,629,631],{"class":197,"line":630},37,[195,632,633],{"class":329},"      \u002F\u002F TransferFee: 5000, (Optional) between 0 and 50000 for 50.000% fees charged by the issuer for secondary sales of Token\n",[195,635,637],{"class":197,"line":636},38,[195,638,639],{"class":329},"      \u002F\u002F AssetScale: 2, (Optional) 10^(-scale) of a corresponding fractional unit. For example, a US Dollar Stablecoin will likely have an asset scale of 2, representing 2 decimal places.\n",[195,641,643],{"class":197,"line":642},39,[195,644,489],{"class":205},[195,646,648],{"class":197,"line":647},40,[195,649,223],{"emptyLinePlaceholder":222},[195,651,653],{"class":197,"line":652},41,[195,654,655],{"class":329},"    \u002F\u002F Submit token issuance\n",[195,657,659,661,664,666,668,670,673],{"class":197,"line":658},42,[195,660,336],{"class":201},[195,662,663],{"class":232}," mptokenCreationResult",[195,665,236],{"class":201},[195,667,358],{"class":201},[195,669,312],{"class":205},[195,671,672],{"class":242},"submitAndWait",[195,674,675],{"class":205},"(transactionBlob, {\n",[195,677,679,682,685],{"class":197,"line":678},43,[195,680,681],{"class":205},"      autofill: ",[195,683,684],{"class":232},"true",[195,686,461],{"class":205},[195,688,690],{"class":197,"line":689},44,[195,691,692],{"class":205},"      wallet: issuerWallet\n",[195,694,696],{"class":197,"line":695},45,[195,697,698],{"class":205},"    });\n",[195,700,702],{"class":197,"line":701},46,[195,703,223],{"emptyLinePlaceholder":222},[195,705,707,709,711,713,716],{"class":197,"line":706},47,[195,708,293],{"class":205},[195,710,296],{"class":242},[195,712,246],{"class":205},[195,714,715],{"class":212},"'MPToken Creation Result:'",[195,717,718],{"class":205},", mptokenCreationResult.result.meta?.TransactionResult);\n",[195,720,722,724,726,728,731],{"class":197,"line":721},48,[195,723,293],{"class":205},[195,725,296],{"class":242},[195,727,246],{"class":205},[195,729,730],{"class":212},"'MPToken Issuance ID:'",[195,732,733],{"class":205},", mptokenCreationResult.result.meta?.mpt_issuance_id);\n",[195,735,737],{"class":197,"line":736},49,[195,738,223],{"emptyLinePlaceholder":222},[195,740,742,744,746,749],{"class":197,"line":741},50,[195,743,309],{"class":201},[195,745,312],{"class":205},[195,747,748],{"class":242},"disconnect",[195,750,318],{"class":205},[195,752,754,756,758,760,763],{"class":197,"line":753},51,[195,755,293],{"class":205},[195,757,296],{"class":242},[195,759,246],{"class":205},[195,761,762],{"class":212},"\"All done!\"",[195,764,252],{"class":205},[195,766,768,771,774],{"class":197,"line":767},52,[195,769,770],{"class":205},"  } ",[195,772,773],{"class":201},"catch",[195,775,776],{"class":205}," (error) {\n",[195,778,780,782,785,787,790],{"class":197,"line":779},53,[195,781,293],{"class":205},[195,783,784],{"class":242},"error",[195,786,246],{"class":205},[195,788,789],{"class":212},"\"Error creating MPToken:\"",[195,791,792],{"class":205},", error);\n",[195,794,796],{"class":197,"line":795},54,[195,797,798],{"class":205},"  }\n",[195,800,802],{"class":197,"line":801},55,[195,803,804],{"class":205},"};\n",[195,806,808],{"class":197,"line":807},56,[195,809,223],{"emptyLinePlaceholder":222},[195,811,813,816],{"class":197,"line":812},57,[195,814,815],{"class":242},"main",[195,817,318],{"class":205},[149,819,821],{"id":820},"understanding-mptokenissuanceid","Understanding MPTokenIssuanceID",[15,823,824,825,828,829,832],{},"The ",[181,826,827],{},"mpt_issuance_id"," is a unique identifier generated when an MPToken is created via ",[181,830,831],{},"MPTokenIssuanceCreate",". This ID is:",[24,834,835,841,847],{},[27,836,837,840],{},[30,838,839],{},"Automatically generated"," by the XRPL network upon successful token creation",[27,842,843,846],{},[30,844,845],{},"Globally unique"," across all MPTokens on the ledger",[27,848,849,852],{},[30,850,851],{},"Required"," for all subsequent operations (payments, clawbacks, authorization)",[15,854,855],{},[30,856,857],{},"To obtain the MPTokenIssuanceID:",[859,860,861,867,873],"ol",{},[27,862,863,864,866],{},"Submit an ",[181,865,831],{}," transaction",[27,868,869,870],{},"Retrieve the ID from the transaction result: ",[181,871,872],{},"result.meta?.mpt_issuance_id",[27,874,875],{},"Store this ID for future operations with your token",[15,877,878],{},[30,879,880],{},"Alternative ways to find the MPTokenIssuanceID:",[24,882,883,896],{},[27,884,885,888,889,895],{},[30,886,887],{},"From Explorer",": You can find the ID on the XRPL explorer (",[890,891,892],"a",{"href":892,"rel":893},"https:\u002F\u002Fdevnet.xrpl.org\u002F",[894],"nofollow",") by searching with the transaction hash or the creator's address",[27,897,898,901,902,905,906],{},[30,899,900],{},"Query by Issuer",": Use the ",[181,903,904],{},"account_lines"," API method with the issuer's address to find all tokens issued by that account\n",[186,907,909],{"className":188,"code":908,"language":190,"meta":191,"style":191},"\u002F\u002F Query the ledger for all MPTokens issued by a specific account\nconst response = await client.request({\n  command: \"account_objects\",\n  account: issuerAddress,\n  ledger_index: \"validated\",\n  type: \"mpt_issuance\"\n});\n\n\u002F\u002F Find the specific token by currency code in the metadata\nconst mpTokens = response.result.account_objects;\nconst targetToken = mpTokens.find(token => {\n  \u002F\u002F Parse metadata from hex to JSON\n  const metadata = JSON.parse(Buffer.from(token.MPTokenMetadata, 'hex').toString());\n  return metadata.symbol === \"TECH\"; \u002F\u002F Replace with your token symbol\n});\n\nconst mpTokenId = targetToken?.mpt_issuance_id;\nconsole.log(\"mpTokenId: \", mpTokenId);\n\n",[181,910,911,916,935,945,950,960,968,973,977,982,994,1019,1024,1060,1080,1084,1088,1100],{"__ignoreMap":191},[195,912,913],{"class":197,"line":198},[195,914,915],{"class":329},"\u002F\u002F Query the ledger for all MPTokens issued by a specific account\n",[195,917,918,920,923,925,927,929,932],{"class":197,"line":219},[195,919,229],{"class":201},[195,921,922],{"class":232}," response",[195,924,236],{"class":201},[195,926,358],{"class":201},[195,928,312],{"class":205},[195,930,931],{"class":242},"request",[195,933,934],{"class":205},"({\n",[195,936,937,940,943],{"class":197,"line":226},[195,938,939],{"class":205},"  command: ",[195,941,942],{"class":212},"\"account_objects\"",[195,944,461],{"class":205},[195,946,947],{"class":197,"line":255},[195,948,949],{"class":205},"  account: issuerAddress,\n",[195,951,952,955,958],{"class":197,"line":260},[195,953,954],{"class":205},"  ledger_index: ",[195,956,957],{"class":212},"\"validated\"",[195,959,461],{"class":205},[195,961,962,965],{"class":197,"line":282},[195,963,964],{"class":205},"  type: ",[195,966,967],{"class":212},"\"mpt_issuance\"\n",[195,969,970],{"class":197,"line":290},[195,971,972],{"class":205},"});\n",[195,974,975],{"class":197,"line":306},[195,976,223],{"emptyLinePlaceholder":222},[195,978,979],{"class":197,"line":321},[195,980,981],{"class":329},"\u002F\u002F Find the specific token by currency code in the metadata\n",[195,983,984,986,989,991],{"class":197,"line":326},[195,985,229],{"class":201},[195,987,988],{"class":232}," mpTokens",[195,990,236],{"class":201},[195,992,993],{"class":205}," response.result.account_objects;\n",[195,995,996,998,1001,1003,1006,1009,1011,1014,1017],{"class":197,"line":333},[195,997,229],{"class":201},[195,999,1000],{"class":232}," targetToken",[195,1002,236],{"class":201},[195,1004,1005],{"class":205}," mpTokens.",[195,1007,1008],{"class":242},"find",[195,1010,246],{"class":205},[195,1012,1013],{"class":342},"token",[195,1015,1016],{"class":201}," =>",[195,1018,279],{"class":205},[195,1020,1021],{"class":197,"line":368},[195,1022,1023],{"class":329},"  \u002F\u002F Parse metadata from hex to JSON\n",[195,1025,1026,1029,1032,1034,1037,1039,1042,1045,1047,1050,1052,1055,1057],{"class":197,"line":394},[195,1027,1028],{"class":201},"  const",[195,1030,1031],{"class":232}," metadata",[195,1033,236],{"class":201},[195,1035,1036],{"class":232}," JSON",[195,1038,523],{"class":205},[195,1040,1041],{"class":242},"parse",[195,1043,1044],{"class":205},"(Buffer.",[195,1046,209],{"class":242},[195,1048,1049],{"class":205},"(token.MPTokenMetadata, ",[195,1051,537],{"class":212},[195,1053,1054],{"class":205},").",[195,1056,532],{"class":242},[195,1058,1059],{"class":205},"());\n",[195,1061,1062,1065,1068,1071,1074,1077],{"class":197,"line":399},[195,1063,1064],{"class":201},"  return",[195,1066,1067],{"class":205}," metadata.symbol ",[195,1069,1070],{"class":201},"===",[195,1072,1073],{"class":212}," \"TECH\"",[195,1075,1076],{"class":205},"; ",[195,1078,1079],{"class":329},"\u002F\u002F Replace with your token symbol\n",[195,1081,1082],{"class":197,"line":414},[195,1083,972],{"class":205},[195,1085,1086],{"class":197,"line":429},[195,1087,223],{"emptyLinePlaceholder":222},[195,1089,1090,1092,1095,1097],{"class":197,"line":434},[195,1091,229],{"class":201},[195,1093,1094],{"class":232}," mpTokenId",[195,1096,236],{"class":201},[195,1098,1099],{"class":205}," targetToken?.mpt_issuance_id;\n",[195,1101,1102,1105,1107,1109,1112],{"class":197,"line":440},[195,1103,1104],{"class":205},"console.",[195,1106,296],{"class":242},[195,1108,246],{"class":205},[195,1110,1111],{"class":212},"\"mpTokenId: \"",[195,1113,1114],{"class":205},", mpTokenId);\n",[15,1116,1117],{},"The relationship between issuer, token properties, and ID:",[24,1119,1120,1126,1132],{},[27,1121,1122,1125],{},[30,1123,1124],{},"Issuer",": The account that created the token (unchangeable)",[27,1127,1128,1131],{},[30,1129,1130],{},"Token Properties",": Metadata, flags, and rules defined at creation",[27,1133,1134,1137],{},[30,1135,1136],{},"MPTokenIssuanceID",": The unique identifier linking all operations to this specific token issuance",[19,1139,1141],{"id":1140},"technical-specifications","Technical Specifications",[24,1143,1144,1147,1150,1153],{},[27,1145,1146],{},"Uses decimal (base-10) math with 15 digits of precision",[27,1148,1149],{},"Can express values from 1.0 × 10^-81 to 9999999999999999 × 10^80",[27,1151,1152],{},"Supports transfer fees that are automatically deducted",[27,1154,1155],{},"Allows issuers to define tick sizes for exchange rates",[19,1157,1159],{"id":1158},"destroying-mptokens","Destroying MPTokens",[15,1161,824,1162,1165],{},[181,1163,1164],{},"MPTokenIssuanceDestroy"," transaction allows an issuer to permanently destroy an MPToken issuance. This is useful for:",[24,1167,1168,1171,1174],{},[27,1169,1170],{},"Retiring deprecated or unused tokens",[27,1172,1173],{},"Removing tokens that were created in error",[27,1175,1176],{},"Regulatory compliance and token lifecycle management",[149,1178,1180],{"id":1179},"requirements","Requirements",[24,1182,1183,1186,1189],{},[27,1184,1185],{},"Only the original issuer can destroy the MPToken issuance",[27,1187,1188],{},"All tokens must be owned by the issuer (transferred back) before destruction",[27,1190,1191],{},"The MPTokenIssuanceID must be valid and reference an existing issuance",[149,1193,1195],{"id":1194},"example-transaction","Example Transaction",[186,1197,1199],{"className":188,"code":1198,"language":190,"meta":191,"style":191},"const transactionBlob = {\n  TransactionType: \"MPTokenIssuanceDestroy\",\n  Account: wallet.address,\n  MPTokenIssuanceID: mpTokenId\n};\n",[181,1200,1201,1211,1221,1226,1231],{"__ignoreMap":191},[195,1202,1203,1205,1207,1209],{"class":197,"line":198},[195,1204,229],{"class":201},[195,1206,588],{"class":232},[195,1208,236],{"class":201},[195,1210,279],{"class":205},[195,1212,1213,1216,1219],{"class":197,"line":219},[195,1214,1215],{"class":205},"  TransactionType: ",[195,1217,1218],{"class":212},"\"MPTokenIssuanceDestroy\"",[195,1220,461],{"class":205},[195,1222,1223],{"class":197,"line":226},[195,1224,1225],{"class":205},"  Account: wallet.address,\n",[195,1227,1228],{"class":197,"line":255},[195,1229,1230],{"class":205},"  MPTokenIssuanceID: mpTokenId\n",[195,1232,1233],{"class":197,"line":260},[195,1234,804],{"class":205},[19,1236,1238],{"id":1237},"freezing-mptoken-issuance","Freezing MPToken Issuance",[15,1240,824,1241,1244],{},[181,1242,1243],{},"MPTokenIssuanceSet"," transaction allows an issuer to modify the state of an MPToken issuance, including freezing\u002Funfreezing transfers. This is useful for:",[24,1246,1247,1250,1253,1256],{},[27,1248,1249],{},"Temporarily halting transfers during maintenance or upgrades",[27,1251,1252],{},"Responding to security incidents",[27,1254,1255],{},"Complying with regulatory requirements",[27,1257,1258],{},"Managing token lifecycle events",[149,1260,1180],{"id":1261},"requirements-1",[24,1263,1264,1267,1269],{},[27,1265,1266],{},"Only the original issuer can modify the issuance settings",[27,1268,1191],{},[27,1270,1271],{},"Appropriate flags must be set during issuance to enable freezing",[149,1273,1195],{"id":1274},"example-transaction-1",[186,1276,1278],{"className":188,"code":1277,"language":190,"meta":191,"style":191},"const transactionBlob = {\n  TransactionType: \"MPTokenIssuanceSet\",\n  Account: wallet.address,\n  MPTokenIssuanceID: mpTokenId,\n  Flags: 1, \u002F\u002F 1: Lock, 2: Unlock\n  \u002F\u002F Holder: r3d4... \u002F\u002F Specify holder to freeze; if not specified, it will freeze globally\n};\n",[181,1279,1280,1290,1299,1303,1308,1322,1330],{"__ignoreMap":191},[195,1281,1282,1284,1286,1288],{"class":197,"line":198},[195,1283,229],{"class":201},[195,1285,588],{"class":232},[195,1287,236],{"class":201},[195,1289,279],{"class":205},[195,1291,1292,1294,1297],{"class":197,"line":219},[195,1293,1215],{"class":205},[195,1295,1296],{"class":212},"\"MPTokenIssuanceSet\"",[195,1298,461],{"class":205},[195,1300,1301],{"class":197,"line":226},[195,1302,1225],{"class":205},[195,1304,1305],{"class":197,"line":255},[195,1306,1307],{"class":205},"  MPTokenIssuanceID: mpTokenId,\n",[195,1309,1310,1313,1316,1319],{"class":197,"line":260},[195,1311,1312],{"class":205},"  Flags: ",[195,1314,1315],{"class":232},"1",[195,1317,1318],{"class":205},", ",[195,1320,1321],{"class":329},"\u002F\u002F 1: Lock, 2: Unlock\n",[195,1323,1324,1327],{"class":197,"line":282},[195,1325,1326],{"class":329},"  \u002F\u002F Holder: r3d4...",[195,1328,1329],{"class":329}," \u002F\u002F Specify holder to freeze; if not specified, it will freeze globally\n",[195,1331,1332],{"class":197,"line":290},[195,1333,804],{"class":205},[19,1335,1337],{"id":1336},"authorizing-mptoken-holders","Authorizing MPToken Holders",[15,1339,824,1340,1343],{},[181,1341,1342],{},"MPTokenAuthorize"," transaction enables fine-grained control over who can hold and transfer Multi-Purpose Tokens (MPTs) on the XRPL. This mechanism supports compliance, prevents unsolicited token spam, and allows issuers to manage token distribution effectively.",[149,1345,1347],{"id":1346},"features","Features",[24,1349,1350,1356,1362,1368],{},[27,1351,1352,1355],{},[30,1353,1354],{},"Authorize a Holder",": Permit a specific account to receive and hold a designated MPT",[27,1357,1358,1361],{},[30,1359,1360],{},"Revoke Authorization",": Remove a holder's permission, effectively locking their MPT balance",[27,1363,1364,1367],{},[30,1365,1366],{},"Self-Unauthorize",": Allow a holder to voluntarily relinquish their MPT holdings (requires zero balance)",[27,1369,1370,1373],{},[30,1371,1372],{},"Global Locking",": Restrict all transfers of a particular MPT issuance",[149,1375,1180],{"id":1376},"requirements-2",[24,1378,1379,1382,1384,1387],{},[27,1380,1381],{},"Only the original issuer can authorize\u002Frevoke holders",[27,1383,1191],{},[27,1385,1386],{},"Authorization flags must be enabled during issuance",[27,1388,1389],{},"Holder accounts must be valid XRPL addresses",[149,1391,1195],{"id":1392},"example-transaction-2",[186,1394,1396],{"className":188,"code":1395,"language":190,"meta":191,"style":191},"const transactionBlob = {\n  TransactionType: \"MPTokenAuthorize\",\n  Account: wallet.address,\n  MPTokenIssuanceID: mptokenID\n  Flags: 0 \u002F\u002F If set to 1, and transaction is submitted by a holder, it indicates that the holder no longer wants to hold the MPToken\n  \u002F\u002F Holder: r3d4... (Optional) Specify address to authorize; if not specified, it will authorize globally\n};\n",[181,1397,1398,1408,1417,1421,1426,1436,1441],{"__ignoreMap":191},[195,1399,1400,1402,1404,1406],{"class":197,"line":198},[195,1401,229],{"class":201},[195,1403,588],{"class":232},[195,1405,236],{"class":201},[195,1407,279],{"class":205},[195,1409,1410,1412,1415],{"class":197,"line":219},[195,1411,1215],{"class":205},[195,1413,1414],{"class":212},"\"MPTokenAuthorize\"",[195,1416,461],{"class":205},[195,1418,1419],{"class":197,"line":226},[195,1420,1225],{"class":205},[195,1422,1423],{"class":197,"line":255},[195,1424,1425],{"class":205},"  MPTokenIssuanceID: mptokenID\n",[195,1427,1428,1430,1433],{"class":197,"line":260},[195,1429,1312],{"class":205},[195,1431,1432],{"class":232},"0",[195,1434,1435],{"class":329}," \u002F\u002F If set to 1, and transaction is submitted by a holder, it indicates that the holder no longer wants to hold the MPToken\n",[195,1437,1438],{"class":197,"line":282},[195,1439,1440],{"class":329},"  \u002F\u002F Holder: r3d4... (Optional) Specify address to authorize; if not specified, it will authorize globally\n",[195,1442,1443],{"class":197,"line":290},[195,1444,804],{"class":205},[19,1446,1448],{"id":1447},"transaction-type-modifications","Transaction Type modifications",[15,1450,1451],{},"The introduction of Multi-Purpose Tokens (MPT) on the XRP Ledger has brought significant changes to existing transaction types, especially Payment and Clawback. These transactions now support MPTokens, allowing you to transfer or recover tokens issued under the new amendment.",[149,1453,1455],{"id":1454},"changes-introduced","Changes introduced:",[24,1457,1458,1542],{},[27,1459,1460,184,1463,1466,1467,1470,1471,1473,1474,1476,1477],{},[30,1461,1462],{},"Payment",[1464,1465],"br",{},"\nThe Payment transaction can now transfer MPTokens by using the ",[181,1468,1469],{},"Amount"," field as an object containing the issuance identifier (",[181,1472,827],{},") and the amount to transfer.",[1464,1475],{},"\nExample:",[186,1478,1480],{"className":188,"code":1479,"language":190,"meta":191,"style":191},"const transactionBlob = {\n  TransactionType: \"Payment\",\n  Account: wallet.address,\n  Amount: {\n    \"mpt_issuance_id\": mpTokenId,\n    \"value\": \"10000\"\n  },\n  Destination: destinationAddress.value,\n};\n",[181,1481,1482,1492,1501,1505,1510,1518,1528,1533,1538],{"__ignoreMap":191},[195,1483,1484,1486,1488,1490],{"class":197,"line":198},[195,1485,229],{"class":201},[195,1487,588],{"class":232},[195,1489,236],{"class":201},[195,1491,279],{"class":205},[195,1493,1494,1496,1499],{"class":197,"line":219},[195,1495,1215],{"class":205},[195,1497,1498],{"class":212},"\"Payment\"",[195,1500,461],{"class":205},[195,1502,1503],{"class":197,"line":226},[195,1504,1225],{"class":205},[195,1506,1507],{"class":197,"line":255},[195,1508,1509],{"class":205},"  Amount: {\n",[195,1511,1512,1515],{"class":197,"line":260},[195,1513,1514],{"class":212},"    \"mpt_issuance_id\"",[195,1516,1517],{"class":205},": mpTokenId,\n",[195,1519,1520,1523,1525],{"class":197,"line":282},[195,1521,1522],{"class":212},"    \"value\"",[195,1524,346],{"class":205},[195,1526,1527],{"class":212},"\"10000\"\n",[195,1529,1530],{"class":197,"line":290},[195,1531,1532],{"class":205},"  },\n",[195,1534,1535],{"class":197,"line":306},[195,1536,1537],{"class":205},"  Destination: destinationAddress.value,\n",[195,1539,1540],{"class":197,"line":321},[195,1541,804],{"class":205},[27,1543,1544,184,1547,1549,1550,1552,1553,1476,1555],{},[30,1545,1546],{},"Clawback",[1464,1548],{},"\nThe Clawback transaction allows the issuer to recover MPTokens from a specific account, also using the adapted ",[181,1551,1469],{}," field for MPTokens.",[1464,1554],{},[186,1556,1558],{"className":188,"code":1557,"language":190,"meta":191,"style":191},"const transactionBlob = {\n    TransactionType: \"Clawback\",\n    Account: wallet.address,\n    Amount: {\n        \"mpt_issuance_id\": mpTokenId,\n        \"value\": \"10000\"\n    },\n    Holder: holderAddress.value,\n};\n",[181,1559,1560,1570,1580,1585,1590,1597,1606,1611,1616],{"__ignoreMap":191},[195,1561,1562,1564,1566,1568],{"class":197,"line":198},[195,1563,229],{"class":201},[195,1565,588],{"class":232},[195,1567,236],{"class":201},[195,1569,279],{"class":205},[195,1571,1572,1575,1578],{"class":197,"line":219},[195,1573,1574],{"class":205},"    TransactionType: ",[195,1576,1577],{"class":212},"\"Clawback\"",[195,1579,461],{"class":205},[195,1581,1582],{"class":197,"line":226},[195,1583,1584],{"class":205},"    Account: wallet.address,\n",[195,1586,1587],{"class":197,"line":255},[195,1588,1589],{"class":205},"    Amount: {\n",[195,1591,1592,1595],{"class":197,"line":260},[195,1593,1594],{"class":212},"        \"mpt_issuance_id\"",[195,1596,1517],{"class":205},[195,1598,1599,1602,1604],{"class":197,"line":282},[195,1600,1601],{"class":212},"        \"value\"",[195,1603,346],{"class":205},[195,1605,1527],{"class":212},[195,1607,1608],{"class":197,"line":290},[195,1609,1610],{"class":205},"    },\n",[195,1612,1613],{"class":197,"line":306},[195,1614,1615],{"class":205},"    Holder: holderAddress.value,\n",[195,1617,1618],{"class":197,"line":321},[195,1619,804],{"class":205},[19,1621,1623],{"id":1622},"putting-it-all-together","Putting It All Together",[15,1625,1626],{},"Let's create a complete example that demonstrates all the MPToken features by simulating a real-world scenario: issuing company shares to investors. In this example, we'll:",[859,1628,1629,1632,1635,1638],{},[27,1630,1631],{},"Create a company share token with regulatory controls",[27,1633,1634],{},"Authorize investors to receive shares",[27,1636,1637],{},"Distribute shares to investors",[27,1639,1640],{},"Demonstrate compliance controls (locking and clawback)",[24,1642,1643],{},[27,1644,1645,1646],{},"You can check every transaction hash on : ",[890,1647,892],{"href":892,"rel":1648},[894],[186,1650,1654],{"className":1651,"code":1652,"language":1653,"meta":191,"style":191},"language-javascript shiki shiki-themes github-dark-high-contrast","import { Client } from 'xrpl';\n\nconst client = new Client(\"wss:\u002F\u002Fs.devnet.rippletest.net:51233\");\n\nconst main = async () => {\n  try {\n    console.log(\"Creating company shares using Multi-Purpose Tokens...\");\n    await client.connect();\n\n    console.log(\"Setting up company and investor wallets...\");\n\n    \u002F\u002F Create company (issuer) and investor wallets\n    const { wallet: companyWallet } = await client.fundWallet();\n    const { wallet: investor1Wallet } = await client.fundWallet();\n    const { wallet: investor2Wallet } = await client.fundWallet();\n\n    console.log('Company Wallet:', companyWallet.address);\n    console.log('Investor 1 Wallet:', investor1Wallet.address);\n    console.log('Investor 2 Wallet:', investor2Wallet.address);\n    console.log(\"\");\n\n    \u002F\u002F Define company share token metadata\n    const tokenMetadata = {\n      name: \"TechCorp Shares\",\n      symbol: \"TECH\",\n      description: \"Equity shares in TechCorp with regulatory compliance features\",\n    };\n\n    \u002F\u002F Convert metadata to hex string\n    const metadataHex = Buffer.from(JSON.stringify(tokenMetadata)).toString('hex');\n\n    \u002F\u002F Set flags for a regulated security token\n    const totalFlagsValue = 102;  \u002F\u002F canLock + canClawback + canTransfer + requireAuth\n\n    \u002F\u002F Create company share token issuance\n    let transactionBlob = {\n      TransactionType: \"MPTokenIssuanceCreate\",\n      Account: companyWallet.address,\n      Flags: totalFlagsValue,\n      MPTokenMetadata: metadataHex\n    };\n\n    console.log(\"Issuing company share tokens...\");\n    \u002F\u002F Submit token issuance\n    const createTx = await client.submitAndWait(transactionBlob, { wallet: companyWallet });\n\n    \u002F\u002F Get the MPTokenID for our company shares\n    const MPTokenID = createTx.result.meta?.mpt_issuance_id;  \n\n    console.log('Share token creation transaction hash:', createTx.result.hash);\n    console.log('Company Share Token ID:', MPTokenID);\n    console.log(\"\");\n\n    \u002F\u002F First, investors need to self-authorize to receive the tokens\n    \u002F\u002F Investor 1 self-authorization\n    transactionBlob = {\n      TransactionType: \"MPTokenAuthorize\",\n      Account: investor1Wallet.address,\n      MPTokenIssuanceID: MPTokenID,\n    };\n\n    console.log(\"Investor 1 authorizing to receive shares...\");\n    const investor1SelfAuthTx = await client.submitAndWait(transactionBlob, {wallet: investor1Wallet });\n\n    \u002F\u002F Investor 2 self-authorization\n    transactionBlob = {\n      TransactionType: \"MPTokenAuthorize\",\n      Account: investor2Wallet.address,\n      MPTokenIssuanceID: MPTokenID,\n    };\n\n    console.log(\"Investor 2 authorizing to receive shares...\");\n    const investor2SelfAuthTx = await client.submitAndWait(transactionBlob, {wallet: investor2Wallet });\n\n    console.log(\"Investor 1 self-authorization transaction hash:\", investor1SelfAuthTx.result.hash);\n    console.log(\"Investor 2 self-authorization transaction hash:\", investor2SelfAuthTx.result.hash);\n    console.log(\"\");\n\n    \u002F\u002F With requireAuth flag, the company (issuer) must authorize investors\n    \u002F\u002F Authorize investor 1\n    transactionBlob = {\n      TransactionType: \"MPTokenAuthorize\",\n      Account: companyWallet.address,\n      MPTokenIssuanceID: MPTokenID,\n      Holder: investor1Wallet.address\n    };\n\n    console.log(\"Company authorizing investor 1 to receive shares...\");\n    const investor1AuthTx = await client.submitAndWait(transactionBlob, {wallet: companyWallet });\n\n    \u002F\u002F Authorize investor 2\n    transactionBlob = {\n      TransactionType: \"MPTokenAuthorize\",\n      Account: companyWallet.address,\n      MPTokenIssuanceID: MPTokenID,\n      Holder: investor2Wallet.address\n    };\n\n    console.log(\"Company authorizing investor 2 to receive shares...\");\n    const investor2AuthTx = await client.submitAndWait(transactionBlob, {wallet: companyWallet });\n\n    console.log(\"Investor 1 issuer authorization transaction hash:\", investor1AuthTx.result.hash);\n    console.log(\"Investor 2 issuer authorization transaction hash:\", investor2AuthTx.result.hash);\n    console.log(\"\");\n\n    \u002F\u002F Distribute shares to investor 1 (10,000 shares)\n    transactionBlob = {\n        TransactionType: \"Payment\",\n        Account: companyWallet.address,\n        Amount: {\n          \"mpt_issuance_id\": MPTokenID, \u002F\u002F Company share token ID\n          \"value\": \"10000\" \u002F\u002F 10,000 shares\n        },\n        Destination: investor1Wallet.address,\n    }; \n\n    console.log(\"Distributing 10,000 shares to investor 1...\");\n    const paymentTx = await client.submitAndWait(transactionBlob, {wallet: companyWallet });\n\n    console.log(\"Share distribution transaction hash: \", paymentTx.result.hash);\n    console.log(\"\");\n\n    \u002F\u002F Demonstrate compliance: Lock investor 1's shares (e.g., during regulatory investigation)\n    transactionBlob = {\n      TransactionType: \"MPTokenIssuanceSet\",\n      Account: companyWallet.address,\n      MPTokenIssuanceID: MPTokenID,\n      Holder: investor1Wallet.address,\n      Flags: 1, \u002F\u002F Lock the shares\n    };\n\n    console.log(\"Locking investor 1's shares for compliance review...\");\n    const lockTx = await client.submitAndWait(transactionBlob, {wallet: companyWallet });\n\n    console.log(\"Lock transaction hash: \", lockTx.result.hash);\n    console.log(\"TransactionResult: \", lockTx.result.meta.TransactionResult);\n    console.log(\"Investor 1 can no longer transfer their shares\");\n    console.log(\"\");\n    \n    \u002F\u002F Attempt transfer while locked (this will fail)\n    transactionBlob = {\n      TransactionType: \"Payment\",\n      Account: investor1Wallet.address,\n      Amount: {\n        \"mpt_issuance_id\": MPTokenID,\n        \"value\": \"5000\"\n      },\n      Destination: investor2Wallet.address,\n    };\n\n    console.log(\"Attempting to transfer locked shares to investor 2 (this will fail)...\");\n    const transferTx = await client.submitAndWait(transactionBlob, {wallet: investor1Wallet });\n\n    console.log(\"Transfer transaction hash: \", transferTx.result.hash);\n    console.log(\"TransactionResult: \", transferTx.result.meta.TransactionResult);\n    console.log(\"Transfer failed as expected - shares are locked\");\n    console.log(\"\");\n\n    \u002F\u002F Company exercises clawback rights (e.g., for regulatory compliance)\n    transactionBlob = {\n      TransactionType: \"Clawback\",\n      Account: companyWallet.address,\n      Amount: {\n        \"mpt_issuance_id\": MPTokenID,\n        \"value\": \"10000\"\n      },\n      Holder: investor1Wallet.address,\n    };\n\n    console.log(\"Company exercising clawback rights on investor 1's shares...\");\n    const clawbackTx = await client.submitAndWait(transactionBlob, {wallet: companyWallet });\n\n    console.log(\"Clawback transaction hash: \", clawbackTx.result.hash);\n    console.log(\"All 10,000 shares have been returned to the company\");\n    console.log(\"\");\n    \n    \n    await client.disconnect();\n    console.log(\"Company share token demonstration complete!\");\n  } catch (error) {\n    console.error(\"Error in share token operations:\", error);\n  }\n};\n\nmain();\n","javascript",[181,1655,1656,1668,1672,1690,1694,1710,1716,1729,1739,1743,1756,1760,1765,1790,1815,1840,1844,1858,1872,1886,1899,1903,1908,1918,1927,1936,1945,1949,1953,1957,1987,1991,1996,2010,2014,2019,2031,2039,2044,2048,2052,2056,2060,2073,2077,2095,2099,2104,2116,2120,2134,2148,2160,2164,2169,2174,2183,2191,2197,2203,2208,2213,2227,2246,2251,2257,2266,2275,2281,2286,2291,2296,2310,2329,2334,2349,2364,2377,2382,2388,2394,2403,2412,2417,2422,2428,2433,2438,2452,2471,2476,2482,2491,2500,2505,2510,2516,2521,2526,2540,2558,2563,2578,2593,2606,2611,2617,2626,2636,2642,2648,2660,2674,2680,2686,2692,2697,2711,2729,2734,2749,2762,2767,2773,2782,2791,2796,2801,2807,2820,2825,2830,2844,2862,2867,2882,2897,2911,2924,2930,2936,2945,2954,2959,2965,2973,2983,2989,2995,3000,3005,3019,3037,3042,3057,3071,3085,3098,3103,3109,3118,3127,3132,3137,3144,3153,3158,3163,3168,3173,3187,3205,3210,3225,3239,3252,3257,3262,3273,3287,3296,3310,3315,3320,3325],{"__ignoreMap":191},[195,1657,1658,1660,1662,1664,1666],{"class":197,"line":198},[195,1659,202],{"class":201},[195,1661,206],{"class":205},[195,1663,209],{"class":201},[195,1665,213],{"class":212},[195,1667,216],{"class":205},[195,1669,1670],{"class":197,"line":219},[195,1671,223],{"emptyLinePlaceholder":222},[195,1673,1674,1676,1678,1680,1682,1684,1686,1688],{"class":197,"line":226},[195,1675,229],{"class":201},[195,1677,233],{"class":232},[195,1679,236],{"class":201},[195,1681,239],{"class":201},[195,1683,243],{"class":242},[195,1685,246],{"class":205},[195,1687,249],{"class":212},[195,1689,252],{"class":205},[195,1691,1692],{"class":197,"line":255},[195,1693,223],{"emptyLinePlaceholder":222},[195,1695,1696,1698,1700,1702,1704,1706,1708],{"class":197,"line":260},[195,1697,229],{"class":201},[195,1699,265],{"class":242},[195,1701,236],{"class":201},[195,1703,270],{"class":201},[195,1705,273],{"class":205},[195,1707,276],{"class":201},[195,1709,279],{"class":205},[195,1711,1712,1714],{"class":197,"line":282},[195,1713,285],{"class":201},[195,1715,279],{"class":205},[195,1717,1718,1720,1722,1724,1727],{"class":197,"line":290},[195,1719,293],{"class":205},[195,1721,296],{"class":242},[195,1723,246],{"class":205},[195,1725,1726],{"class":212},"\"Creating company shares using Multi-Purpose Tokens...\"",[195,1728,252],{"class":205},[195,1730,1731,1733,1735,1737],{"class":197,"line":306},[195,1732,309],{"class":201},[195,1734,312],{"class":205},[195,1736,315],{"class":242},[195,1738,318],{"class":205},[195,1740,1741],{"class":197,"line":321},[195,1742,223],{"emptyLinePlaceholder":222},[195,1744,1745,1747,1749,1751,1754],{"class":197,"line":326},[195,1746,293],{"class":205},[195,1748,296],{"class":242},[195,1750,246],{"class":205},[195,1752,1753],{"class":212},"\"Setting up company and investor wallets...\"",[195,1755,252],{"class":205},[195,1757,1758],{"class":197,"line":333},[195,1759,223],{"emptyLinePlaceholder":222},[195,1761,1762],{"class":197,"line":368},[195,1763,1764],{"class":329},"    \u002F\u002F Create company (issuer) and investor wallets\n",[195,1766,1767,1769,1771,1773,1775,1778,1780,1782,1784,1786,1788],{"class":197,"line":394},[195,1768,336],{"class":201},[195,1770,339],{"class":205},[195,1772,343],{"class":342},[195,1774,346],{"class":205},[195,1776,1777],{"class":232},"companyWallet",[195,1779,352],{"class":205},[195,1781,355],{"class":201},[195,1783,358],{"class":201},[195,1785,312],{"class":205},[195,1787,363],{"class":242},[195,1789,318],{"class":205},[195,1791,1792,1794,1796,1798,1800,1803,1805,1807,1809,1811,1813],{"class":197,"line":399},[195,1793,336],{"class":201},[195,1795,339],{"class":205},[195,1797,343],{"class":342},[195,1799,346],{"class":205},[195,1801,1802],{"class":232},"investor1Wallet",[195,1804,352],{"class":205},[195,1806,355],{"class":201},[195,1808,358],{"class":201},[195,1810,312],{"class":205},[195,1812,363],{"class":242},[195,1814,318],{"class":205},[195,1816,1817,1819,1821,1823,1825,1828,1830,1832,1834,1836,1838],{"class":197,"line":414},[195,1818,336],{"class":201},[195,1820,339],{"class":205},[195,1822,343],{"class":342},[195,1824,346],{"class":205},[195,1826,1827],{"class":232},"investor2Wallet",[195,1829,352],{"class":205},[195,1831,355],{"class":201},[195,1833,358],{"class":201},[195,1835,312],{"class":205},[195,1837,363],{"class":242},[195,1839,318],{"class":205},[195,1841,1842],{"class":197,"line":429},[195,1843,223],{"emptyLinePlaceholder":222},[195,1845,1846,1848,1850,1852,1855],{"class":197,"line":434},[195,1847,293],{"class":205},[195,1849,296],{"class":242},[195,1851,246],{"class":205},[195,1853,1854],{"class":212},"'Company Wallet:'",[195,1856,1857],{"class":205},", companyWallet.address);\n",[195,1859,1860,1862,1864,1866,1869],{"class":197,"line":440},[195,1861,293],{"class":205},[195,1863,296],{"class":242},[195,1865,246],{"class":205},[195,1867,1868],{"class":212},"'Investor 1 Wallet:'",[195,1870,1871],{"class":205},", investor1Wallet.address);\n",[195,1873,1874,1876,1878,1880,1883],{"class":197,"line":452},[195,1875,293],{"class":205},[195,1877,296],{"class":242},[195,1879,246],{"class":205},[195,1881,1882],{"class":212},"'Investor 2 Wallet:'",[195,1884,1885],{"class":205},", investor2Wallet.address);\n",[195,1887,1888,1890,1892,1894,1897],{"class":197,"line":464},[195,1889,293],{"class":205},[195,1891,296],{"class":242},[195,1893,246],{"class":205},[195,1895,1896],{"class":212},"\"\"",[195,1898,252],{"class":205},[195,1900,1901],{"class":197,"line":475},[195,1902,223],{"emptyLinePlaceholder":222},[195,1904,1905],{"class":197,"line":486},[195,1906,1907],{"class":329},"    \u002F\u002F Define company share token metadata\n",[195,1909,1910,1912,1914,1916],{"class":197,"line":492},[195,1911,336],{"class":201},[195,1913,445],{"class":232},[195,1915,236],{"class":201},[195,1917,279],{"class":205},[195,1919,1920,1922,1925],{"class":197,"line":497},[195,1921,455],{"class":205},[195,1923,1924],{"class":212},"\"TechCorp Shares\"",[195,1926,461],{"class":205},[195,1928,1929,1931,1934],{"class":197,"line":503},[195,1930,467],{"class":205},[195,1932,1933],{"class":212},"\"TECH\"",[195,1935,461],{"class":205},[195,1937,1938,1940,1943],{"class":197,"line":542},[195,1939,478],{"class":205},[195,1941,1942],{"class":212},"\"Equity shares in TechCorp with regulatory compliance features\"",[195,1944,461],{"class":205},[195,1946,1947],{"class":197,"line":547},[195,1948,489],{"class":205},[195,1950,1951],{"class":197,"line":553},[195,1952,223],{"emptyLinePlaceholder":222},[195,1954,1955],{"class":197,"line":572},[195,1956,500],{"class":329},[195,1958,1959,1961,1963,1965,1967,1969,1971,1973,1975,1977,1979,1981,1983,1985],{"class":197,"line":577},[195,1960,336],{"class":201},[195,1962,508],{"class":232},[195,1964,236],{"class":201},[195,1966,513],{"class":205},[195,1968,209],{"class":242},[195,1970,246],{"class":205},[195,1972,520],{"class":232},[195,1974,523],{"class":205},[195,1976,526],{"class":242},[195,1978,529],{"class":205},[195,1980,532],{"class":242},[195,1982,246],{"class":205},[195,1984,537],{"class":212},[195,1986,252],{"class":205},[195,1988,1989],{"class":197,"line":583},[195,1990,223],{"emptyLinePlaceholder":222},[195,1992,1993],{"class":197,"line":595},[195,1994,1995],{"class":329},"    \u002F\u002F Set flags for a regulated security token\n",[195,1997,1998,2000,2002,2004,2006,2008],{"class":197,"line":606},[195,1999,336],{"class":201},[195,2001,558],{"class":232},[195,2003,236],{"class":201},[195,2005,563],{"class":232},[195,2007,566],{"class":205},[195,2009,569],{"class":329},[195,2011,2012],{"class":197,"line":612},[195,2013,223],{"emptyLinePlaceholder":222},[195,2015,2016],{"class":197,"line":618},[195,2017,2018],{"class":329},"    \u002F\u002F Create company share token issuance\n",[195,2020,2021,2024,2027,2029],{"class":197,"line":624},[195,2022,2023],{"class":201},"    let",[195,2025,2026],{"class":205}," transactionBlob ",[195,2028,355],{"class":201},[195,2030,279],{"class":205},[195,2032,2033,2035,2037],{"class":197,"line":630},[195,2034,598],{"class":205},[195,2036,601],{"class":212},[195,2038,461],{"class":205},[195,2040,2041],{"class":197,"line":636},[195,2042,2043],{"class":205},"      Account: companyWallet.address,\n",[195,2045,2046],{"class":197,"line":642},[195,2047,615],{"class":205},[195,2049,2050],{"class":197,"line":647},[195,2051,621],{"class":205},[195,2053,2054],{"class":197,"line":652},[195,2055,489],{"class":205},[195,2057,2058],{"class":197,"line":658},[195,2059,223],{"emptyLinePlaceholder":222},[195,2061,2062,2064,2066,2068,2071],{"class":197,"line":678},[195,2063,293],{"class":205},[195,2065,296],{"class":242},[195,2067,246],{"class":205},[195,2069,2070],{"class":212},"\"Issuing company share tokens...\"",[195,2072,252],{"class":205},[195,2074,2075],{"class":197,"line":689},[195,2076,655],{"class":329},[195,2078,2079,2081,2084,2086,2088,2090,2092],{"class":197,"line":695},[195,2080,336],{"class":201},[195,2082,2083],{"class":232}," createTx",[195,2085,236],{"class":201},[195,2087,358],{"class":201},[195,2089,312],{"class":205},[195,2091,672],{"class":242},[195,2093,2094],{"class":205},"(transactionBlob, { wallet: companyWallet });\n",[195,2096,2097],{"class":197,"line":701},[195,2098,223],{"emptyLinePlaceholder":222},[195,2100,2101],{"class":197,"line":706},[195,2102,2103],{"class":329},"    \u002F\u002F Get the MPTokenID for our company shares\n",[195,2105,2106,2108,2111,2113],{"class":197,"line":721},[195,2107,336],{"class":201},[195,2109,2110],{"class":232}," MPTokenID",[195,2112,236],{"class":201},[195,2114,2115],{"class":205}," createTx.result.meta?.mpt_issuance_id;  \n",[195,2117,2118],{"class":197,"line":736},[195,2119,223],{"emptyLinePlaceholder":222},[195,2121,2122,2124,2126,2128,2131],{"class":197,"line":741},[195,2123,293],{"class":205},[195,2125,296],{"class":242},[195,2127,246],{"class":205},[195,2129,2130],{"class":212},"'Share token creation transaction hash:'",[195,2132,2133],{"class":205},", createTx.result.hash);\n",[195,2135,2136,2138,2140,2142,2145],{"class":197,"line":753},[195,2137,293],{"class":205},[195,2139,296],{"class":242},[195,2141,246],{"class":205},[195,2143,2144],{"class":212},"'Company Share Token ID:'",[195,2146,2147],{"class":205},", MPTokenID);\n",[195,2149,2150,2152,2154,2156,2158],{"class":197,"line":767},[195,2151,293],{"class":205},[195,2153,296],{"class":242},[195,2155,246],{"class":205},[195,2157,1896],{"class":212},[195,2159,252],{"class":205},[195,2161,2162],{"class":197,"line":779},[195,2163,223],{"emptyLinePlaceholder":222},[195,2165,2166],{"class":197,"line":795},[195,2167,2168],{"class":329},"    \u002F\u002F First, investors need to self-authorize to receive the tokens\n",[195,2170,2171],{"class":197,"line":801},[195,2172,2173],{"class":329},"    \u002F\u002F Investor 1 self-authorization\n",[195,2175,2176,2179,2181],{"class":197,"line":807},[195,2177,2178],{"class":205},"    transactionBlob ",[195,2180,355],{"class":201},[195,2182,279],{"class":205},[195,2184,2185,2187,2189],{"class":197,"line":812},[195,2186,598],{"class":205},[195,2188,1414],{"class":212},[195,2190,461],{"class":205},[195,2192,2194],{"class":197,"line":2193},58,[195,2195,2196],{"class":205},"      Account: investor1Wallet.address,\n",[195,2198,2200],{"class":197,"line":2199},59,[195,2201,2202],{"class":205},"      MPTokenIssuanceID: MPTokenID,\n",[195,2204,2206],{"class":197,"line":2205},60,[195,2207,489],{"class":205},[195,2209,2211],{"class":197,"line":2210},61,[195,2212,223],{"emptyLinePlaceholder":222},[195,2214,2216,2218,2220,2222,2225],{"class":197,"line":2215},62,[195,2217,293],{"class":205},[195,2219,296],{"class":242},[195,2221,246],{"class":205},[195,2223,2224],{"class":212},"\"Investor 1 authorizing to receive shares...\"",[195,2226,252],{"class":205},[195,2228,2230,2232,2235,2237,2239,2241,2243],{"class":197,"line":2229},63,[195,2231,336],{"class":201},[195,2233,2234],{"class":232}," investor1SelfAuthTx",[195,2236,236],{"class":201},[195,2238,358],{"class":201},[195,2240,312],{"class":205},[195,2242,672],{"class":242},[195,2244,2245],{"class":205},"(transactionBlob, {wallet: investor1Wallet });\n",[195,2247,2249],{"class":197,"line":2248},64,[195,2250,223],{"emptyLinePlaceholder":222},[195,2252,2254],{"class":197,"line":2253},65,[195,2255,2256],{"class":329},"    \u002F\u002F Investor 2 self-authorization\n",[195,2258,2260,2262,2264],{"class":197,"line":2259},66,[195,2261,2178],{"class":205},[195,2263,355],{"class":201},[195,2265,279],{"class":205},[195,2267,2269,2271,2273],{"class":197,"line":2268},67,[195,2270,598],{"class":205},[195,2272,1414],{"class":212},[195,2274,461],{"class":205},[195,2276,2278],{"class":197,"line":2277},68,[195,2279,2280],{"class":205},"      Account: investor2Wallet.address,\n",[195,2282,2284],{"class":197,"line":2283},69,[195,2285,2202],{"class":205},[195,2287,2289],{"class":197,"line":2288},70,[195,2290,489],{"class":205},[195,2292,2294],{"class":197,"line":2293},71,[195,2295,223],{"emptyLinePlaceholder":222},[195,2297,2299,2301,2303,2305,2308],{"class":197,"line":2298},72,[195,2300,293],{"class":205},[195,2302,296],{"class":242},[195,2304,246],{"class":205},[195,2306,2307],{"class":212},"\"Investor 2 authorizing to receive shares...\"",[195,2309,252],{"class":205},[195,2311,2313,2315,2318,2320,2322,2324,2326],{"class":197,"line":2312},73,[195,2314,336],{"class":201},[195,2316,2317],{"class":232}," investor2SelfAuthTx",[195,2319,236],{"class":201},[195,2321,358],{"class":201},[195,2323,312],{"class":205},[195,2325,672],{"class":242},[195,2327,2328],{"class":205},"(transactionBlob, {wallet: investor2Wallet });\n",[195,2330,2332],{"class":197,"line":2331},74,[195,2333,223],{"emptyLinePlaceholder":222},[195,2335,2337,2339,2341,2343,2346],{"class":197,"line":2336},75,[195,2338,293],{"class":205},[195,2340,296],{"class":242},[195,2342,246],{"class":205},[195,2344,2345],{"class":212},"\"Investor 1 self-authorization transaction hash:\"",[195,2347,2348],{"class":205},", investor1SelfAuthTx.result.hash);\n",[195,2350,2352,2354,2356,2358,2361],{"class":197,"line":2351},76,[195,2353,293],{"class":205},[195,2355,296],{"class":242},[195,2357,246],{"class":205},[195,2359,2360],{"class":212},"\"Investor 2 self-authorization transaction hash:\"",[195,2362,2363],{"class":205},", investor2SelfAuthTx.result.hash);\n",[195,2365,2367,2369,2371,2373,2375],{"class":197,"line":2366},77,[195,2368,293],{"class":205},[195,2370,296],{"class":242},[195,2372,246],{"class":205},[195,2374,1896],{"class":212},[195,2376,252],{"class":205},[195,2378,2380],{"class":197,"line":2379},78,[195,2381,223],{"emptyLinePlaceholder":222},[195,2383,2385],{"class":197,"line":2384},79,[195,2386,2387],{"class":329},"    \u002F\u002F With requireAuth flag, the company (issuer) must authorize investors\n",[195,2389,2391],{"class":197,"line":2390},80,[195,2392,2393],{"class":329},"    \u002F\u002F Authorize investor 1\n",[195,2395,2397,2399,2401],{"class":197,"line":2396},81,[195,2398,2178],{"class":205},[195,2400,355],{"class":201},[195,2402,279],{"class":205},[195,2404,2406,2408,2410],{"class":197,"line":2405},82,[195,2407,598],{"class":205},[195,2409,1414],{"class":212},[195,2411,461],{"class":205},[195,2413,2415],{"class":197,"line":2414},83,[195,2416,2043],{"class":205},[195,2418,2420],{"class":197,"line":2419},84,[195,2421,2202],{"class":205},[195,2423,2425],{"class":197,"line":2424},85,[195,2426,2427],{"class":205},"      Holder: investor1Wallet.address\n",[195,2429,2431],{"class":197,"line":2430},86,[195,2432,489],{"class":205},[195,2434,2436],{"class":197,"line":2435},87,[195,2437,223],{"emptyLinePlaceholder":222},[195,2439,2441,2443,2445,2447,2450],{"class":197,"line":2440},88,[195,2442,293],{"class":205},[195,2444,296],{"class":242},[195,2446,246],{"class":205},[195,2448,2449],{"class":212},"\"Company authorizing investor 1 to receive shares...\"",[195,2451,252],{"class":205},[195,2453,2455,2457,2460,2462,2464,2466,2468],{"class":197,"line":2454},89,[195,2456,336],{"class":201},[195,2458,2459],{"class":232}," investor1AuthTx",[195,2461,236],{"class":201},[195,2463,358],{"class":201},[195,2465,312],{"class":205},[195,2467,672],{"class":242},[195,2469,2470],{"class":205},"(transactionBlob, {wallet: companyWallet });\n",[195,2472,2474],{"class":197,"line":2473},90,[195,2475,223],{"emptyLinePlaceholder":222},[195,2477,2479],{"class":197,"line":2478},91,[195,2480,2481],{"class":329},"    \u002F\u002F Authorize investor 2\n",[195,2483,2485,2487,2489],{"class":197,"line":2484},92,[195,2486,2178],{"class":205},[195,2488,355],{"class":201},[195,2490,279],{"class":205},[195,2492,2494,2496,2498],{"class":197,"line":2493},93,[195,2495,598],{"class":205},[195,2497,1414],{"class":212},[195,2499,461],{"class":205},[195,2501,2503],{"class":197,"line":2502},94,[195,2504,2043],{"class":205},[195,2506,2508],{"class":197,"line":2507},95,[195,2509,2202],{"class":205},[195,2511,2513],{"class":197,"line":2512},96,[195,2514,2515],{"class":205},"      Holder: investor2Wallet.address\n",[195,2517,2519],{"class":197,"line":2518},97,[195,2520,489],{"class":205},[195,2522,2524],{"class":197,"line":2523},98,[195,2525,223],{"emptyLinePlaceholder":222},[195,2527,2529,2531,2533,2535,2538],{"class":197,"line":2528},99,[195,2530,293],{"class":205},[195,2532,296],{"class":242},[195,2534,246],{"class":205},[195,2536,2537],{"class":212},"\"Company authorizing investor 2 to receive shares...\"",[195,2539,252],{"class":205},[195,2541,2543,2545,2548,2550,2552,2554,2556],{"class":197,"line":2542},100,[195,2544,336],{"class":201},[195,2546,2547],{"class":232}," investor2AuthTx",[195,2549,236],{"class":201},[195,2551,358],{"class":201},[195,2553,312],{"class":205},[195,2555,672],{"class":242},[195,2557,2470],{"class":205},[195,2559,2561],{"class":197,"line":2560},101,[195,2562,223],{"emptyLinePlaceholder":222},[195,2564,2566,2568,2570,2572,2575],{"class":197,"line":2565},102,[195,2567,293],{"class":205},[195,2569,296],{"class":242},[195,2571,246],{"class":205},[195,2573,2574],{"class":212},"\"Investor 1 issuer authorization transaction hash:\"",[195,2576,2577],{"class":205},", investor1AuthTx.result.hash);\n",[195,2579,2581,2583,2585,2587,2590],{"class":197,"line":2580},103,[195,2582,293],{"class":205},[195,2584,296],{"class":242},[195,2586,246],{"class":205},[195,2588,2589],{"class":212},"\"Investor 2 issuer authorization transaction hash:\"",[195,2591,2592],{"class":205},", investor2AuthTx.result.hash);\n",[195,2594,2596,2598,2600,2602,2604],{"class":197,"line":2595},104,[195,2597,293],{"class":205},[195,2599,296],{"class":242},[195,2601,246],{"class":205},[195,2603,1896],{"class":212},[195,2605,252],{"class":205},[195,2607,2609],{"class":197,"line":2608},105,[195,2610,223],{"emptyLinePlaceholder":222},[195,2612,2614],{"class":197,"line":2613},106,[195,2615,2616],{"class":329},"    \u002F\u002F Distribute shares to investor 1 (10,000 shares)\n",[195,2618,2620,2622,2624],{"class":197,"line":2619},107,[195,2621,2178],{"class":205},[195,2623,355],{"class":201},[195,2625,279],{"class":205},[195,2627,2629,2632,2634],{"class":197,"line":2628},108,[195,2630,2631],{"class":205},"        TransactionType: ",[195,2633,1498],{"class":212},[195,2635,461],{"class":205},[195,2637,2639],{"class":197,"line":2638},109,[195,2640,2641],{"class":205},"        Account: companyWallet.address,\n",[195,2643,2645],{"class":197,"line":2644},110,[195,2646,2647],{"class":205},"        Amount: {\n",[195,2649,2651,2654,2657],{"class":197,"line":2650},111,[195,2652,2653],{"class":212},"          \"mpt_issuance_id\"",[195,2655,2656],{"class":205},": MPTokenID, ",[195,2658,2659],{"class":329},"\u002F\u002F Company share token ID\n",[195,2661,2663,2666,2668,2671],{"class":197,"line":2662},112,[195,2664,2665],{"class":212},"          \"value\"",[195,2667,346],{"class":205},[195,2669,2670],{"class":212},"\"10000\"",[195,2672,2673],{"class":329}," \u002F\u002F 10,000 shares\n",[195,2675,2677],{"class":197,"line":2676},113,[195,2678,2679],{"class":205},"        },\n",[195,2681,2683],{"class":197,"line":2682},114,[195,2684,2685],{"class":205},"        Destination: investor1Wallet.address,\n",[195,2687,2689],{"class":197,"line":2688},115,[195,2690,2691],{"class":205},"    }; \n",[195,2693,2695],{"class":197,"line":2694},116,[195,2696,223],{"emptyLinePlaceholder":222},[195,2698,2700,2702,2704,2706,2709],{"class":197,"line":2699},117,[195,2701,293],{"class":205},[195,2703,296],{"class":242},[195,2705,246],{"class":205},[195,2707,2708],{"class":212},"\"Distributing 10,000 shares to investor 1...\"",[195,2710,252],{"class":205},[195,2712,2714,2716,2719,2721,2723,2725,2727],{"class":197,"line":2713},118,[195,2715,336],{"class":201},[195,2717,2718],{"class":232}," paymentTx",[195,2720,236],{"class":201},[195,2722,358],{"class":201},[195,2724,312],{"class":205},[195,2726,672],{"class":242},[195,2728,2470],{"class":205},[195,2730,2732],{"class":197,"line":2731},119,[195,2733,223],{"emptyLinePlaceholder":222},[195,2735,2737,2739,2741,2743,2746],{"class":197,"line":2736},120,[195,2738,293],{"class":205},[195,2740,296],{"class":242},[195,2742,246],{"class":205},[195,2744,2745],{"class":212},"\"Share distribution transaction hash: \"",[195,2747,2748],{"class":205},", paymentTx.result.hash);\n",[195,2750,2752,2754,2756,2758,2760],{"class":197,"line":2751},121,[195,2753,293],{"class":205},[195,2755,296],{"class":242},[195,2757,246],{"class":205},[195,2759,1896],{"class":212},[195,2761,252],{"class":205},[195,2763,2765],{"class":197,"line":2764},122,[195,2766,223],{"emptyLinePlaceholder":222},[195,2768,2770],{"class":197,"line":2769},123,[195,2771,2772],{"class":329},"    \u002F\u002F Demonstrate compliance: Lock investor 1's shares (e.g., during regulatory investigation)\n",[195,2774,2776,2778,2780],{"class":197,"line":2775},124,[195,2777,2178],{"class":205},[195,2779,355],{"class":201},[195,2781,279],{"class":205},[195,2783,2785,2787,2789],{"class":197,"line":2784},125,[195,2786,598],{"class":205},[195,2788,1296],{"class":212},[195,2790,461],{"class":205},[195,2792,2794],{"class":197,"line":2793},126,[195,2795,2043],{"class":205},[195,2797,2799],{"class":197,"line":2798},127,[195,2800,2202],{"class":205},[195,2802,2804],{"class":197,"line":2803},128,[195,2805,2806],{"class":205},"      Holder: investor1Wallet.address,\n",[195,2808,2810,2813,2815,2817],{"class":197,"line":2809},129,[195,2811,2812],{"class":205},"      Flags: ",[195,2814,1315],{"class":232},[195,2816,1318],{"class":205},[195,2818,2819],{"class":329},"\u002F\u002F Lock the shares\n",[195,2821,2823],{"class":197,"line":2822},130,[195,2824,489],{"class":205},[195,2826,2828],{"class":197,"line":2827},131,[195,2829,223],{"emptyLinePlaceholder":222},[195,2831,2833,2835,2837,2839,2842],{"class":197,"line":2832},132,[195,2834,293],{"class":205},[195,2836,296],{"class":242},[195,2838,246],{"class":205},[195,2840,2841],{"class":212},"\"Locking investor 1's shares for compliance review...\"",[195,2843,252],{"class":205},[195,2845,2847,2849,2852,2854,2856,2858,2860],{"class":197,"line":2846},133,[195,2848,336],{"class":201},[195,2850,2851],{"class":232}," lockTx",[195,2853,236],{"class":201},[195,2855,358],{"class":201},[195,2857,312],{"class":205},[195,2859,672],{"class":242},[195,2861,2470],{"class":205},[195,2863,2865],{"class":197,"line":2864},134,[195,2866,223],{"emptyLinePlaceholder":222},[195,2868,2870,2872,2874,2876,2879],{"class":197,"line":2869},135,[195,2871,293],{"class":205},[195,2873,296],{"class":242},[195,2875,246],{"class":205},[195,2877,2878],{"class":212},"\"Lock transaction hash: \"",[195,2880,2881],{"class":205},", lockTx.result.hash);\n",[195,2883,2885,2887,2889,2891,2894],{"class":197,"line":2884},136,[195,2886,293],{"class":205},[195,2888,296],{"class":242},[195,2890,246],{"class":205},[195,2892,2893],{"class":212},"\"TransactionResult: \"",[195,2895,2896],{"class":205},", lockTx.result.meta.TransactionResult);\n",[195,2898,2900,2902,2904,2906,2909],{"class":197,"line":2899},137,[195,2901,293],{"class":205},[195,2903,296],{"class":242},[195,2905,246],{"class":205},[195,2907,2908],{"class":212},"\"Investor 1 can no longer transfer their shares\"",[195,2910,252],{"class":205},[195,2912,2914,2916,2918,2920,2922],{"class":197,"line":2913},138,[195,2915,293],{"class":205},[195,2917,296],{"class":242},[195,2919,246],{"class":205},[195,2921,1896],{"class":212},[195,2923,252],{"class":205},[195,2925,2927],{"class":197,"line":2926},139,[195,2928,2929],{"class":205},"    \n",[195,2931,2933],{"class":197,"line":2932},140,[195,2934,2935],{"class":329},"    \u002F\u002F Attempt transfer while locked (this will fail)\n",[195,2937,2939,2941,2943],{"class":197,"line":2938},141,[195,2940,2178],{"class":205},[195,2942,355],{"class":201},[195,2944,279],{"class":205},[195,2946,2948,2950,2952],{"class":197,"line":2947},142,[195,2949,598],{"class":205},[195,2951,1498],{"class":212},[195,2953,461],{"class":205},[195,2955,2957],{"class":197,"line":2956},143,[195,2958,2196],{"class":205},[195,2960,2962],{"class":197,"line":2961},144,[195,2963,2964],{"class":205},"      Amount: {\n",[195,2966,2968,2970],{"class":197,"line":2967},145,[195,2969,1594],{"class":212},[195,2971,2972],{"class":205},": MPTokenID,\n",[195,2974,2976,2978,2980],{"class":197,"line":2975},146,[195,2977,1601],{"class":212},[195,2979,346],{"class":205},[195,2981,2982],{"class":212},"\"5000\"\n",[195,2984,2986],{"class":197,"line":2985},147,[195,2987,2988],{"class":205},"      },\n",[195,2990,2992],{"class":197,"line":2991},148,[195,2993,2994],{"class":205},"      Destination: investor2Wallet.address,\n",[195,2996,2998],{"class":197,"line":2997},149,[195,2999,489],{"class":205},[195,3001,3003],{"class":197,"line":3002},150,[195,3004,223],{"emptyLinePlaceholder":222},[195,3006,3008,3010,3012,3014,3017],{"class":197,"line":3007},151,[195,3009,293],{"class":205},[195,3011,296],{"class":242},[195,3013,246],{"class":205},[195,3015,3016],{"class":212},"\"Attempting to transfer locked shares to investor 2 (this will fail)...\"",[195,3018,252],{"class":205},[195,3020,3022,3024,3027,3029,3031,3033,3035],{"class":197,"line":3021},152,[195,3023,336],{"class":201},[195,3025,3026],{"class":232}," transferTx",[195,3028,236],{"class":201},[195,3030,358],{"class":201},[195,3032,312],{"class":205},[195,3034,672],{"class":242},[195,3036,2245],{"class":205},[195,3038,3040],{"class":197,"line":3039},153,[195,3041,223],{"emptyLinePlaceholder":222},[195,3043,3045,3047,3049,3051,3054],{"class":197,"line":3044},154,[195,3046,293],{"class":205},[195,3048,296],{"class":242},[195,3050,246],{"class":205},[195,3052,3053],{"class":212},"\"Transfer transaction hash: \"",[195,3055,3056],{"class":205},", transferTx.result.hash);\n",[195,3058,3060,3062,3064,3066,3068],{"class":197,"line":3059},155,[195,3061,293],{"class":205},[195,3063,296],{"class":242},[195,3065,246],{"class":205},[195,3067,2893],{"class":212},[195,3069,3070],{"class":205},", transferTx.result.meta.TransactionResult);\n",[195,3072,3074,3076,3078,3080,3083],{"class":197,"line":3073},156,[195,3075,293],{"class":205},[195,3077,296],{"class":242},[195,3079,246],{"class":205},[195,3081,3082],{"class":212},"\"Transfer failed as expected - shares are locked\"",[195,3084,252],{"class":205},[195,3086,3088,3090,3092,3094,3096],{"class":197,"line":3087},157,[195,3089,293],{"class":205},[195,3091,296],{"class":242},[195,3093,246],{"class":205},[195,3095,1896],{"class":212},[195,3097,252],{"class":205},[195,3099,3101],{"class":197,"line":3100},158,[195,3102,223],{"emptyLinePlaceholder":222},[195,3104,3106],{"class":197,"line":3105},159,[195,3107,3108],{"class":329},"    \u002F\u002F Company exercises clawback rights (e.g., for regulatory compliance)\n",[195,3110,3112,3114,3116],{"class":197,"line":3111},160,[195,3113,2178],{"class":205},[195,3115,355],{"class":201},[195,3117,279],{"class":205},[195,3119,3121,3123,3125],{"class":197,"line":3120},161,[195,3122,598],{"class":205},[195,3124,1577],{"class":212},[195,3126,461],{"class":205},[195,3128,3130],{"class":197,"line":3129},162,[195,3131,2043],{"class":205},[195,3133,3135],{"class":197,"line":3134},163,[195,3136,2964],{"class":205},[195,3138,3140,3142],{"class":197,"line":3139},164,[195,3141,1594],{"class":212},[195,3143,2972],{"class":205},[195,3145,3147,3149,3151],{"class":197,"line":3146},165,[195,3148,1601],{"class":212},[195,3150,346],{"class":205},[195,3152,1527],{"class":212},[195,3154,3156],{"class":197,"line":3155},166,[195,3157,2988],{"class":205},[195,3159,3161],{"class":197,"line":3160},167,[195,3162,2806],{"class":205},[195,3164,3166],{"class":197,"line":3165},168,[195,3167,489],{"class":205},[195,3169,3171],{"class":197,"line":3170},169,[195,3172,223],{"emptyLinePlaceholder":222},[195,3174,3176,3178,3180,3182,3185],{"class":197,"line":3175},170,[195,3177,293],{"class":205},[195,3179,296],{"class":242},[195,3181,246],{"class":205},[195,3183,3184],{"class":212},"\"Company exercising clawback rights on investor 1's shares...\"",[195,3186,252],{"class":205},[195,3188,3190,3192,3195,3197,3199,3201,3203],{"class":197,"line":3189},171,[195,3191,336],{"class":201},[195,3193,3194],{"class":232}," clawbackTx",[195,3196,236],{"class":201},[195,3198,358],{"class":201},[195,3200,312],{"class":205},[195,3202,672],{"class":242},[195,3204,2470],{"class":205},[195,3206,3208],{"class":197,"line":3207},172,[195,3209,223],{"emptyLinePlaceholder":222},[195,3211,3213,3215,3217,3219,3222],{"class":197,"line":3212},173,[195,3214,293],{"class":205},[195,3216,296],{"class":242},[195,3218,246],{"class":205},[195,3220,3221],{"class":212},"\"Clawback transaction hash: \"",[195,3223,3224],{"class":205},", clawbackTx.result.hash);\n",[195,3226,3228,3230,3232,3234,3237],{"class":197,"line":3227},174,[195,3229,293],{"class":205},[195,3231,296],{"class":242},[195,3233,246],{"class":205},[195,3235,3236],{"class":212},"\"All 10,000 shares have been returned to the company\"",[195,3238,252],{"class":205},[195,3240,3242,3244,3246,3248,3250],{"class":197,"line":3241},175,[195,3243,293],{"class":205},[195,3245,296],{"class":242},[195,3247,246],{"class":205},[195,3249,1896],{"class":212},[195,3251,252],{"class":205},[195,3253,3255],{"class":197,"line":3254},176,[195,3256,2929],{"class":205},[195,3258,3260],{"class":197,"line":3259},177,[195,3261,2929],{"class":205},[195,3263,3265,3267,3269,3271],{"class":197,"line":3264},178,[195,3266,309],{"class":201},[195,3268,312],{"class":205},[195,3270,748],{"class":242},[195,3272,318],{"class":205},[195,3274,3276,3278,3280,3282,3285],{"class":197,"line":3275},179,[195,3277,293],{"class":205},[195,3279,296],{"class":242},[195,3281,246],{"class":205},[195,3283,3284],{"class":212},"\"Company share token demonstration complete!\"",[195,3286,252],{"class":205},[195,3288,3290,3292,3294],{"class":197,"line":3289},180,[195,3291,770],{"class":205},[195,3293,773],{"class":201},[195,3295,776],{"class":205},[195,3297,3299,3301,3303,3305,3308],{"class":197,"line":3298},181,[195,3300,293],{"class":205},[195,3302,784],{"class":242},[195,3304,246],{"class":205},[195,3306,3307],{"class":212},"\"Error in share token operations:\"",[195,3309,792],{"class":205},[195,3311,3313],{"class":197,"line":3312},182,[195,3314,798],{"class":205},[195,3316,3318],{"class":197,"line":3317},183,[195,3319,804],{"class":205},[195,3321,3323],{"class":197,"line":3322},184,[195,3324,223],{"emptyLinePlaceholder":222},[195,3326,3328,3330],{"class":197,"line":3327},185,[195,3329,815],{"class":242},[195,3331,318],{"class":205},[19,3333,3335],{"id":3334},"resources","Resources",[24,3337,3338,3345],{},[27,3339,3340],{},[890,3341,3344],{"href":3342,"rel":3343},"https:\u002F\u002Fxrpl.org\u002Fdocs.html",[894],"XRP Ledger Documentation",[27,3346,3347],{},[890,3348,831],{"href":3349,"rel":3350},"https:\u002F\u002Fxrpl.org\u002Fdocs\u002Freferences\u002Fprotocol\u002Ftransactions\u002Ftypes\u002Fmptokenissuancecreate",[894],[3352,3353,3354],"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 .sCcAr, html code.shiki .sCcAr{--shiki-default:#91CBFF}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 .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":191,"searchDepth":219,"depth":219,"links":3356},[3357,3358,3361,3364,3365,3369,3373,3378,3381,3382],{"id":21,"depth":219,"text":22},{"id":54,"depth":219,"text":55,"children":3359},[3360],{"id":151,"depth":226,"text":152},{"id":175,"depth":219,"text":176,"children":3362},[3363],{"id":820,"depth":226,"text":821},{"id":1140,"depth":219,"text":1141},{"id":1158,"depth":219,"text":1159,"children":3366},[3367,3368],{"id":1179,"depth":226,"text":1180},{"id":1194,"depth":226,"text":1195},{"id":1237,"depth":219,"text":1238,"children":3370},[3371,3372],{"id":1261,"depth":226,"text":1180},{"id":1274,"depth":226,"text":1195},{"id":1336,"depth":219,"text":1337,"children":3374},[3375,3376,3377],{"id":1346,"depth":226,"text":1347},{"id":1376,"depth":226,"text":1180},{"id":1392,"depth":226,"text":1195},{"id":1447,"depth":219,"text":1448,"children":3379},[3380],{"id":1454,"depth":226,"text":1455},{"id":1622,"depth":219,"text":1623},{"id":3334,"depth":219,"text":3335},"Learn how to create and manage Multi-Purpose Tokens (MPT) on the XRP Ledger.","md",{},"\u002Fdocs\u002Fxrpl-basics\u002Fmptoken",{"title":5,"description":3383},"xrpl-trainings\u002Fxrpl-basics\u002Fmptoken.md","docs\u002Fxrpl-basics\u002Fmptoken","aeURCNt7cwj5o4tboMcy8RlMqMBBUB8ZVodYfAK7nWA",[],[3393,3432,3446,3466,3489,3882],{"title":3394,"path":3395,"children":3396,"description":3431,"pages":394},"XRPL Basics","\u002Fdocs\u002Fxrpl-basics",[3397,3400,3403,3406,3409,3412,3415,3416,3419,3422,3425,3428],{"title":3398,"path":3399},"Getting Started","\u002Fdocs\u002Fxrpl-basics\u002Fgetting-started",{"title":3401,"path":3402},"Trustline","\u002Fdocs\u002Fxrpl-basics\u002Ftrustline",{"title":3404,"path":3405},"Payments","\u002Fdocs\u002Fxrpl-basics\u002Fpayments",{"title":3407,"path":3408},"Reading and subscribing to Transactions","\u002Fdocs\u002Fxrpl-basics\u002Freading-and-writing-memos",{"title":3410,"path":3411},"Writing and reading memos","\u002Fdocs\u002Fxrpl-basics\u002Fwriting-and-reading-memos",{"title":3413,"path":3414},"Non Fungible Tokens","\u002Fdocs\u002Fxrpl-basics\u002Fnon-fungible-tokens",{"title":5,"path":3386},{"title":3417,"path":3418},"PathFinding","\u002Fdocs\u002Fxrpl-basics\u002Fpath-finding",{"title":3420,"path":3421},"Escrow","\u002Fdocs\u002Fxrpl-basics\u002Fescrow",{"title":3423,"path":3424},"Price Oracles","\u002Fdocs\u002Fxrpl-basics\u002Fprice-oracles",{"title":3426,"path":3427},"Tickets","\u002Fdocs\u002Fxrpl-basics\u002Ftickets",{"title":3429,"path":3430},"Multi-Signature","\u002Fdocs\u002Fxrpl-basics\u002Fmulti-signature","In this section we will cover some of the primary functionality of the XRPL ledger.",{"title":3433,"path":3434,"children":3435,"description":3445,"pages":255},"Token Issuance and Liquidity","\u002Fdocs\u002Ftoken-issuance-and-liquidity",[3436,3439,3442],{"title":3437,"path":3438},"Creating Accounts and Setup","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fcreating-accounts",{"title":3440,"path":3441},"Issuing Tokens","\u002Fdocs\u002Ftoken-issuance-and-liquidity\u002Fissuing-tokens",{"title":3443,"path":3444},"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":3447,"path":3448,"children":3449,"description":3465,"pages":282},"Cyphered Chat on XRPL","\u002Fdocs\u002Fcyphered-chat-on-xrpl",[3450,3453,3456,3459,3462],{"title":3451,"path":3452},"Set up","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up",{"title":3454,"path":3455},"Set up Keys","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-keys",{"title":3457,"path":3458},"Cypher the message","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fcypher-the-message",{"title":3460,"path":3461},"Set up the memo & send the tx","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fset-up-the-memo-and-send-the-tx",{"title":3463,"path":3464},"Get the message and decypher it","\u002Fdocs\u002Fcyphered-chat-on-xrpl\u002Fget-the-message-and-decypher-it","Send encrypted messages over XRPL",{"title":3467,"path":3468,"children":3469,"description":3488,"pages":290},"EVM Sidechain","\u002Fdocs\u002Fevm-sidechain",[3470,3473,3476,3479,3482,3485],{"title":3471,"path":3472},"Connecting Metamask","\u002Fdocs\u002Fevm-sidechain\u002Fconnecting-metamask",{"title":3474,"path":3475},"Set up a Foundry project","\u002Fdocs\u002Fevm-sidechain\u002Fset-up-an-evm-project",{"title":3477,"path":3478},"Bridging Assets","\u002Fdocs\u002Fevm-sidechain\u002Fbridging-assets",{"title":3480,"path":3481},"Remix","\u002Fdocs\u002Fevm-sidechain\u002Fremix",{"title":3483,"path":3484},"Banking App","\u002Fdocs\u002Fevm-sidechain\u002Fbanking-app",{"title":3486,"path":3487},"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":3490,"path":3491,"children":3492,"description":3881,"pages":2793},"Core Dev Bootcamp","\u002Fdocs\u002Fcore-dev-bootcamp",[3493,3513,3556,3606,3637,3694,3725,3741,3781,3815,3840,3856],{"title":3494,"path":3495,"children":3496},"Rippled I – Compilation, Configuration, and Launch","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01",[3497,3500,3503,3506],{"title":3498,"path":3499},"Environment & Build Toolchain","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fenvironment-build-toolchain",{"title":3501,"path":3502},"Compilation Process & Generating Binary","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fcompilation-process-generating-binary",{"title":3504,"path":3505},"Local Development & Testing","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Flocal-development-testing",{"title":3507,"path":3508,"children":3509},"Homeworks","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks",[3510],{"title":3511,"path":3512},"Homework 1: Rippled Node Setup and Mainnet Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule01\u002Fhomeworks\u002Fhomework1",{"title":3514,"path":3515,"children":3516},"Rippled II: Deep Dive into the Protocol and Codebase","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02",[3517,3520,3523,3526,3529,3532,3535,3538,3541],{"title":3518,"path":3519},"Protocols: Communication and Interoperability","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fprotocols-communication-and-interoperability",{"title":3521,"path":3522},"Transactors: Transaction Processing Framework","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransactors-transaction-processing-framework",{"title":3524,"path":3525},"Application Layer: Central Orchestration and Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fapplication-layer-central-orchestration-and-coordination",{"title":3527,"path":3528},"Consensus Engine: XRP Ledger Consensus Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fconsensus-engine-xrp-ledger-consensus-protocol",{"title":3530,"path":3531},"Overlay Network: Peer-to-Peer Networking Layer","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Foverlay-network-peer-to-peer-networking-layer",{"title":3533,"path":3534},"Transaction Lifecycle: Complete Transaction Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Ftransaction-lifecycle-complete-transaction-journey",{"title":3536,"path":3537},"Codebase Navigation: Efficiently Navigating the Rippled Source","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fcodebase-navigation-efficiently-navigating-the-rippled-source",{"title":3539,"path":3540},"Debugging Tools: Development and Debugging Techniques","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fdebugging-tools-development-and-debugging-techniques",{"title":3507,"path":3542,"children":3543},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks",[3544,3547,3550,3553],{"title":3545,"path":3546},"Homework 1: Transaction Flow Analysis","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework1",{"title":3548,"path":3549},"Homework 2: Transactor Code Exploration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework2",{"title":3551,"path":3552},"Homework 3: Logging and Debugging","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework3",{"title":3554,"path":3555},"Homework 4: Architecture Diagram","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule02\u002Fhomeworks\u002Fhomework4",{"title":3557,"path":3558,"children":3559},"Anatomy of Rippled: SHAMap and NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03",[3560,3563,3566,3569,3572,3575,3578,3581,3584,3587,3590,3593],{"title":3561,"path":3562},"Foundational Concepts","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstate-management-challenges",{"title":3564,"path":3565},"Trees, Hashing, and Cryptographic Commitments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Ftree-fundamentals",{"title":3567,"path":3568},"SHAMap Architecture and Node Hierarchy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-architecture",{"title":3570,"path":3571},"Navigation, Hashing, and Merkle Properties","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-navigation-hashing",{"title":3573,"path":3574},"Traversal, Iteration, and Synchronization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fshamap-synchronization",{"title":3576,"path":3577},"The NodeStore","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fnodestore-architecture",{"title":3579,"path":3580},"Storage Abstraction and Backend Implementations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fstorage-backends",{"title":3582,"path":3583},"Cache Layer and Performance Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fcache-layer",{"title":3585,"path":3586},"Database Operations and Lifecycle Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fdatabase-operations",{"title":3588,"path":3589},"Cryptographic Proofs and State Reconstruction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fproofs-state-reconstruction",{"title":3591,"path":3592},"Resource Management and Performance Characteristics","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fresource-management",{"title":3594,"path":3595,"children":3596},"Appendices","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices",[3597,3600,3603],{"title":3598,"path":3599},"Appendix : Codebase Navigation Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fnavigation",{"title":3601,"path":3602},"Appendix : Configuration Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fconfiguration",{"title":3604,"path":3605},"Appendix : Debugging and Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03\u002Fappendices\u002Fdebugging",{"title":3607,"path":3608,"children":3609},"Transactors: Understanding the Lifecycle of a Transaction","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis",[3610,3613,3616,3619,3622,3625,3628,3631,3634],{"title":3611,"path":3612},"Transactor Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ftransactor-architecture",{"title":3614,"path":3615},"Processing Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fprocessing-pipeline",{"title":3617,"path":3618},"Fee and Sequence Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Ffee-sequence-handling",{"title":3620,"path":3621},"State Modification Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fstate-modification",{"title":3623,"path":3624},"TER Result Codes","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fter-result-codes",{"title":3626,"path":3627},"Case Study: CheckCreate Transactor","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fcase-study-checkcreate",{"title":3629,"path":3630},"Homework 1: Trace a Transaction Through All Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework1",{"title":3632,"path":3633},"Homework 2: Implement a Custom Validation Check","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework2",{"title":3635,"path":3636},"Homework 3: Analyze TER Code Paths","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule03bis\u002Fhomeworks\u002Fhomework3",{"title":3638,"path":3639,"children":3640},"Cryptography I: Blockchain Security and Cryptographic Foundations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04",[3641,3644,3647,3650,3653,3656,3659,3662,3665,3668,3671,3674,3677,3688],{"title":3642,"path":3643},"The Four Pillars of Security","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-four-pillars-of-security",{"title":3645,"path":3646},"The Lifecycle of a Cryptographic Key","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fthe-lifecycle-of-a-cryptographic-key",{"title":3648,"path":3649},"Random Number Generation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation",{"title":3651,"path":3652},"Random Number Generation & Entropy","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Frandom-number-generation-and-entropy",{"title":3654,"path":3655},"Key Generation Pipeline","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fkey-generation-pipeline",{"title":3657,"path":3658},"Transaction Signing & Verification","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Ftransaction-signing-and-verification",{"title":3660,"path":3661},"Hash Functions in XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhash-functions-in-xrpl",{"title":3663,"path":3664},"Base58Check Encoding","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fbase58check-encoding",{"title":3666,"path":3667},"Peer Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fpeer-handshake-protocol",{"title":3669,"path":3670},"Secure Memory Handling","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fsecure-memory-handling",{"title":3672,"path":3673},"Common Cryptographic Pitfalls","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fcommon-cryptographic-pitfalls",{"title":3675,"path":3676},"Performance & Optimization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fperformance-and-optimization",{"title":3594,"path":3678,"children":3679},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices",[3680,3682,3685],{"title":3598,"path":3681},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fcodebase-navigation-guide",{"title":3683,"path":3684},"Appendix : Debugging & Development Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Fdebugging-and-development-tools",{"title":3686,"path":3687},"Appendix : RFCs and Standards Reference","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fappendices\u002Frfcs-and-standards-reference",{"title":3507,"path":3689,"children":3690},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks",[3691],{"title":3692,"path":3693},"Homework 1: Signature Verification Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule04\u002Fhomeworks\u002Fhomework1",{"title":3695,"path":3696,"children":3697},"Cryptography II: Protocol Extensions and Quantum Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05",[3698,3701,3704,3707,3710,3713,3719],{"title":3699,"path":3700},"Overlay Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Foverlay-architecture",{"title":3702,"path":3703},"Connection Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fconnection-lifecycle",{"title":3705,"path":3706},"Handshake Protocol","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhandshake-protocol",{"title":3708,"path":3709},"Message Relaying","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fmessage-relaying",{"title":3711,"path":3712},"Peer Discovery","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fpeer-discovery",{"title":3594,"path":3714,"children":3715},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices",[3716],{"title":3717,"path":3718},"XLS-??d Quantum-Resistant Signatures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fappendices\u002Fxls-d",{"title":3507,"path":3720,"children":3721},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks",[3722],{"title":3723,"path":3724},"Homework 1: Building Quantum-Resistant Signatures for XRPL","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule05\u002Fhomeworks\u002Fhomework1",{"title":3726,"path":3727,"children":3728},"Communication I: Understanding XRPL(d) RPC Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06",[3729,3732,3735,3738],{"title":3730,"path":3731},"RPC Handler Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frpc-handler-architecture",{"title":3733,"path":3734},"Request and Response Flow","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Frequest-response-flow",{"title":3736,"path":3737},"Authentication and Authorization","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Fauthentication-authorization",{"title":3739,"path":3740},"Error Handling and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule06\u002Ferror-handling-validation",{"title":3742,"path":3743,"children":3744},"Communication II: Building and Integrating Custom RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07",[3745,3748,3751,3754,3757,3769],{"title":3746,"path":3747},"Implementing Custom Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fimplementing-custom-handlers",{"title":3749,"path":3750},"Testing RPC Handlers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Ftesting-rpc-handlers",{"title":3752,"path":3753},"Advanced Features","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fadvanced-features",{"title":3755,"path":3756},"Best Practices and Patterns","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fbest-practices-patterns",{"title":3594,"path":3758,"children":3759},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices",[3760,3763,3766],{"title":3761,"path":3762},"Appendix: Handler Examples","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhandler-examples",{"title":3764,"path":3765},"Appendix: Helper Functions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fhelper-functions",{"title":3767,"path":3768},"Appendix: Debugging Guide","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fappendices\u002Fdebugging-guide",{"title":3507,"path":3770,"children":3771},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks",[3772,3775,3778],{"title":3773,"path":3774},"Homework 1: Building a Custom RPC Handler","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhomework1",{"title":3776,"path":3777},"Hints","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fhints",{"title":3779,"path":3780},"Snippets","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule07\u002Fhomeworks\u002Fsnippets",{"title":3782,"path":3783,"children":3784},"Consensus I: Node, Consensus, and Ledger Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08",[3785,3788,3791,3794,3797,3800,3803,3806],{"title":3786,"path":3787},"Consensus Fundamentals","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-fundamentals",{"title":3789,"path":3790},"Consensus Modes and Phases","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-modes-phases",{"title":3792,"path":3793},"Consensus Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fconsensus-lifecycle",{"title":3795,"path":3796},"Ledger Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-architecture",{"title":3798,"path":3799},"Ledger Data Structures","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-data-structures",{"title":3801,"path":3802},"Ledger Acquisition and Validation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fledger-acquisition-validation",{"title":3804,"path":3805},"RPC and Peer Transaction Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Frpc-peer-tx-lifecycle",{"title":3507,"path":3807,"children":3808},"\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks",[3809,3812],{"title":3810,"path":3811},"Homework 1: Transaction Consensus Journey","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework1",{"title":3813,"path":3814},"Homework 2: Consensus Dispute Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule08\u002Fhomeworks\u002Fhomework2",{"title":3816,"path":3817,"children":3818},"Consensus II: UNLs and Ledger Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09",[3819,3822,3825,3828,3831,3834,3837],{"title":3820,"path":3821},"Transaction Ordering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Ftx-ordering",{"title":3823,"path":3824},"Consensus Validations","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-validations",{"title":3826,"path":3827},"Amendments","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Famendments",{"title":3829,"path":3830},"UNL Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Funl",{"title":3832,"path":3833},"Consensus Peers","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fconsensus-peers",{"title":3835,"path":3836},"Homework 1: Validator Keys Setup and Management","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework1",{"title":3838,"path":3839},"Homework 2: Negative UNL Engineering","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09\u002Fhomeworks\u002Fhomework2",{"title":3841,"path":3842,"children":3843},"AMM: Automated Market Maker","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis",[3844,3847,3850,3853],{"title":3845,"path":3846},"AMM Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-architecture",{"title":3848,"path":3849},"AMM Transactions","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-transactions",{"title":3851,"path":3852},"AMM Logic","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-logic",{"title":3854,"path":3855},"Pathfinding Integration","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule09bis\u002Famm-pathfinding",{"title":3857,"path":3858,"children":3859},"Building Amendments: Lifecycle and Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10",[3860,3863,3866,3869,3872,3875,3878],{"title":3861,"path":3862},"Amendment Architecture","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-architecture",{"title":3864,"path":3865},"Amendment Lifecycle","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-lifecycle",{"title":3867,"path":3868},"Voting and Activation","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fvoting-and-activation",{"title":3870,"path":3871},"Core Protocol Impact","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fprotocol-impact",{"title":3873,"path":3874},"Network Coordination","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Fnetwork-coordination",{"title":3876,"path":3877},"Monitoring and Tools","\u002Fdocs\u002Fcore-dev-bootcamp\u002Fmodule10\u002Famendment-monitoring",{"title":3879,"path":3880},"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.",{"title":3883,"path":3884,"children":3885,"description":3892,"pages":226},"Tools","\u002Fdocs\u002Ftools",[3886,3889],{"title":3887,"path":3888},"Xaman Setup","\u002Fdocs\u002Ftools\u002Fxaman-setup",{"title":3890,"path":3891},"Metamask Setup","\u002Fdocs\u002Ftools\u002Fmetamask-setup","In this section you will find instructions on how to setup wallets and tools",1796220769703]