X-Payment Twitter
Note zachys (atomic units) are 10^6 in X-Cash
Stats
This method gets the stats
URL: https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/stats/
Method: GET
Inputs: None.
Results:
totalUsers - unsigned int; Total users registered.
avgTipAmount - unsigned int; Average tip amount sent in zachys (atomic units).
totalDeposits - unsigned int; Total deposits.
totalWithdraws - unsigned int; Total withdraws.
totalTipsPublic - unsigned int; Total public tips sent.
totalTipsPrivate - unsigned int; Total private tips sent.
totalVolumeSentPublic - unsigned long long; Total volume sent for public tips, in zachys (atomic units).
totalVolumeSentPrivate - unsigned long long; Total volume sent for private tips, in zachys (atomic units).
totalTipsLastDayPublic - unsigned int; Total public tips sent in last day.
totalTipsLastDayPrivate - unsigned int; Total private tips sent in last day.
totalVolumeSentLastDayPublic - unsigned long long; Total volume sent for public tips in last day, in zachys (atomic units).
totalVolumeSentLastDayPrivate - unsigned long long; Total volume sent for private tips in last day, in zachys (atomic units).
totalTipsLastHourPublic - unsigned int; Total public tips sent in last hour.
totalTipsLastHourPrivate - unsigned int; Total private tips sent in last hour.
totalVolumeSentLastHourPublic - unsigned long long; Total volume sent for public tips in last hour, in zachys (atomic units).
totalVolumeSentLastHourPrivate - unsigned long long; Total volume sent for private tips in last hour, in zachys (atomic units).
Stats Per Day
This method gets the daily amount of payments and volumes sent per day
URL: https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/statsPerDay/{start}/{limit}
Method: GET
Resources:
start - Required - The start day to return data (Default is 1, the first start day).
limit - Required - The maximum amount of days to return (Default is all).
Inputs: None.
Results:
Array of objects with the following structure:
time - unsigned int; Total users registered.
amount - unsigned long long; Total tips sent.
volume - unsigned long long; Total volume sent in zachys (atomic units).
Top Stats
This method gets the top users for tips and volume
URL: https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/topStats/{amount}
Method: GET
Resources:
amount - not required - The amount of items to return (Default is 10).
Inputs: None.
Results:
topTips - Array of objects with the following structure:
username - string; The username.
tips - unsigned int; Total tips sent.
topVolumes - Array of objects with the following structure:
username - string; The username.
volume - unsigned long long; Total volume sent in zachys (atomic units).
Recent Tips
This method gets the recent tips
URL: https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/recentTips/{amount}
Method: POST
Resources:
amount - not required - The amount of items to return (Default is 10).
Inputs (All are required):
sort - "First" for most recent tips, "Last" for the least recent tips.
type - "Public" for only public transactions, "Private" for only private transactions, "All" for both.
Results:
Array of objects with the following structure:
tweetId - string; The tweet id.
fromUser - string; The username who sent the tip.
toUser - string; The username who received the tip.
amount - unsigned long long; The anount of the tip in zachys (atomic units).
time - unsigned int; The time.
type - string; The tip type.
Last updated