A complement to Flare Smart Accounts · Live on Coston2 against XRPL Testnet
Sign once on XRPL.
Your Flare account executes.
memokit executes XRPL-originated calls on assets a Flare account already holds. One XRPL Payment carries either a 42-byte commitment to what the account should do, or the instruction itself, inline; the Flare Data Connector attests the payment, and the account runs exactly the calls you committed to. memokit never mints FXRP to do it, there is no destination tag, and no wallet registration.
From the XRPL payment's ledger close to the executed call on Flare: 92–207 s, median 144 s, on the twenty live runs whose first FDC round served the proof; one more took 392 s because its first round went unserved and the executor requested again. The largest part is the FDC leg, from the attestation request to Flare publishing that voting round's Merkle root, at 46–86% of the total, median 73%. That leg is FDC's cadence, not this code. When a cash-out's XRP arrives depends on the FAssets agent: across the five live cash-outs, 140 s to 18.2 min end to end, from the XRPL payment's ledger close to the payout's ledger close, and 9 s to 16.2 min from the execute's block.
See this instruction on the status page →The gap
Without minting, XRPL users get a fixed menu. memokit opens the rest.
Flare Smart Accounts already reaches arbitrary calls through memo opcodes 0xFF and 0xFE, but only as a side effect of direct minting: every such instruction mints FXRP and inherits FAssets' direct-minting limits. Without a mint it offers a fixed menu of instructions: transfer FXRP, redeem it, and deposit into or withdraw from registered vaults. That coupling is the gap memokit fills.
Flare Smart Accounts · the direct-mint rail
- Without minting, a fixed set of actions: transfer FXRP, redeem it, and deposit into or withdraw from its registered vaults.
- Any other contract call is reachable only through direct minting. The instruction mints new FXRP and inherits direct minting's limits.
- The executor is paid out of the freshly minted fAsset.
Verified from deployed code on 2026-09-30.
memokit · the existing-balance rail
- Arbitrary calls on FXRP the account already holds, with no mint: a swap, a payout to five addresses, a borrow, a deposit into a vault nobody registered. memokit never mints FXRP; on the vault-deposit and payout runs total supply was identical across the execute block.
- Routed by the receiving XRPL address. The account address is derived from your XRPL address, so there is nothing to register.
- The executor is paid from what the account holds, in the asset being moved.
Verified from the source and live state of Flare's deployed MasterAccountController on 2026-09-30, with live transactions to match: in full on Flare mainnet, and on Coston2 for fifteen of its eighteen facets; the other three have no verified source there. A diamond can be cut at any time, so this holds as of that date. The evidence, in the claim ledger
Same 10-byte memo header, one byte different. The two rails now connect: FXRP held in a Flare Smart Accounts account can be imported into a memokit account from XRPL alone, and a memokit account can cash out to XRP on XRPL.
How it works
Sign on XRPL. FDC proves the payment. The account executes.
About two and a half minutes from XRPL payment to executed call: 92–207 s, median 144 s, from the XRPL payment's ledger close to the execute, on the twenty live runs whose first FDC round served the proof, plus one 392 s run where the executor had to request again. The FDC leg is the largest part, 46–86% of the total, median 73%.
Your wallet sends one XRPL Payment to a memokit receiving address. Its memo is either 42 bytes, Flare's 10-byte header with opcode 0xFC then keccak256 of the instruction, or the instruction itself, inline, under opcode 0xFD. With a commitment, the instruction (sender, nonce, fee token, fee amount, the calls and their post-conditions) travels off-chain to whoever submits.
The attestation request and its message integrity code are built from the XRPL ledger record alone, submitted to FdcHub, and the public Data Availability Layer is polled for the Merkle proof. Flare's verifier server is not on the path and no API key is needed. This is the latency: waiting for a voting round of about 90 s to close.
Anyone can call execute with the proof and the instruction; an open executor does it for the fee the instruction committed to, so you need no Flare key and no script. The controller checks the proof, the source address, that the memo matches the payload, and the nonce. Your PersonalAccount, at an address derived from your XRPL address, runs the calls in order. The executor's fee is paid last, in the asset the instruction moved, only if every call succeeded.
Across the twenty live runs whose first FDC round served the proof, from the XRPL payment's ledger close to the executed call on Flare: 92–207 s, median 144 s. The largest part is the FDC leg, from the attestation request to Flare publishing that voting round's Merkle root, at 46–86% of the total, median 73%. The rest is seeing the payment and requesting (3–23 s), then fetching the proof and submitting (11–56 s); the open executor usually takes longer there because it polls rather than waits. One more run took 392 s: its first round finalised without the proof ever being served, and the executor requested again in a later round. Every figure is from chain timestamps. Nothing here can shorten the FDC leg, so an instruction that depends on a price commits to a deadline inside its own hashed calldata. The SDK's default deadline is 900 s.
Live proof · Coston2 + XRPL Testnet
Four attested traces. Every link resolves.
Each run was executed against live infrastructure and recorded in the repository under fixtures/measurements/. The explorer links are the primary evidence; CLAIMS.md is the ledger of every claim and the evidence behind it.
Look up any instruction on the status page →Phase 1
A vault deposit, no mint
5.0 FTestXRP into a live Coston2 ERC-4626 vault, out of a balance the account already held.
- XRPL Payment
- 11A56DB8…53A6
- requestAttestation
- 0xded36a56…272e
- execute
- 0x69f5259f…1978
- result
- 10.0 → 5.0 FTestXRP · 0 → 4.994505 TESTearnXRP shares
- latency
- 152 s
Phase 2
One payment, five transfers
Five FTestXRP transfers to five Flare addresses, and 0.1 FTestXRP to the executor, from one XRPL Payment.
- Phase 2 diamond (retired)
- 0x98882776…9E36
- account
- 0x8F1eD3f5…43b1
- XRPL Payment
- 3CBD8EC9…48C1
- requestAttestation
- 0x220592a4…0102
- execute
- 0x2f6faf66…64ad
- result
- +1.2, +1.1, +1.0, +0.9, +0.7 to five recipients · +0.1 to the executor
- latency
- 118 s, one execute attempt
Phase 3
Cash out to XRPL
One XRPL payment redeemed a lot of FXRP through FAssets and XRP arrived back on XRPL Testnet. Start and end on the XRP Ledger, no EVM key at any point.
- memokit diamond
- 0x0E762EAe…0714
- account
- 0x9dD656e6…d741
- XRPL Payment in
- A92E0E7C…3E47
- execute
- 0x4527b740…5022
- XRPL payout
- F7858109…9ECD
- result
- one 10.0 FXRP lot burned on Flare (account 19.1 → 9.1) · 9.948010 XRP delivered on XRPL
- payout time
- depends on the FAssets agent. Across the five live cash-outs, end to end from the XRPL payment's ledger close to the payout's ledger close: 140 s to 18.2 min (141 s in this run). From the execute's block to the payout's ledger close: 9 s to 16.2 min.
Phase 4
A QR, and nobody at the keyboard
An instruction signed from a QR and executed by the open executor service, with no human input after the signature.
- XRPL Payment
- 62A583F3…FD4A
- requestAttestation
- 0x4ba4816f…2865
- execute
- 0x1eefa273…60b4
- deployed service
- 0xb2868ed4…9f4c
- result
- 0.5 FTestXRP transferred · 0.2 FTestXRP executor fee paid out of the same balance
- latency
- 167 s from XRPL ledger close; 165 s through the deployed service
The current memokit diamond is 0x0E762EAe…0714. Phase 1 and Phase 2 ran on earlier diamonds: a payload-format change needs a redeploy, and a redeploy moves every account address.
Status
What works today, and how each result was obtained.
- Liveran on Coston2 and XRPL Testnet with real FDC attestation; a transaction backs it
- ForkFoundry fork of Flare mainnet against the real deployed contracts; FDC verification simulated
- Testedunit or integration suite, against contracts deployed in-test
- Opennot done, or not verified
ERC-4626 vault deposit
LivePhase 1. 5.0 FTestXRP into TESTearnXRP, 152 s.
Multi-recipient payout
LivePhase 2. Five transfers from one payment, 118 s.
Executor fee in the moved asset
LiveThe Phase 2 payout and the Phase 4 runs paid the executor in FTestXRP, out of the balance the instruction moved. Fee token and amount are inside the committed payload.
Import from Flare Smart Accounts
LivePhase 3. FXRP moved from an FSA account to a memokit account from XRPL alone, in four runs. Across the first two: FSA account 10.0 → 5.0 → 1.0, memokit account 10.1 → 15.1 → 19.1 FTestXRP. Runs 3 and 4 reused an identical attestation already on chain instead of paying for another.
Cash-out to XRPL
LiveOne XRPL payment redeemed a 10.0 FXRP lot and XRP arrived on XRPL, in five live cash-outs. When the XRP arrives depends on the FAssets agent. Across the five: 140 s to 18.2 min end to end, from the XRPL payment's ledger close to the payout's ledger close; 9 s to 16.2 min from the execute's block to the payout's ledger close. Against the deep mainnet redemption queue: fork only.
Deployed open executor
LivePhase 4. Public, one machine with one key. It executed a QR-built instruction with no human input after the signature. Race handling is built and tested; every live run has had one executor.
Post-conditions
LiveShipped; exercised live nine times, as five dust floors on cash-outs and four share floors on vault deposits. None has caught a live failure. Otherwise fork and unit tested.
FTSOv2 rate bound
ForkTested against the real oracle on a mainnet fork: a 31% pool move that a signed floor accepted is refused at a 1% oracle bound.
Lending on Kinetic
ForkFXRP is not a Kinetic market. The fork instruction supplies sFLR and borrows USDT0, and ends with a balance assertion.
Swap on SparkDEX V3
ForkFXRP → USDT0 through the 0.05% pool. When the price moves past the committed minimum the whole instruction reverts and nothing is consumed.
Rescue opcodes 0xE0, 0xE1, 0xE2
ForkUnit tested, and exercised on the SparkDEX fork after a real price-driven failure.
Rescue opcode 0xFB
TestedA race-free rescue opcode, covered by tests. Never run live.
Xaman signing
OpenThe CLI builds the unsigned transaction; Xaman signing is built but not yet live-tested.
Mainnet deployment
OpenNo mainnet deployment and no mainnet transaction.
SDK on npm
OpenNot yet published; the name is provisional.
Self-hosted DA Layer
OpenThe public DA Layer allows about 20 requests a minute; a self-hosted one is the obvious next step.
SDK
Five calls from XRPL payment to executed instruction.
sdk/ is a TypeScript library over ethers v6. Build the instruction and its memo, send the payment, request attestation, wait for the proof, submit. A full vault deposit is 29 lines.
Read the full quickstart in the memokit README →1const { payload, memo } = prepareInstruction({ sender: account, nonce, feeToken, feeAmount, calls,
2 postConditions: [erc20DeltaAtLeast(token, to, min)] });
3const sent = await sendMemoPayment({ network: COSTON2, wallet, destination, drops: "1000000", memo });
4const request = await requestAttestation({ signer, xrplHash: sent.hash, network: COSTON2 });
5const { proof } = await waitForProof({ request, network: COSTON2 });
6await submit({ signer, controller, proof, payload });| Step | Call | Notes |
|---|---|---|
| build | prepareInstruction(instruction) | Returns { payload, commitment, memo }. Keep payload; a commit memo carries only its hash. |
| send | sendMemoPayment from @memokit/sdk/xrpl | One memo, no destination tag: both enforced. |
| attest | requestAttestation, waitForProof | Builds the request and its MIC from the ledger record. Never calls Flare's verifier. Polls the DA Layer; no API key. |
| execute | submit({ signer, controller, proof, payload }) | Callable by anyone. The caller earns the instruction's fee and cannot change what runs. |
Wire format
Header byte-identical to Flare's, so an integrated wallet changes one byte. The instruction itself is versioned: payload version byte 0x02, then abi.encode(sender, nonce, feeToken, feeAmount, Call[], PostCondition[]).
| Opcode | Payload | Length |
|---|---|---|
| 0xFD | the instruction, inline | 10 + N |
| 0xFC | keccak256(payload), payload supplied out of band | 42 |
| 0xFB | newNonce: advance the nonce to at least N | 42 |
| 0xF8–0xFA | reserved | — |
| 0xE0 | targetTxId: retire a stuck transaction id | 42 |
| 0xE1 | newNonce: advance past a stuck instruction (exact) | 42 |
| 0xE2 | targetTxId + newFee: override the executor fee amount | 50 |
Safety machinery, kept from Flare
Flare's safety machinery, kept.
memokit keeps Flare's controls rather than shedding them, and adds what protects the instruction itself: post-conditions, an oracle bound, simulation before submission, and rescue. Every claim on this page has a row in the claim ledger, with the evidence behind it.
Read the claim ledgerPause, registry, timelock
A pause facet, an owner-managed registry of receiving XRPL addresses, and a timelock on economic parameters, with the same timelocked/immediate split Flare uses.
Post-conditions
PostCondition[] states what the instruction was for, separately from how it was done, and is covered by the same hash as the calls, so no executor can weaken it. Evaluated after the calls and before the executor fee; a failure reverts everything, so the same proof works again once the cause is gone. Every condition is a floor. Exercised live nine times, as five dust floors on cash-outs and four share floors on vault deposits.
FTSOv2 rate bound
Bounds a realised swap rate against the oracle at execution time. Tested against the real oracle on a mainnet fork. It does not catch genuine market movement during the wait for an attestation; that is what the deadline is for. Use both.
Rescue
0xE0 retires a transaction id. 0xE1 advances past a stuck nonce. 0xE2 overrides the executor fee amount. 0xFB is a race-free rescue opcode, covered by tests and never run live. A stalled instruction has not executed, so nothing moved.
Fee only on success
The executor fee is inside the committed payload and paid after every call succeeds, in the same transaction. A failing call unwinds it. The open executor simulates every execute before sending it.
Collision-checked against Flare
The facets are meant to be cuttable into Flare's own diamond, so every external selector is diffed against a pinned snapshot of Flare's live MasterAccountController on Coston2 and mainnet.