Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tím souhlasíte. Další informace

API help

Overview
Data types

offer.set

Description

Offer xWGs for exchange.

Params

token
string

Access token.

items
array

List of xWGs to offer.

item
struct
xwgId
int

ID of xWG

pieces
int
optional

Number of offered pieces. Defaults to 1 if missing and item is not already offered.

comment
string
optional

Comment for your offer.

Response

response
struct
status
int
enum

Status code

ValueDescription
200

OK

400

Bad params

404

One of specified items was not found.

500

Server error

statusMessage
string

Status code description

result
array
item
struct
xwgId
int

ID of xWG that has been modified corresponding to ID from parameters

offer
struct

Current offer state of item

pieces
int

Number of offered pieces. If pieces = 0, item is not offered.

comment
string

Comment for the offer.

Call example

offer.set("dolor sit", [{"xwgId": 1180906995, "pieces": 73531471, "comment": "nulla pariatur excepteur"}, {"xwgId": 1745788297, "pieces": 1514525166, "comment": "tempor incididunt"}, {"xwgId": 1270563136, "pieces": 600488980, "comment": "aute irure dolor"}])