Knowledge Ethereum Ecosystem
Main Contract Features
- ERC-20 compatible
- Pre-defined payments
- Trackable payments
- Upgradable
- totalSupply()
- balanceOf(address who)
- transfer(address to, uint value)
- allowance(address owner, address spender)
- approve(address spender, uint value)
- transferFrom(address from, address to, uint value)
Main Contract Features
- ERC-20 compatible
- Pre-defined payments
- Trackable payments
- Upgradable
Request Payment
Used by a store to secure the payment information of a real world payment.
A payment is made of:
- store reference
- seller address
- amount to pay
- store address
- fee
Pay
Function called by user to cancel an existing payment request.
The information needed is:
- store address where the payment was requested
- store reference to this payment
Main Contract Features
- ERC-20 compatible
- Pre-defined payments
- Trackable payments
- Upgradable
Payment Gateway
- BIP32 Wallet - Multiple addresses, one master key
- Transaction history with rich information (transfer, payment, fee, etc)
- Payment status report
API
Wallet Summary
{
"status": "online",
"defaultAddress": "0x141acea73df3eeaa096e9b8ae6c13d20b189caf5",
"balance": 10000000000,
"availableBalance": 10000000000,
"transactions": [
{
"direction": "incoming",
"txHash": "0x2e881043bb1c81c69f586a8359911dc522f4a966b18db6987168ddb68e9a77dc",
"status": "successful",
"amount": 10000000000,
"from": "0x56efb1d24bfd9deb8cdfb96076edf4d516829a86",
"type": "transfer"
},
{
"direction": "outgoing",
"txHash": "0x443ac3f2f671b47b588c19acd271eee1a07ddbeed72a4108b778d2c8962fa2e1",
"status": "successful",
"amount": 0,
"to": "0x14e60cd5cc0362a8415fa6df849b5c7ab317e4b5",
"type": "transfer"
},
{
"direction": "outgoing",
"txHash": "0x049005d6c27a5d8e1ddda5ddcabdaf8e619cc77f44cddf3205ac2d2ed090c2f6",
"status": "successful",
"amount": 0,
"orderId": "test1",
"type": "store"
}
]
}
Payment Info
{
"ref": "test2",
"store": "0x14e60cd5cc0362a8415fa6df849b5c7ab317e4b5",
"seller": "0x0000000000000000000000000000000000000000",
"value": "0",
"fee": "0",
"status": "pending"
}
Request Payment
{
"ref": "test3",
"txHash": "0x4cb1db11a05542788c25c0b493fb233beceac9bf651764300ec3fd99c605edeb"
}
Knowledge Ethereum
By Diego Barahona
Knowledge Ethereum
- 299