Managing funds
Making a Deposit on a Wallet
To send transactions, you need a sufficient balance on your wallet.
- From Code
- From Webapp
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.io",
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))
To transfer tokens to your wallet, access the address of your wallet in deposit.
- Click
.
- Click Deposit.
- Copy the address of your wallet. This is the address you need to fill as recipient when transferring currency for example from a third-party wallet.
- Click Close.
Withdrawing funds from a Wallet
You can withdraw funds from a wallet using transactions via our API or using our Dashboard
- From Code
- From Webapp
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.
WARNING: your transaction speed has an impact on gas fees
const axios = require("axios")
const axiosInstance = axios.create({
baseURL: "https://api.starton.io",
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)
})
Click
.
Click Withdraw.
In To, enter the address to receive the transfer.
In Amount, select a Blockchain / Network.
Enter the desired amount to withdraw.
Click Next.
Select the Speed of your transaction.
Click Next to access the details of your operation.
Click Withdraw.
The details of your operation are displayed.
