Here's the whole documentation about NFTs: https://docs.elrond.com/tokens/nft-tokens/
guest8296696656 activity
guest8296696656 commented on This address erd1me5hmqt5qg9r9jgw9r936444va6f4qw4uf0y2sgk0hsfhmtwvhnscdu9us has tokens and I want to get balance of tokens of an address. I'm using this api but just see the balance of EGLD not tokens. https://api.elrond.com/address/erd1me5hmqt5qg9r9jgw9r936444va6f4qw4uf0y2sgk0hsfhmtwvhnscdu9us/bal... Read more
Replace /balance by /esdt
guest8296696656 commented on Hi guys ! My endpoint should returns multiple elements, but I always got only one. My view is returning a MultiValueEncoded with multiple elements. I am calling my view with /vm-values/query. Should I use another gateway endpoint for MultiValueEncoded view ?
Good idea! I will try it now
guest8296696656 commented on Hello, I have a SC for distributing funds and i can't get my head around nonce. I have a local wallet which will make a lot of contract function calls and each call will make a transaction in the SC to send funds to different wallets. How should i choose the nonce? I guess that on the local wallet i... Read more
AFAIK, the nonce must be increased after each transaction you made with your wallet ;)
guest8296696656 commented on Hey, I am looking to make transactions through my frontend (connect, verify/sign, stake, unstake, claim). I can’t find any resources to help me that. Any chance someone could help?
And the template will provide you an example https://github.com/ElrondNetwork/dapp-template of how to use dapp-core ;)
guest8296696656 commented on can someone guide me how I could send an nft to a smart contract endpoint ?
Hey! Here's your answer https://docs.elrond.com/developers/nft-tokens/#transfers-to-a-smart-contract ☺
guest8296696656 commented on what do you mean by "my bytes"?
const STR: &str = "this is a string" const BYTES: &[u8] = b"this is bytes" The STR use allocation, and thus increasing your gas fees. The BYTES is allocation free
guest8296696656 commented on is it not more efficient than using a VecMapper?
https://docs.elrond.com/developers/best-practices/storage-mappers/ Use SingleValueMapper when: you need to read the whole array on every use the array is expected to be of small length Use VecMapper when: you only require reading a part of the array T's top-encoding is vastly more efficient than T's nested-encoding (for example: u64)
guest8296696656 commented on I can make the SC with rust, and create the web with Erdjs for make the swap between my SC and eGold? totally possible make that?
Here's a good introduction to develop a SC and link it to a web page: https://docs.elrond.com/developers/tutorials/your-first-dapp/
guest8296696656 commented on I never had an issue like that, try to disable your others extensions and restart your browser. Do you use chrome ?
Thank you for your answer! I pass an egld balance (like 0.9) instead of a BigNumber in the transaction ahah
guest8296696656 commented on Hi guys, I have a question about play to earn, how can we develop a level system, for example: improve a weapon (NFT) to level 4, should the level be managed in the NFT or just in the game database ?
The more you are on-chain, the better is it, I think ? You can easily update attributes of an NFT: https://docs.elrond.com/developers/nft-tokens/#change-nft-attributes
guest8296696656 commented on The question I got from your proposal is : can we make API calls to outside server from a SC ?
Good question ! For the moment, I am working on setting the URI of the NFT to the server that generate the image. So the URI of my NFT would look like www.mywebsite.com/?eyes=blue&skin=purple ? I will try to host it on IPFS after ^^