Skip to main content

Operating Deposits & Withdrawals

Making a Deposit on a Wallet

caution

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

To transfer tokens to your wallet, use the /v3/transaction endpoint.

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))

Withdrawing funds from a Wallet

You can withdraw funds from a wallet using transactions via our API or using our Dashboard.

To withdraw tokens from a wallet you can create a transaction from a wallet. You can find the full list of networks in our API reference.

info

Your transaction speed has an impact on gas fees.

const axios = require("axios")

const axiosInstance = axios.create({
baseURL: "https://api.starton.com",
headers: {
"x-api-key": "PUT HERE YOUR API KEY",
},
})

axiosInstance
.post("/v3/transaction", {
signerWallet: "YOUR_SIGNER_WALLET",
to: "",
network: "",
value: "0",
speed: "average",
})
.then((response) => {
console.log(response.data)
})
  • Making a Deposit on a Wallet
  • Withdrawing funds from a Wallet