Balance

Request to check your balance

What is this request for ?

This request will send the amount of money to your sellizon account. To top up your cash account click here

😑Request example

const axios = require("axios")

async function getAmount(userId) {
    const data = { event: "balance", data: { UserId: `${userId}` } }
    try {
        const response = await axios.post("https://sellizon.epicbots.xyz/public", data, {
            headers: {
                'Content-Type': 'application/json',
            }
        })
        if (response.data.value) {
            return parseFloat(response.data.value)
        } else {
            return 0
        }
    } catch (error) {
        console.error('Error:', error.response ? error.response.data : error.message)
        return null
    }
}

const amount = getAmount("12346")
console.log(amount)

Last updated