The Give Button. The entry point of the Giver's Model.
One button. Two rails. The giver commits KMY or Fiat. MayamiFX Merchant Bank — the exclusive authorized merchant — processes the acquisition. CBM issues an Index at the current Derivative V and places it into the public pool. Nothing shared with CBM except a transaction ID and an amount.
The Give Button is where every participant enters the Giver's Model. Every Index on the Index Dashboard arrived through a Give processed by MayamiFX. Every KMY ever minted was minted against an Index that began here. Licensed institutions only — see the licensing notice below.
You give KMY or Fiat. MayamiFX processes. CBM issues. The pool holds. The Give Button converts your committed amount into an Analytical Index at the current Derivative V. That Index is placed into the public pool, mintable by anyone — including you. What is due is given. Nothing is taken.
Who may use this kit.
The CBM Index and its derived currency KMY are legal and accepted only through licensed, regulated financial institutions. The Material Kits are open source for compliance and audit purposes. Their operational use is reserved for:
· MayamiFX Merchant Bank (Exclusive Authorized Merchant)
· Banks and Central Banks
· Financial Institutions holding a valid license
· Regulated financial bodies
MayamiFX Merchant Bank operates in direct collaboration with CBM as the only authorized entity to process the acquisition of the IGIVE Index. Public participants must transact only through MayamiFX or platforms operated by a licensed institution.
CBM operates as scribe. The Bank issues Index against the Derivative V, records the transaction, and returns a receipt. CBM receives no payment — not in this kit, not in any kit. The Bank holds no funds, no KYC, and no participant identity.
The button, right now.
This widget demonstrates the live flow. You can acquire an IGIVE Index, or transfer KMY wallet-to-wallet. MayamiFX processes all payments and applies a standard transaction fee (1.5%).
MayamiFX Merchant Bank provides the payment rail. Licensed institutions integrating this kit connect to MayamiFX to process acquisitions and transfers.
The flow is direct and secure:
- Select your action (Acquire or Transfer).
- Enter your wallet details.
- MayamiFX processes the payment/transfer and applies the fee.
- CBM records the transaction (if Acquire).
Three steps. Two servers.
CBM issues the transaction ID. MayamiFX processes the KMY or Fiat payment and verifies it. CBM issues the Analytical Index at the current Derivative V.
Request ID
CBM issues a fresh transaction ID.
Process Payment
MayamiFX deducts KMY or opens a Flutterwave link, then verifies the payment server-side.
Record
MayamiFX sends CBM the transaction ID and the amount. Nothing else.
CBM issues the Analytical Index at the current Derivative V, appends a row to the transactions sheet, and returns a confirmation carrying the index prefix, Entry V, and quantity. From that moment the Index is a live position in the public pool.
Your transactions, kept locally.
The widget writes every transaction ID it issues to your browser's
localStorage and automatically retries any transaction
that was paid but not yet recorded.
Every transaction, publicly reported.
CBM publishes every recorded transaction — transaction ID, amount, Entry V, Current V, Index quantity, gain.
One contract. Dual Function.
The widget connects to the MayamiFX Merchant Bank API. MayamiFX handles both Index Acquisition and Wallet-to-Wallet Transfers, applying a transaction fee.
The widget accepts a mfxEndpoint which routes directly to the MayamiFX API. The widget calls MayamiFX to process the KMY or Fiat payment before confirming the Index issuance with CBM.
Three files. No build step.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Give Button</title>
<link rel="stylesheet" href="give.css">
</head>
<body>
<div id="cbm-give"></div>
<script src="give.js"></script>
<script>
CBMGive.mount('cbm-give', {
cbmEndpoint: 'https://script.google.com/macros/s/<CBM_DEPLOYMENT_ID>/exec',
mfxEndpoint: 'https://script.google.com/macros/s/<MFX_DEPLOYMENT_ID>/exec',
appId: 'app-f6fcba69',
minAmount: 1,
returnUrl: 'https://centralbankofmayami.vercel.app/give.html'
});
</script>
</body>
</html>
/* CBM · GIVE BUTTON WIDGET · v2.0
* Public Material Kit · Central Bank of Mayami */
.cbm-give {
--cbm-give-ink: #1a1814;
--cbm-give-parch: #efe7d5;
--cbm-give-gold: #c9a961;
--cbm-give-gold-dim: #8c7539;
--cbm-give-rule: rgba(201,169,97,.16);
--cbm-give-green: #6b8f5a;
--cbm-give-red: #b04a37;
--cbm-give-serif: 'Iowan Old Style','Palatino Linotype','Palatino','Georgia',serif;
--cbm-give-sans: -apple-system,BlinkMacSystemFont,'Inter','Segoe UI',system-ui,sans-serif;
--cbm-give-mono: ui-monospace,SFMono-Regular,Menlo,monospace;
background: linear-gradient(180deg, rgba(201,169,97,.035), rgba(201,169,97,.008));
border: 1px solid var(--cbm-give-rule);
padding: 22px;
border-radius: 2px;
color: var(--cbm-give-parch);
font-family: var(--cbm-give-sans);
font-size: 15px;
line-height: 1.5;
max-width: 420px;
}
.cbm-give__badge{display:inline-block;font-family:var(--cbm-give-mono);font-size:9px;letter-spacing:.22em;padding:3px 8px;border:1px solid currentColor;border-radius:2px;text-transform:uppercase;font-weight:600;margin-bottom:14px}
.cbm-give__badge.live{color:var(--cbm-give-green)}
.cbm-give__label{font-family:var(--cbm-give-serif);font-size:10px;letter-spacing:.24em;color:var(--cbm-give-gold-dim);text-transform:uppercase;margin-bottom:16px}
.cbm-give__field{display:grid;gap:6px;margin-bottom:18px}
.cbm-give__field-label{font-family:var(--cbm-give-serif);font-size:9.5px;letter-spacing:.22em;color:var(--cbm-give-gold-dim);text-transform:uppercase}
.cbm-give__input{background:transparent;border:0;border-bottom:1px solid var(--cbm-give-rule);outline:none;color:var(--cbm-give-parch);font-family:var(--cbm-give-mono);font-size:14px;width:100%;padding:6px 0;transition:border-color .18s}
.cbm-give__input:focus{border-bottom-color:var(--cbm-give-gold)}
.cbm-give__select{background:transparent;border:0;border-bottom:1px solid var(--cbm-give-rule);outline:none;color:var(--cbm-give-parch);font-family:var(--cbm-give-mono);font-size:14px;width:100%;padding:6px 0;transition:border-color .18s;-webkit-appearance:none;border-radius:0;cursor:pointer}
.cbm-give__select:focus{border-bottom-color:var(--cbm-give-gold)}
.cbm-give__select option{background:var(--cbm-give-ink);color:var(--cbm-give-parch)}
.cbm-give__amount-wrap{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:6px;border-bottom:1px solid var(--cbm-give-rule);padding-bottom:6px;transition:border-color .18s}
.cbm-give__amount-wrap:focus-within{border-bottom-color:var(--cbm-give-gold)}
.cbm-give__prefix{font-family:var(--cbm-give-serif);font-size:20px;color:var(--cbm-give-gold-dim);line-height:1}
.cbm-give__amount{background:transparent;border:0;outline:none;color:var(--cbm-give-gold);font-family:var(--cbm-give-serif);font-size:28px;line-height:1;font-weight:400;letter-spacing:-.005em;font-variant-numeric:tabular-nums;width:100%;padding:0;-webkit-appearance:none;-moz-appearance:textfield}
.cbm-give__amount::-webkit-outer-spin-button,
.cbm-give__amount::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cbm-give__preview{display:flex;justify-content:space-between;align-items:baseline;padding:12px 0;border-top:1px dashed var(--cbm-give-rule);border-bottom:1px dashed var(--cbm-give-rule);margin-bottom:18px;font-family:var(--cbm-give-serif);font-size:12px}
.cbm-give__preview-label{color:var(--cbm-give-gold-dim);letter-spacing:.14em;text-transform:uppercase;font-size:10px}
.cbm-give__preview-value{color:var(--cbm-give-parch);font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.cbm-give__btn{display:block;width:100%;padding:16px 14px;border:1px solid var(--cbm-give-gold);background:transparent;color:var(--cbm-give-gold);font-family:var(--cbm-give-serif);font-size:13px;letter-spacing:.26em;text-transform:uppercase;cursor:pointer;border-radius:2px;font-weight:500;transition:background .18s;-webkit-tap-highlight-color:transparent}
.cbm-give__btn:hover:not(:disabled){background:rgba(201,169,97,.09)}
.cbm-give__btn:active:not(:disabled){background:rgba(201,169,97,.16)}
.cbm-give__btn:disabled{opacity:.4;cursor:not-allowed}
.cbm-give__status{font-family:var(--cbm-give-serif);font-size:12px;letter-spacing:.04em;margin-top:14px;min-height:18px;color:var(--cbm-give-gold-dim);text-align:center;line-height:1.6}
.cbm-give__status.ok{color:var(--cbm-give-green)}
.cbm-give__status.err{color:var(--cbm-give-red)}
.cbm-give__receipt{margin-top:16px;padding:14px;border:1px solid rgba(107,143,90,.3);background:rgba(107,143,90,.04);border-radius:2px;display:none}
.cbm-give__receipt.open{display:block}
.cbm-give__receipt-title{font-family:var(--cbm-give-serif);font-size:10px;letter-spacing:.22em;color:var(--cbm-give-green);text-transform:uppercase;margin-bottom:8px}
.cbm-give__receipt-msg{font-family:var(--cbm-give-serif);font-size:13px;color:var(--cbm-give-parch);line-height:1.5;margin-bottom:8px}
.cbm-give__receipt-id{font-family:var(--cbm-give-mono);font-size:11.5px;color:var(--cbm-give-gold);letter-spacing:.04em;word-break:break-all;white-space:pre-line;padding-top:8px;border-top:1px dashed var(--cbm-give-rule)}
.cbm-give__legal{margin-top:14px;padding-top:12px;border-top:1px dashed var(--cbm-give-rule);font-family:var(--cbm-give-serif);font-size:10.5px;color:var(--cbm-give-gold-dim);letter-spacing:.04em;line-height:1.55}
.cbm-give__attr{margin-top:12px;padding-top:10px;border-top:1px dashed var(--cbm-give-rule);text-align:center;font-family:var(--cbm-give-serif);font-size:9.5px;letter-spacing:.22em;color:var(--cbm-give-gold-dim);text-transform:uppercase}
@media (max-width:560px){.cbm-give{padding:18px}.cbm-give__amount{font-size:24px}.cbm-give__prefix{font-size:18px}}
/* FIAT MODAL OVERLAY */
.cbm-give__fiat-modal{position:fixed;inset:0;background:rgba(10,9,7,.9);display:none;align-items:center;justify-content:center;z-index:1000;padding:20px;backdrop-filter:blur(4px)}
.cbm-give__fiat-modal.open{display:flex}
.cbm-give__fiat-card{background:var(--cbm-give-ink);border:1px solid var(--cbm-give-gold);width:100%;max-width:440px;height:85vh;max-height:650px;display:flex;flex-direction:column;border-radius:4px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.6)}
.cbm-give__fiat-header{padding:14px 16px;border-bottom:1px solid var(--cbm-give-rule);display:flex;justify-content:space-between;align-items:center;background:rgba(201,169,97,.04)}
.cbm-give__fiat-header h3{font-family:var(--cbm-give-serif);color:var(--cbm-give-gold);margin:0;font-size:15px;letter-spacing:.1em;text-transform:uppercase}
.cbm-give__fiat-close{background:transparent;border:none;color:var(--cbm-give-gold-dim);font-size:22px;cursor:pointer;line-height:1;transition:color .18s}
.cbm-give__fiat-close:hover{color:var(--cbm-give-red)}
.cbm-give__fiat-body{flex:1;position:relative;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}
.cbm-give__fiat-iframe{width:100%;height:100%;border:none;display:block}
.cbm-give__fiat-fallback{display:block;padding:20px;text-align:center;font-family:var(--cbm-give-serif);color:var(--cbm-give-ink)}
.cbm-give__fiat-fallback p{color:var(--cbm-give-ink);font-size:14px;margin-bottom:16px;opacity:1;font-weight:500}
.cbm-give__fiat-footer{padding:16px;background:var(--cbm-give-ink);text-align:center;font-family:var(--cbm-give-serif);font-size:12px;color:var(--cbm-give-parch);display:flex;flex-direction:column;align-items:center;gap:10px;border-top:1px solid var(--cbm-give-rule)}
.cbm-give__spinner{width:24px;height:24px;border:2px solid rgba(201,169,97,.3);border-top-color:var(--cbm-give-gold);border-radius:50%;animation:cbm-spin 1s linear infinite}
@keyframes cbm-spin{to{transform:rotate(360deg)}}
.cbm-give__btn-ghost{background:transparent;border:1px solid rgba(201,169,97,.3);color:var(--cbm-give-gold-dim);padding:8px 16px;cursor:pointer;font-family:var(--cbm-give-serif);font-size:10px;letter-spacing:.15em;text-transform:uppercase;border-radius:2px;transition:all .18s}
.cbm-give__btn-ghost:hover{color:var(--cbm-give-gold);border-color:var(--cbm-give-gold)}
Loading widget source…
Four actions. No PII.
The Give Button flow speaks to four endpoints. All are public.
| Action | Purpose | Returns |
|---|---|---|
| give.requestId | Mints a fresh transaction ID. | { ok, transactionId, expiresAt } |
| mfx.give.process | MayamiFX processes acquisition (deducts fee). | { ok, mfx_tx_ref?, payment_link? } |
| mfx.wallet.send | MayamiFX processes wallet-to-wallet transfer (deducts fee). | { ok, txRef, amountKmy } |
| mfx.give.status | Checks the status of a MayamiFX give transaction. | { ok, status, index_prefix, qty } |
Ready to see what your Give became?
Every Give issues an Index into the pool. The Index Dashboard renders every position.
Public Materials Kit · Give Button · v2.0
In collaboration with MayamiFX Merchant Bank
What is due is given. Nothing is taken.