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.

Latest attested run · cash-out through the deployed executorCoston2 + XRPL Testnet
XRPLXRPL
XRPL
XRPL Payment in
4D9F2AD9…58EF
built by sign --cash-out; signed by a stand-in, not a wallet
FDCFLARE
FLARE
requestAttestation
0x69974eb4…0009
FDC voting round 1,463,907
execMEMOKIT
MEMOKIT
execute
0x5da0d80a…aeae
from the deployed executor's key; one 10.0 FXRP lot redeemed
XRPLXRPL
XRPL
XRPL payout
0ECB1546…821C
9.948010 XRP, 16 min after the execute

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

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

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%.

01Sign on XRPL

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.

MEMOKIT XRPL Testnet · your wallet
ONE XRPL PAYMENT · ONE COMMIT MEMO · 42 BYTES · NO DESTINATION TAGXRPL0xFC · 01 · 00…header · 10 bytesMEMOKITkeccak256(payload)commitment · 32 bytesMEMOKIT0x02 · abi.encode(…, Call[], PostCondition[])the payload travels off-chain to whoever submits
02FDC proves the payment

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.

FLARE Flare Data Connector · Coston2
XRPLvalidated ledgerthe PaymentMEMOKITrequest + MICbuilt offline by the SDKFLAREFdcHubrequestAttestationFLAREvoting round · ~90 sFDC providersFLAREDA LayerMerkle proof · no API keyFlare's verifier server is not on the path
03The account executes

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.

MEMOKIT memokit diamond · Coston2
XRPLanyoneexecute(proof, payload)MEMOKITMemoControllerproof · source · hash · nonceFLAREFdcVerificationMerkle checkMEMOKITPersonalAccountCall[] in order · derived from your XRPL addressXRPLvault · DEXtargetsfee paid last, in the moved asset, only if every call succeeded
~150 s
XRPL payment → executed call

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
Checked: FTestXRP totalSupply is identical in the block before and the block containing execute. The share count is not 1:1 with the deposit because the vault has a real exchange rate.

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
Checked: totalSupply unchanged across the execute block; no Transfer from the zero address in the receipt.

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.
Checked: A cash-out is not “no mint”. Supply fell 9.998 FTestXRP across the execute block on all five live cash-outs: 10.0 burned, 0.002 minted by FAssets to the agent's pool. memokit mints nothing.

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
Checked: The first run used the service locally; the second, the deployed one, whose key sent both of its transactions. The service found the payment, paid for the attestation, waited for the voting round, simulated, and submitted.

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

Live

Phase 1. 5.0 FTestXRP into TESTearnXRP, 152 s.

Multi-recipient payout

Live

Phase 2. Five transfers from one payment, 118 s.

Executor fee in the moved asset

Live

The 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

Live

Phase 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

Live

One 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

Live

Phase 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

Live

Shipped; 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

Fork

Tested 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

Fork

FXRP is not a Kinetic market. The fork instruction supplies sFLR and borrows USDT0, and ends with a balance assertion.

Swap on SparkDEX V3

Fork

FXRP → 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

Fork

Unit tested, and exercised on the SparkDEX fork after a real price-driven failure.

Rescue opcode 0xFB

Tested

A race-free rescue opcode, covered by tests. Never run live.

Xaman signing

Open

The CLI builds the unsigned transaction; Xaman signing is built but not yet live-tested.

Mainnet deployment

Open

No mainnet deployment and no mainnet transaction.

SDK on npm

Open

Not yet published; the name is provisional.

Self-hosted DA Layer

Open

The 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 →
TypeScript · @memokit/sdknot yet published · name provisional
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 });
StepCallNotes
buildprepareInstruction(instruction)Returns { payload, commitment, memo }. Keep payload; a commit memo carries only its hash.
sendsendMemoPayment from @memokit/sdk/xrplOne memo, no destination tag: both enforced.
attestrequestAttestation, waitForProofBuilds the request and its MIC from the ledger record. Never calls Flare's verifier. Polls the DA Layer; no API key.
executesubmit({ 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[]).

OpcodePayloadLength
0xFDthe instruction, inline10 + N
0xFCkeccak256(payload), payload supplied out of band42
0xFBnewNonce: advance the nonce to at least N42
0xF8–0xFAreserved—
0xE0targetTxId: retire a stuck transaction id42
0xE1newNonce: advance past a stuck instruction (exact)42
0xE2targetTxId + newFee: override the executor fee amount50

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 ledger
Solidity tests
SDK tests
executor tests
fork tests

Pause, 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.