Kestrel

用任何币种收款。

告诉我们你想收哪种币、收到哪里。分享链接或嵌入小组件。付款人可以使用自己持有的任何币种,而你收到的是你指定的币种。

创建付款链接

如何运作

  1. 付款人打开你的链接,选择自己持有的币种。
  2. 我们以固定汇率找出能以最低成本交付你确切金额的平台。
  3. 付款人向平台发送。你在自己的地址收到你的币种。

如果付款人已经持有你的币种,就无需兑换,也没有手续费:对方只会看到你的地址和金额。

链接把所有信息都放在地址里,因此任何人都可以改动:请务必核对收到的金额是否正确。如需锁定这些信息,请从你的服务器创建付款,并把返回的地址发给付款人。

技术参考(英文)

Every parameter

ticker_to, network_to
The coin you want to receive and its network, e.g. xmr and Mainnet. Required.
address
Your receiving address. Required.
amount
What the payer must deliver, in your coin. For donations it is only the suggested amount.
memo
Memo or tag of your address, when your coin needs one. Use 0 for none.
fiat_equiv
Denominate the amount in a currency (USD, EUR...). It is converted to your coin at the current price.
donation
True switches to donation mode: the payer chooses the amount.
maximum
Upper limit for a donation, in US dollars.
editable
True lets the payer change the amount.
ticker_from, network_from
Preselect the coin the payer pays with.
name, description
Shown on the widget. URL-encode spaces as %20.
buttonbgcolor, textcolor
Button colours as hex without #, e.g. ddb321 and 0e141b.
bgcolor
True for a grey page background, or a hex colour. Leave it out inside an iframe.
remove_direct_pay
True hides your own coin from the payer's choices.
min_kycrating
A, B or C: only use desks graded at least this well.
simple_mode
True uses plainer wording for payers new to crypto.
ref
Your referral code.
direct
False makes the URL answer with JSON (ID, url, status_url) instead of showing the widget.
webhook, webhook_key
A URL called on every status change, and a string echoed in the Webhook-Key header. Use with direct=False.
email
An address to notify. Use with direct=False so it stays private.

From your server

GET /pay?ticker_to=xmr&network_to=Mainnet&address=ADDRESS&amount=0.5&direct=False

{ "ID": "...", "url": ".../pay/ID", "status_url": ".../pay/status/ID" }

/pay/status/ID answers with ID, Date, Status, AmountTo, AmountReceived, CoinTo. Status is anonpaynew until the payer picks a coin, then follows the swap: waiting, confirming, sending, finished, paid partially, failed, expired, halted, refunded. A request nobody starts is erased after 72 hours.

As a widget

<iframe src="https://THIS-SITE/pay?ticker_to=xmr&network_to=Mainnet&amount=0.1&address=ADDRESS"
        width="300" height="330" style="border:0"></iframe>