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