[dev] splinterlands API URL - JS const variable

avatar
(Edited)

API URL - JS const variable

for splinterlands

REFERENCE : https://github.com/kiokizz/Splinterlands-API/blob/master/README.md

const _API_URL_SM = 'https://steemmonsters.com';
const _API_URL_SM_IO = 'https://api.steemmonsters.io';
const _API_URL = {  
    // URL - General
    SETTINGS : `${_API_URL_SM}/settings`, // Game Settings - https://steemmonsters.com/settings
    TRANSACTIONS_LOOKUP : `${_API_URL_SM}/transactions/lookup`, // Transaction Lookup - https://steemmonsters.com/transactions/lookup?trx_id=09c8ac9db08d246696fa795cbf03ff07b83303e6
    TRANSACTIONS_HISTORY : `${_API_URL_SM}/transactions/history`, // Transaction History - https://steemmonsters.com/transactions/history?from_block=37904629
    CARDS_STATS : `${_API_URL_SM}/cards/stats`, // Global Card Stats - https://steemmonsters.com/cards/stats
    CARDS_GET_DETAILS : `${_API_URL_SM}/cards/get_details`, // Card Details - https://steemmonsters.com/cards/get_details
    CARDS_FIND : `${_API_URL_SM}/cards/find`, // Card Lookup - https://steemmonsters.com/cards/find?ids=C3-79-UUT7TSLVN4
    CARDS_COLLECTION : `${_API_URL_SM}/cards/collection`, // Player Collection - https://steemmonsters.com/cards/collection/kiokizz
    PURCHASES_CHECK_CODE : `${_API_URL_SM}/purchases/check_code`, // Check Promo Code - https://steemmonsters.com/purchases/check_code?code=K5XF-7N1N

    // URL - Market
    PURCHASES_SETTINGS : `${_API_URL_SM}/purchases/settings`,   // Purchase Settings - https://steemmonsters.com/purchases/settings
    MARKET_FOR_SALE : `${_API_URL_SM}/market/for_sale`, // Market Listings - All - https://steemmonsters.com/market/for_sale
    MARKET_FOR_SALE_GROUPED : `${_API_URL_SM}/market/for_sale_grouped`, // Grouped Market Listings - Summary - https://steemmonsters.com/market/for_sale_grouped
    MARKET_STATUS : `${_API_URL_SM}/market/status`, // Market Transaction Lookup - https://steemmonsters.com/market/status?id=d8f8593d637ebdd0bca7994dd7e1a15d9f12efa7-0
    MARKET_HISTORY : `${_API_URL_SM}/market/history`,   // Player Market Sale History - https://steemmonsters.com/market/history?player=kiokizz
    PURCHASES_STATUS : `${_API_URL_SM}/purchases/status`,   // Card Pack Purchase Lookup - https://steemmonsters.com/purchases/status?id=P-2H7MGOOU74

    // URL - Gameplay
    PLAYERS_LEADERBOARD : `${_API_URL_SM_IO}/players/leaderboard`, // Leaderboard - Current Season - https://api.steemmonsters.io/players/leaderboard
    PLAYERS_LEADERBOARD2 : `${_API_URL_SM}/players/leaderboard`, //  Leaderboard - Previous Season - https://steemmonsters.com/players/leaderboard?season=X
    BATTLE_HISTORY : `${_API_URL_SM}/battle/history`, //  Top - Last 50 Matches - https://steemmonsters.com/battle/history?player=%24top
    BATTLE_HISTORY2 : `${_API_URL_SM}/battle/history`, //  Player - Last 50 Matches - https://steemmonsters.com/battle/history?player=kiokizz
    BATTLE_STATUS : `${_API_URL_SM}/battle/status`, //  Battle Transaction Lookup - https://steemmonsters.com/battle/status?id=53d989a49ce9f8d15d945240f2621682b26b552d
    PLAYERS_OUTSTANDING_MATCH : `${_API_URL_SM}/players/outstanding_match`, //  Ongoing Match - Player - https://steemmonsters.com/players/outstanding_match?username=kiokizz

    // URL - Tournaments
    TOURNAMENTS_UPCOMING : `${_API_URL_SM_IO}/tournaments/upcoming`, //  Upcoming Tournaments - https://api.steemmonsters.io/tournaments/upcoming
    TOURNAMENTS_IN_PROGRESS : `${_API_URL_SM_IO}/tournaments/in_progress`, //  Tournaments in Progress - https://api.steemmonsters.io/tournaments/in_progress
    TOURNAMENTS_COMPLETED : `${_API_URL_SM_IO}/tournaments/completed`, //  Completed Tournaments - https://api.steemmonsters.io/tournaments/completed
    TOURNAMENTS_FIND : `${_API_URL_SM_IO}/tournaments/find`, //  Tournament Lookup - https://api.steemmonsters.io/tournaments/find?id=545a2a4162796d720ed26e9951c806dab673d495
    TOURNAMENTS_BATTLES : `${_API_URL_SM}/tournaments/battles`, //  Tournament Round Results - https://steemmonsters.com/tournaments/battles?id=a76f9cec935fdfbe1598876b3f753a3577ff64c3&round=3

    // URL - Player Status
    PLAYERS_BALANCES : `${_API_URL_SM}/players/balances`, //  Get Player Balances - https://steemmonsters.com/players/balances?username=ottermaker
    PLAYERS_DETAILS : `${_API_URL_SM}/players/details`, //  Player Settings - General - https://steemmonsters.com/players/details?name=kiokizz
    PLAYERS_LOGIN : `${_API_URL_SM}/players/login`, //  Player Settings - Login - https://steemmonsters.com/players/login?name=kiokizz
    PLAYERS_QUESTS : `${_API_URL_SM}/players/quests`, //  Player Quest - https://steemmonsters.com/players/quests?username=kiokizz
    PLAYERS_REFERRALS : `${_API_URL_SM}/players/referrals`, //  Referrals - https://steemmonsters.com/players/referrals?username=kiokizz

    // URL - Guild
    GUILDS_MEMBERS : `${_API_URL_SM}/guilds/members`, //  Guild Members - https://steemmonsters.com/guilds/members?guild_id=d14d94bfab9f2532e26c33732cdba602d316f5bf
    GUILDS_FIND : `${_API_URL_SM}/guilds/find`, //  Guild Lookup - https://steemmonsters.com/guilds/find?id=d14d94bfab9f2532e26c33732cdba602d316f5bf    
}


0
0
0.000
2 comments
avatar

Congratulations @wonsama! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 65000 upvotes. Your next target is to reach 70000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!
0
0
0.000