tokensubscription.com.md
1 ### Format 2 ``` 3 { 4 address from, //the subscriber 5 address to, //the publisher 6 address tokenAddress, //the token address paid to the publisher 7 uint256 tokenAmount, //the token amount paid to the publisher 8 uint256 periodSeconds, //the period in seconds between payments 9 uint256 gasPrice, //the amount of tokens or eth to pay relayer (0 for free) 10 bytes signature //proof the subscriber signed the meta trasaction 11 } 12 ``` 13 14 ### Rx 15 ``` 16 HTTP GET https://backend.metatx.io/subscriptions 17 ``` 18 19 20 ### Tx 21 ``` 22 function executeSubscription( 23 address from, //the subscriber 24 address to, //the publisher 25 address tokenAddress, //the token address paid to the publisher 26 uint256 tokenAmount, //the token amount paid to the publisher 27 uint256 periodSeconds, //the period in seconds between payments 28 uint256 gasPrice, //the amount of tokens or eth to pay relayer (0 for free) 29 bytes signature //proof the subscriber signed the meta trasaction 30 ) 31 public 32 returns (bool success) 33 ``` 34 Network: Mainnet Contract: 0x49748b0380d9370795CbD6809E52C927072107dC