Splinterlands
Search…
Developers
Documentation to help out third party developers.
This is a (perpetual) work in progress so please mention if something feels out of date!

Hive Transactions

Below is the documentation for various blockchain payloads that Splinterlands processes and what their payload means.

sm_update_rental_price

This call is used to update the price of all the cards currently listed on the market, or rented out. Rented out cards are automatically cancelled and their price is updated to the price specified when they are relisted on the market when the card is cancelled during the next rental payment processing. The payload in the custom JSON field is of the following type (remember that the field must be a stringified version of this payload):
1
type payload = {
2
items: [string, number][], // [['<market_id>', <new_price>]]
3
player?: string, // '<username>'
4
};
Copied!
Where:
  • items is an array of tuples which contain the market_id of the item you wish to update and the new price you wish to set for that item.
  • player is an optional field, which you can set to the name of another player if that player has given you rental authority.
Copy link