* Load iota.js from [Github](https://github.com/iotaledger/iota.lib.js) - dist
```
var seed = ''; // INSERT YOUR SEED HERE
var mwm = '14' // MAINNET = 14 - TESTNET = 9
var addressToSend = ''; // HERE ADDRESSE TO SEND IOTA TO (target)
var value = '1'; // SEND ONLY 1 IOTA FOR TEST
var textToSend = 'Hello World'; // MESSAGE TO SEND
var tag = '' // TAG - ONLY 27 LETTERS (ABC..XYZ9) ARE ALLOWED
/* At the moment only this 2 Nodes use Command AttachToTangle */
/* TESTNET SERVER : http://p101.iotaledger.net:14700 */
/* MAINNET SERVER : http://node.iotawallet.info */
var iota = new IOTA({
'host': 'http://node.iotawallet.info',
'port': '14265'
});
// Convert textToSend to Trytes (important!)
var messageTrytes = iota.utils.toTrytes(JSON.stringify(textToSend));
// Build transfer
var transfer = [{
'address': address,
'value': parseInt(value),
'message': messageTrytes,
'tag': tag
}]
if (iota.utils.isValidChecksum(address)) {
iota.api.sendTransfer(seed, 5, parseInt(mwm), transfer, (e, r) => {
if (e !== null) {
/* Error */
console.log(e.message);
}
else {
/* SUCCESS IOTA WILL SEND */
console.log(r);
}
});
}
else
{
/* Adresse without Checksum */
console.log('checksum');
}
```
[Read here: IOTA - getaccountdata](https://steemit.com/iota/@stephanj79/iota-getaccountdata-with-javascript-iota-lib-js-version-0-4-1)
If you want to use IOTA in Testnet vote here and post your testnet address.
I will send you Iota for test in testnet (Token can only use in Testnet!!!)...