URL Schema protocol
Protocols supported by default:
- xff://open.fchain.io
- scheme:xff
- host:open.fchain.io
- web+stellar://
Application scenarios supported
Operation name | Protocol applied | Implemented or not |
Start APP | XFF | √ |
Create wallet account | XFF | √ |
Show quotes | XFF | √ |
Add contact | XFF | √ |
Trust | XFF, web+stellar | √ |
Payment | XFF, web+stellar | √ |
Pathpayment | XFF, web+stellar | √ |
Sign TX | XFF, web+stellar | √ |
Deposit | XFF | √ |
Withdraw | XFF | √ |
Set inflation pool | XFF | √ |
Open DAPP detail | XFF | √ |
Open DAPP | XFF | √ |
Open red package | XFF | √ |
Claim red package | XFF | √ |
Check red package records, send red package | XFF | √ |
Open certain asset detail | XFF | √ |
Scan QR to login | https | √ |
XDR or Hash data in examples would be accurate, only for demo purpose
Start App
- Protocol URL
- xff://open.fchain.io/app/start/
- Protocol example
xff://open.fchain.io/app/start/
- Parameters description
Wallet
Create or import wallet
- Protocol URL
- xff://open.fchain.io/wallet/create/
- Protocol example
xff://open.fchain.io/wallet/create/
- Parameters description
name | type | required | description |
name | string | false | wallet name |
mnemonic | string | false | mnemonic |
seed | string | false | secret seed |
Quotes
Open trade pair(k line)
- Protocol URL
- xff://open.fchain.io/market/kline
- Protocol example
name | type | required | description |
basecode | string | true | base asset code |
baseissuer | string | true | base asset issuer, only skip when using XLM |
countercode | string | true | counter asset code |
counterissuer | string | true | counter asset issuer, only skip when using XLM |
Add custom trade pair
- Protocol URL
- xff://open.fchain.io/market/addpair
- Protocol example
name | type | required | description |
basecode | string | true | base asset code |
baseissuer | string | true | base asset issuer, only skip when using XLM |
countercode | string | true | counter asset code |
counterissuer | string | true | counter asset issuer, only skip when using XLM |
Dapp
Open DAPP page at discovery tab
- Protocol URL
- xff://open.fchain.io/discovery/dappinfo
- Protocol example
xff://open.fchain.io/discovery/dappinfo?title=dappname&appId=000001
- Parameters description
name | type | required | description |
title | string | false | DAPP name |
appId | string | true | Dapp appId |
Open one specific DAPP
- Protocol URL
- xff://open.fchain.io/dapp/container
- Protocol example
- Parameters description, other parameters can also be added so that DAPP could use them to perform its own business logic.
name | type | required | description |
title | string | false | dapp name |
appId | string | false | Dapp appId |
url | string | true | accessible URL |
color | string | false | color of toolbar |
Add contact by opening add contact page
- Protocol URL
- XFF://open.fchain.io/contacts/create
- Protocol example
name | type | required | description |
name | string | false | contact name |
account | string | true | account address |
memo_type | string | false | memo type, could be MEMO_TEXT, MEMO_ID, MEMO_HASH and MEMO_RETURN |
memo | string | false | memo content |
Trust
Trust certain asset by opening trust page, providing alike FFW.trust function in JSBridge. Return the result(hash or error) to callback if there is one
- Protocol URL
- XFF://open.fchain.io/trust
- Protocol example
name | type | required | description |
code | string | true | asset code |
issuer | string | true | asset issuer |
network | string | false | Stellar network, public or test |
msg | string | false | operation explanation |
callback | string | false | callback address |
- callback address, submit parameters, POST method,
Content-Type: application/json
Payment
Open payment page, user confirm whether to send asset to other account, callback is supported.
- Protocols
- Protocol example
name | type | required | description |
destination | string | true | reciever address |
asset_code | string | false | asset code, XLM if null |
asset_issuer | string | false | asset issuer |
memo_type | string | false | memo type, could be MEMO_TEXT, MEMO_ID, MEMO_HASH and MEMO_RETURN |
memo | string | false | memo content |
msg | string | false | notification message |
network | string | false | Stellar network, public or test |
callback | string | false | callback address |
- callback address, submit parameters, POST method, Content-Type: application/json
Pathpayment
User could choose different assets to pay, failure ratio exists, basically the same effect as FFW.pathpayment
- Protocols
- Protocol example
name | type | required | description |
destination | string | true | reciever address |
asset_code | string | false | asset code, XLM if null |
asset_issuer | string | false | asset issuer |
memo_type | string | false | memo type, could be MEMO_TEXT, MEMO_ID, MEMO_HASH and MEMO_RETURN |
memo | string | false | memo content |
msg | string | false | notification message |
network | string | false | Stellar network, public or test |
callback | string | false | callback address |
- callback address, submit parameters, POST method, Content-Type: application/json
Sign TX
- Protocol
- Protocol example
name | type | required | description |
xdr | string | true | transaction in XDR format(url encoded) |
msg | string | false | notification message |
pubkey | string | false | specified account to sign, used in multisign |
network | string | false | Stellar network, public or test |
auto | boolean | false | using walletg to send to Stellar network, true by default. will sign and submit result in XDR format to callback if false |
callback | string | false | callback address |
- callback address, submit parameters, POST method,
Content-Type: application/json
Deposit
Open deposit page, perform query according to assets in protocol or custom assets. If callback
is provided, then all deposit data will submit to callback
after user clicked confirm.
- Protocol
- Protocol example
name | type | required | description |
asset_code | string | false | asset code |
asset_issuer | string | false | asset issuer |
msg | string | false | notification message |
callback | string | false | callback address |
- callback address, submit parameters, POST method,
Content-Type: application/json
Withdraw
Open withdarw page, get information about address, etc from URL, then finish process after user confirmation
- Protocol
- Protocol example
name | type | required | description |
destination | string | true | address withdraw to |
asset_code | string | true | asset code, stellar asset |
asset_issuer | string | true | asset issuer, stellar asset |
amount | number | false | amount to withdraw |
msg | string | false | notification message |
memo | string | false | memo content, will be used in first time withdrwal request |
callback | string | false | callback address |
- callback address, submit parameters, POST method, Content-Type: application/json
Set inflation pool
Set inflation pool for current account
- Protocol
- Protocol example
name | type | required | description |
destination | string | true | inflation pool address |
msg | string | false | notification message |
callback | string | false | callback |
- callback if there is one, submit parameters, POST method,
Content-Type: application/json
Open red pocket
Open red pocket, appid=000003
for red pocket, opening it will be calling xff://open.fchain.io/dapp/container?appId=000003
- Protocol
- Protocol example
xff://open.fchain.io/hb
Claim red pocket
Add parameter k
on the basis of above URL, just pass k as parameter when opening red pocket DAPP
- Protocol
- Protocol example
xff://open.fchain.io//hb/dapp?k=红包口令
- Parameters description
name | type | required | description |
k | string | false | code to claim red pocket |
search red pocket records or send red pocket
Add parameter v
on the basis of above URL, just pass v as parameter when opening red pocket DAPP
- Protocol
- Protocol example
xff://open.fchain.io/hb?v=log
- Parameters description
name | type | required | description |
v | string | false | view, log is to open red pocket records, pay is to open send red pocket page |
Open asset detail
Open detail page of one certain asset
- Protocol
- Protocol example
name | type | required | description |
asset_code | string | false | asset code, XLM if null |
asset_issuer | string | false | asset issuer, XLM if null |
Scan to login
Scan to login, TBI
Last Updated: 4/23/2019, 4:48:03 PM