Create tokensubscription.com

This commit is contained in:
Austin Griffith 2018-09-12 06:32:52 -06:00 committed by GitHub
parent 20925de13e
commit 4c22e838b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 0 deletions

34
tokensubscription.com Normal file
View File

@ -0,0 +1,34 @@
### Format
```
{
address from, //the subscriber
address to, //the publisher
address tokenAddress, //the token address paid to the publisher
uint256 tokenAmount, //the token amount paid to the publisher
uint256 periodSeconds, //the period in seconds between payments
uint256 gasPrice, //the amount of tokens or eth to pay relayer (0 for free)
bytes signature //proof the subscriber signed the meta trasaction
}
```
### Rx
```
HTTP GET https://backend.metatx.io/subscriptions
```
### Tx
```
function executeSubscription(
address from, //the subscriber
address to, //the publisher
address tokenAddress, //the token address paid to the publisher
uint256 tokenAmount, //the token amount paid to the publisher
uint256 periodSeconds, //the period in seconds between payments
uint256 gasPrice, //the amount of tokens or eth to pay relayer (0 for free)
bytes signature //proof the subscriber signed the meta trasaction
)
public
returns (bool success)
```
Network: Mainnet Contract: 0x49748b0380d9370795CbD6809E52C927072107dC