Creating a transaction
You can create a transaction from Code with Starton.
Here you can create a simple transaction. For all advanced parameters, check the Transaction section of our API reference.
const axios = require("axios")
const startonAPI = axios.create({
baseURL: "https://api.starton.com",
headers: {
"x-api-key": "YOUR_API_KEY",
},
})
startonAPI.post("/v3/transaction", {
network: "polygon-mumbai",
signerWallet: "0x694F07CEEc0869aa0dB5E8157FA538268F28B23f",
from: "0x694F07CEEc0869aa0dB5E8157FA538268F28B23f",
to: "0x6d86C7046CCfA2022BFcad18F0C993B55e1512dE",
value: "100", // in wei.
})
.then(res=>console.log(res.data))
.catch(e=>console.log(e))
- More on Transactions
- More on Smart Contracts
- More on Developer mode