Field Cubes
list_cubes
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
list_cubes
parameters*
JSON
check method parameters
new_field Method Parameters
fieldId
string
Field Id.
limit
number
The maximum number of cubes returned (a field can have hundreds of cubes).
lastEvaluatedKey
(optional) If more cubes are available, include the returned key to get the next chink of cubes.
list_cubes API Call Example
list_cubes Call Response
When the API call is successfully executed, it returns a list of cubes and their related cube data, including thecubeId
. If more cubes are available, the field lastEvaluatedKey is returned (include it on the API call for getting the next chunk of cubes).
update_cube-price
POST
https://api.bws.ninja/v1/call
Request Body
solution*
string
BWS.NFT.GameCube
operation*
string
update_cube-price
parameters
JSON
check method parameters
update_cube-price Method Parameters (optional)
field_id
string
Field Id
cubesList
list
A list of cubes whose price needs to be updated. Use cube data i
and j
indexes to identify each cube using the format i_j
(e.g. 40_0).
priceInCents
number
Price in USD cents (e.g. 500 to indicate a 5USD cube price)
update_cube-price API Call Example
update_cube-price Call Response
When the API call is successfully executed, it returns the number of correctly updated cubes, the number of invalid detected cubes, and the list of invalid cubes.
Last updated