RE: Hivejs: How to transfer Splinterland-Cards Part 2? Wie transferiert man Splinterlandskarten Teil 2? #11

avatar

You are viewing a single comment's thread:

Hello. I haven't been actively updating the API documentation here for some time. I would like to revisit it soon, though I've been occupied with other things.

The transaction history is only reliable for bulk transactions back approx 31 days. You can individually query a market transaction using the hive blockchain transaction id, though these do have some limitations on early transactions - don't have a list exactly, but it is fairly reliable.

https://api2.splinterlands.com/transactions/lookup?trx_id=6933e74e7a415b1c8eaaef15cf2c74586272c0b9

And https://api.splinterlands.io/market/status?id=trxidxxx-23 (index of card in transaction) to find if a card actually sold.

To get list of prices for cards grouped: https://api.splinterlands.io/market/for_sale_grouped

To get list of prices for individual card listings
https://api2.splinterlands.com/market/for_sale_by_card?card_detail_id=331&gold=false&edition=3

No perfect answers with the history API seeming to be a relatively low priority as the game has been developed.

@hive-coding @mypathtofire



0
0
0.000
2 comments
avatar

Thank you for your answer.

Have one more Question.
Do you know how i can get the bcx for a Card?

I want to show Cradcollection sorted by market price. I can get low_price_bcx with https://api.splinterlands.io/market/for_sale_grouped

For most cards the bcx seams to be same as xp.

But for some Cards i have compered it is not equal.

I looked at peakmonster, for bcx and xp in the api.

Here is an example where it do not match:

https://ecency.com/hive-121566/@mein-senf-dazu/splinterlands-xp-vs-bcx

0
0
0.000
avatar

Hello. I can probably write up a more detailed answer, but the short of it is this:

The old XP system was used for card ids as follows, before it was replaced with the much simpler 1 xp = 1 bcx. Back before the game play was designed there were plans for cards to level in game-play. This didn't eventuate, leading to the simplification we currently see.

There are a few exceptions in how the XP are split, but I'd need more time to split that up in a post to explain it all.

``
if (id <= 134 || (id >= 205 && id <= 208) || (id >= 212 && id <= 223 || id === 238 || id === 237))

let alpha_beta_xp = {
alpha: {
false: {0: 20, 1: 100, 2: 250, 3: 1000},
true: {0: 250, 1: 500, 2: 1000, 3: 2500}
},
beta: {
false: {0: 15, 1: 75, 2: 175, 3: 750},
true: {0: 200, 1: 400, 2: 800, 3: 2000}
},
}
``

All other cards are the new XP system, unless I've missed something.

0
0
0.000