Not sure where to start? We’ve put together some handy guides and reference documentation you can use to start building.
Getting Started# JWT token from login
ACCESS_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTYxMTcxNzE2NiwiZXhwIjoxNjEyMzIxOTY2fQ.4SDB4saoz10zPbTbg-WBT9KXlZEJohxIhwLvAORuQYU"
# SLP token id (64 character hex string)
TOKEN_ID="7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1"
# It's an NFT
AMOUNT_SLP=1
curl -H "Content-Type: application/json" -H 'X-Access-Token: $ACCESS_TOKEN' "https://juungle.net/api/v1/user/details"
# SLP address from above; where to send the token
DESTINATION_SLP="simpleledger:qpygaungmfry8xzxphj4pw24kk5l9vfxlymlyey6rp"
# Send NFT to exchange
electron-cash payto_slp $TOKEN_ID $DESTINATION_SLP $AMOUNT_SLP | electron-cash signtransaction - | electron-cash broadcast -
# Set the price of your deposited NFT
curl -X POST https://juungle.net/api/v1/user/nfts/set_price \
--data '{
"nftId": 42069,
"priceSatoshis": 200000
}' \
-H 'X-Access-Token: $ACCESS_TOKEN'
TIP
Juungle requires NFT1 (opens new window) tokens.
Juungle is designed to be easy-to-use, minimal exchange API for you to build applications on top of.
With out-of-the-box features, eliminating the R&D required to build an exchange, all you need to do is add a few hooks.