How it works
1
The order is quoted
The operator prices the order and stores its parameters. Their hash is returned with the quote and ties the deposit to that exact order.
2
The user deposits on the source chain
Funds go into the Blink escrow along with the quote hash. When the input has to be swapped into the token the quote locks, the deposit goes through the Blink router first.
3
The operator pays the user
Once the deposit is confirmed, the operator sends the output to the recipient on the destination chain. The user has their funds at this point.
4
The deposit is released
The escrow releases the deposit to the operator after it has settled past a deep-reorg depth on the source chain.
Signer cluster
Blink is run by a single operator, but no single machine can move funds on its own. Every payout, refund and release is signed by a cluster of seven signer nodes, each running on its own server. The signing key is a 5-of-7 threshold key. Each node holds one share of it, and no node ever holds the whole key. A signature exists only after at least five of the seven nodes have approved the transaction and signed it together. Each node checks the transaction independently, using its own view of the chain and its own prices. It confirms that the deposit has the confirmations it needs and that the transaction matches what the quote allows. One compromised server or data source cannot produce a signature by itself. Every node also keeps its own ledger of the transactions it has approved, and checks it before approving another. That stops the cluster from signing a second payout for the same order, or both a payout and a refund for the same deposit. The same cluster enforces the wait before a release or a refund, since it does not sign either one until the deposit has settled.What it gives you
- Non-stable tokens on either side, swapped on the source chain before the deposit and on the destination chain before the payout.
- Referrer fees split across several wallets, each accruing its own share.
- Integration through the SDK, where it is returned as quote type
BLINK.
Fees
Blink’s fee is built into the quote. It consists of a spread on the trade and a flat one-cent fee, and the quoted output is already net of both. Blink quotes do not carryprotocolBps. The fee is returned in dollars as protocolFeeUsd, so read it from each quote rather than hardcoding it.
Gas costs are fixed when the quote is issued. The cost of the destination payout is priced into the output, and a later rise in gas does not reduce what the user receives. Refund gas is set aside as well, but it is charged only if the order is refunded.
Referrer fees
Referrer fees on Blink accrue only on quotes requested with a Mayan API key. A quote that carries a referrer fee without a key is not offered a Blink route.If you do not have a Mayan API key yet, see How do I get an API key? to request one.
How they accrue
Blink does not pay referrer fees per swap. Each filled order records what it owes the referrers in its list, taken from the deposit in the token the quote locks. When the escrow releases that deposit, the referrer share moves into a vault that holds referrer fees. On EVM chains that vault is the fee manager, and on Solana and Sui it is the voucher vault. These balances belong to the integration whose API key requested the quote, and they are tracked per referrer address, chain and token.Claiming with vouchers
The owner of that API key has to claim a balance once the deposits behind it have been released. Each claim returns a voucher, which is a signed instruction to pay an exact amount of one token to one referrer address. Redeeming it onchain pays the referrer from the vault. On EVM chains the voucher is an EIP-712 signature, redeemed throughredeemVoucher on the fee manager. On any chain, every voucher follows the same rules.
- A voucher has no expiry date.
- It can be redeemed only once.
- Anyone can submit it, and the payment always goes to the referrer address it names.
Refunds
An order is refunded when it cannot be filled. It is also refunded when the deposit does not match its quote, as in the cases below.- The deposit is in the wrong token.
- The amount is below the quoted minimum.
- The quote hash was already used.
Contract addresses
- EVM
- Solana
- Sui
Blink uses the same addresses on every EVM chain.