Skip to content

Ethereum URI

paulotrezentos edited this page Nov 2, 2018 · 1 revision

Android Intent

If an Android App is sure that a compatible AppCoins wallet is installed, it can use an Android intent directly calling the wallet instead of a HTTP URL.

An EIP681A-compliant URI intent that triggers the payment of an in-app item has the structure shown below.

ethereum:APPC_CONTRACT_ADDR@CHAIN_ID/buy?uint256=SKU_PRICE&address=DEV_ADDR&store_address=STORE_ADDR&oem_address=OEM_ADDR&data=SKU_ID&iabContractAddress=IAB_CONTRACT_ADDR

Its parameters are:

Variable Description Possible Values
APPC
Contract
Address
The smart contract
address of the APPC token
Mainnet --> 0x1a7a8BD9106F2B8D977E08582DC7d24c723ab0DB
Ropsten --> 0xab949343E6C369C6B17C7ae302c1dEbD4B7B61c3
Chain
ID
The ID of the chain
to be used for the payment
Mainnet --> 1
Ropsten --> 3
SKU
Price
The price of the
in-app item in Wei
-
Developer
Address
The Ethereum address of the
developer's wallet that should receive
the corresponding share of the payment (85%)
Any Ethereum wallet address
App
Store
Address
The Ethereum address of the
app store's wallet that should receive
the corresponding share of the payment (10%)
Any Ethereum wallet address
OEM
Address
The Ethereum address of the
OEM's wallet that should receive
the corresponding share of the payment (5%)
Any Ethereum wallet address
SKU
ID
The ID of the SKU being
bought in hexadecimal
-
IAB
Contract
Address
The address of the
smart contract handling IAP
Mainnet --> 0xb015D9bBabc472BBfC990ED6A0C961a90a482C57
Ropsten --> 0xB040e69BD4b1025EF6dA958CAc7464730933dB71