Skip to main content

Making a Deposit on a Wallet

To send transactions, you need a sufficient balance on your wallet.

To transfer tokens to your wallet, you can make a transfer using transactions to your wallet.

const axios = require("axios")
// AUTHENTICATING TO THE API USING YOUR API KEY
const startonApi = axios.create({
baseURL: "https://api.starton.com",
headers: {
"x-api-key": "YOUR_API_KEY",
},
})

const createTx = async (value, to, signerWallet, network) => {
try {
return await startonApi.post("/v3/transaction", {
value,
to, // receiving wallet
signerWallet, // sender wallet
network,
})
} catch (error) {
console.log(error.response.data)
}
}
createTx(
"0",
"0x694F07CEEc0869aa0dB5E8157FA538268F28B23f",
"0x694F07CEEc0869aa0dB5E8157FA538268F28B23f",
"binance-testnet",
)
.then((response) => console.log(response))
.catch((error) => console.log(error))