Welcome to the thread about NEM Namespaces & Mosaic Transactions. Here you can discuss everything about the code and potential problems that you might stumble upon.
the faucets seem dry, I was able to get 2 yesterday, it will take a while to get to 110 2 at a time, they let you claim every hour
Seems like almost all faucetās are close to dry.
You could ask on the forum: https://forum.nem.io/t/paste-you-address-here-for-beta-nem-testnet-xem/829/1302
I will keep looking for testnet faucets.
I guess I can try the coding using nem:xem
, I assume this will work, just miss out on the creation part.
Nope, returns empty, supposedly xem is a mosaic, so I would expect it to work but does not
const nem = require("nem-sdk").default
const endpoint = nem.model.objects.create("endpoint")(nem.model.nodes.defaultTestnet, nem.model.nodes.defaultPort)
const common = nem.model.objects.create("common")("muchomoney", "151dfe76af133257cc3ab57ed4b1216f2b60d6c6ac8bc037ed3b09eb88334643")
const mosaicAttachment = nem.model.objects.create('mosaicAttachment')("nem", "xem", 300000)
nem.com.requests.namespace.mosaicDefinitions(endpoint, mosaicAttachment.mosaicId.namespaceId)
.then(res => {
console.log(res)
}, console.log)
maybe you could send filipcoin?
TDGS2O7G5PECCQU3IB53NBH6GKQ3YWGLY2ZLX2Y7
Looks like small amounts of mosaic are available here. I was able to run the code with that. Be sure to check āSend Mosaicā under the recaptcha.
well, I could get the definition, but I canāt send, I get FAILURE_MOSAIC_DIVISIBILITY_VIOLATED
I show in my wallet a quantity of 1.00
so I should be able to send from 1 to 100? I tried a bunch of values but no luck. The following should be 0.10
right?
const mosaicAttachment = nem.model.objects.create('mosaicAttachment')("blogpay", "blogpay", 10)
{
"blogpay:blogpay": {
"creator": "e44a83cd9ee9c58f549a4d35fe476c9e2472096fa203953b1e3716283a2513de",
"description": "Token de relevancia dentro de la comunidad blogger",
"id": {
"namespaceId": "blogpay",
"name": "blogpay"
},
"properties": [
{
"name": "divisibility",
"value": "2"
},
{
"name": "initialSupply",
"value": "9000000000"
},
{
"name": "supplyMutable",
"value": "true"
},
{
"name": "transferable",
"value": "true"
}
],
"levy": {}
}
}
ok, got it to work, needed to send 1.0
xem instead of 0.1
and I could send 0.1
blogpay with the above mosaicAttachment
. So there is some kind of relationship but not sure what. When I received from the faucet it was 2.000000
xem and 1.00
blogpay.
I have sent you 1000 filipcoins.
Thanks, I have received them.
Hi,
I keep getting this Cannot read property error(?):
C:\Users\Donald\Documents\Github\nem\firstnemproject\mosaicTransaction.js:16
nem.com.requests.nemaspace.mosaicDefinitions(endpoint, mosaicAttachment.mosaicId.namespaceId).then(function(res){
^
TypeError: Cannot read property āmosaicDefinitionsā of undefined
var mosaicDefinitions = nem.model.objects.get("mosaicDefinitionMetaDataPair");
var mosaicAttachment = nem.model.objects.create("mosaicAttachment")("artaris", "donaldcoin", 10000);
//console.log(endpoint);
transferTransaction.mosaics.push(mosaicAttachment);
//console.log(mosaicDefinitions);
nem.com.requests.nemaspace.mosaicDefinitions(endpoint, mosaicAttachment.mosaicId.namespaceId).then(function(res){
var definition = nem.utils.helpers.searchMosaicDefinitionArray(res.data, ["donaldcoin"]);
OK looks like some sort of a bug. If I copy/paste that part from your Github code it works. Thereās no apparent difference?!
This situation with dry testnet faucets is crazy, why does it happen? testnet tokens should be unlimited surely, why make it so difficult? Im arriving on dodgy sites which my fw is blocking just to try and get testnet tokens!
Could someone send 120 tokens to my address so I could run the lesson?
TAC2EZYHVXXAMDWSL2L3YO4IWVHNIMLPBQBRTURF
I have sent you 120 XEM now from 2 different addresses. If you have any left over in the end please send them back.
If anyone needs Beta NEM please just ask either on
Apart from that I got 500 xem for the coding community so if anyone needs some just message me.
I think node might have depreciated the code in mosaicTransaction.js
Iām getting lots of unhandled promise errors.
I will look into it and maybe update the video asap. Thanks so much for letting me know.
i forgot my nano wallet password canāt log in.
what can i do?
Did you backup your private key? Otherwise the only thing is to create a new wallet.