Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


julian last won the day on September 23

julian had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

julian's Achievements


Rookie (2/14)

  • Reacting Well Rare
  • Conversation Starter
  • One Month Later
  • First Post Rare
  • Week One Done

Recent Badges



  1. Hi, I noticed that all NFTs created using the devnet web wallet are getting additional metadata field with info about the file, description, etc. Is there a way to have custom metadata when using `esdt_nft_create` in SC? Is this somehow related to `attributes` format? If so, what should it look like? I couldn't find any information about that.
  2. my learning progress (dapp frontend):Blog post: https://www.julian.io/articles/elrond-dapp-ui.htmlVids: https://youtu.be/Sjpj7Btasgs | https://youtu.be/MpPbi6xkBQsRepo: https://github.com/juliancwirko/elrond-simple-sc-frontend-app
  3. Oh, I understand, so does it mean that we should have something like: let provider = chooseProvider(providerIdFromConfigHere); await NetworkConfig.getDefault().sync(provider); somewhere in the Dapp library? Because I am not sure how it should be integrated there. There is something like: React.useEffect(() => { if (chainId.valueOf() === "-1") { getNetworkConfig() .then((networkConfig) => { dispatch({ type: "setChainId", chainId: networkConfig.ChainID, }); }) .catch((e) => { console.error("To do ", e); }); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [chainId.valueOf()]); But from what I understand it will load the default NetworConfig so the ChainID will be the 'T'
  4. Hi, I try to understand if I can use @elrondnetwork/erdjs (v8.0.0 but also v8.0.1-alpha.5) and SmartContract 'call' function, which uses Transaction under the hood. The problem is that I don't see a way to pass the ChainID where Transaction accepts that. So 'call' looks like this: call({ func, args, value, gasLimit, receiver }: CallArguments): Transaction { args = args || []; value = value || Balance.Zero(); let payload = TransactionPayload.contractCall() .setFunction(func) .setArgs(args) .build(); let transaction = new Transaction({ receiver: receiver ? receiver : this.getAddress(), value: value, gasLimit: gasLimit, data: payload }); transaction.onSigned.on(this.onCallSigned.bind(this)); return transaction; } There is no option to pass the ChainID to Transaction. And it won't use proper chain id if I, for example, set up the 'dapp' with devnet config. So if I won't pass the chainId using Transaction I will always use the testnet because it is set as default in NetworkConfig: constructor() { this.ChainID = new ChainID("T"); (...) It is probably something I don't understand, but for example, if I use 'dapp' library with the devnet config and try to use the browser extension to sign calls to SC, it will always use the testnet and always fail. For debugging I've done some hacks in erdjs like: call({ func, args, value, gasLimit, receiver, chainId }: CallArguments): Transaction { args = args || []; value = value || Balance.Zero(); let chainID: ChainID = new ChainID(chainId || 'T'); let payload = TransactionPayload.contractCall() .setFunction(func) .setArgs(args) .build(); let transaction = new Transaction({ receiver: receiver ? receiver : this.getAddress(), value: value, gasLimit: gasLimit, data: payload, chainID, }); transaction.onSigned.on(this.onCallSigned.bind(this)); return transaction; } Then I can call it like: const contract = new SmartContract({ address: new Address(sc_address_here), }); contract.call({ func: new ContractFunction('finction_name_here'), args: [args_here], gasLimit: new GasLimit(5000000), chainId: 'D', // This is my hack }); This way, it works as it should, but I guess there is something I am not aware of here. Maybe I shouldn't use SmartContract for calling my functions. Maybe there is another way to do it when integrating the `dapp` library? Thanks.
  5. My custom elrond dapp starter kit:
  6. Maybe it will be helpful for someone. Here is my learning progress: Blog post: https://www.julian.io/articles/elrond-smart-contracts.html Vid: https://youtu.be/mIsNI7ZxQRM Repo: https://github.com/juliancwirko/elrond-simple-sc
  7. Hi, I wonder if there is an up-to-date brief demo somewhere on using erdpy and Rust without Elrond VS Code IDE to write a simple smart contract but using my account/wallet on the testnet, like my own .pem, etc. I've tried to use docs and even VS Code IDE, but I had some problems. Maybe there is too much for someone who wants to understand the basics, like erdpy possibilities, how the Rust project should look. This is best to learn on a very simple smart contract without ready to use templates (even the simplest ones). What I would love is a video introduction where someone could show: how to install Rust dependencies and erdpy (I know, it is in docs, but a still good start) how to scaffold the Rust project how to write a simple, smart contract which will receive the egld and do some simple operation, for example, will send this egld to smart contracts owner wallet or something like that how to build, test and deploy such SC using erdpy (testnet) how to interact with it (what owner can do and how and what other users can do and how) how to interact with it using SDKs like JS SDK, for example I would love to do such a video by myself, but first, I need to understand the entire ecosystem better ;) I think the docs regarding smart contracts, maybe templates for them or something else, might be not up to date? I am not sure, but I had some errors during the instructions from the docs and videos about VS Code IDE.
  • Create New...