Questions tagged [smart-contracts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

ListValidationError on interacting with contract using Taquito

I'm trying to interact with this entrypoint using taquito parameter pair token_assets list($token_assets_item) trigger_time timestamp token_assets_item pair amount nat asset_id string ...
user avatar
0 votes
1 answer
22 views

Technical questions about NFTs

I'm new to both blockchain and Tezos. I've created an NFT from a PNG just to try and I'm not sure I've understood all the concepts under the hood. As far as I understand, an NFT Collection (on Tezos) ...
user avatar
1 vote
2 answers
34 views

Tezos - smart contract byte code to michelson

I am trying to figure out the SpicySwap swap fees. Since there is no public implementation available to my knowledge, I am studying the michelson code. For example: https://tzkt.io/...
user avatar
  • 139
0 votes
1 answer
26 views

Tezos.amount>Tezos.balance is wrong?

is "if (Tezos.amount>Tezos.balance) then" wrong? Oddly, the condition is failwith when i sent more tez compared to the contract balance
user avatar
1 vote
1 answer
17 views

How to initialize the storage while originating a contract with storage type (pair (address %administrator) (unit %dummy))?

The contract is meant to allow transfers only from the admin. I what to initialized the admin address at origination. parameter (or (unit %default) (pair %admin_transfer (address %destination) (mutez %...
user avatar
  • 11
2 votes
1 answer
31 views

Pytezos for originating contracts

I am quite new to Pytezos and I have a few questions and would be very happy if you could help me. I want to make my script buy NFT, I know the smart contract address, how could I get from smart ...
user avatar
  • 21
0 votes
3 answers
37 views

Tezos for Python

I am quite new to Python, using it for about half a year. I want to learn coding on Tezos blockchain and got some questions for you. Is there a chance to deploy smart contract using python? I know ...
user avatar
  • 1
0 votes
2 answers
65 views

Alternative for faucet "Unfortunately the faucet has run dry message"

Is there any alternative for faucet as I am seeing "Unfortunately the faucet has run dry" message on the site. I don't understand what "faucet has run dry" means.
user avatar
1 vote
0 answers
7 views

Suggestion more then question about tezos course on plural sight

There is a good course about BlockChain fundamentals on Plural sight but addressing ethereum. It could be great if someone can create similar curse there with targeting tezos with
user avatar
0 votes
0 answers
10 views

Any possibility of writing smart contract in C#

I am exploring smart contract creation in .net C#. have successfully executed thing as per article https://www.c-sharpcorner.com/article/getting-started-with-smart-contracts-in-c-sharp/ for stratis ...
user avatar
0 votes
1 answer
37 views

error when deploying my smart contract

I created a smart contract it compiles without problem but I have an error when deploying, I don't know what this error can refer to... HttpResponse: Http error response: (500) [{"kind":&...
user avatar
  • 109
0 votes
0 answers
18 views

How to change storage price when transferring an nft?

I created a transfer function in this function I pass a price as a parameter, I would like this price to be updated on the storage of my nft... I don't really know how to do it (I'm new to tezos ) ...
user avatar
  • 109
1 vote
1 answer
23 views

how to correctly enter the storage parameters?

I am trying to pass the correct storage parameters in json to be able to deploy my smart contract. Thank you for your attention... (pair (pair (pair (pair (address %admin) (big_map %ledger nat address)...
user avatar
  • 109
0 votes
2 answers
55 views

How to change the storage to transfer of an NFT?

I would like to be able to change the price of an nft when transferring it, but I can't change it it gives me an error... (** Implementation of the FA2 interface for the NFT contract supporting ...
user avatar
  • 109
1 vote
1 answer
41 views

how to fill storage parameters?

I am trying to pass the correct storage parameters in json to be able to deploy my smart contract. Thank you for your attention... (pair (pair (pair (pair (address %admin) (big_map %ledger nat ...
user avatar
  • 109
0 votes
1 answer
25 views

Is it possible to delete an originated (e.g. KT1...) contract?

Is it possible to delete originated contracts? E.g., does Tezos have an analog of Ethereum's selfdestruct? I'm guessing "no" and that it's a deliberate design decision - this is mostly an ...
user avatar
0 votes
0 answers
15 views

I don't understand how the hashlock contract works in the LIGO IDE

I'm trying to understand the hashlock contract: https://gitlab.com/ligolangh/ligo/-/blob/e2672829484927b268c8ab0755247403e1f90675/src/test/examples/jsligo/hashlock.jsligo For me, in a hashlock ...
user avatar
1 vote
1 answer
28 views

Help understanding smart contract - why is this one different?

I'm trying to understand why this smart contract appears different compared to the majority that I've seen when viewing the code section of the smart contract on tzkt.io. I assume the smart contract ...
user avatar
  • 11
0 votes
1 answer
32 views

How to raise or emit an event?

In Solidity there's emit keyword for raising an event. How to do it in Tezos in a smart contract? Namely, a) define b) emit an event ?
user avatar
0 votes
0 answers
25 views

Is there a smartpy util to stringify JSON?

I see there's a good utils repo for strings here: https://github.com/RomarQ/tezos-sc-utils I'm just wondering whether there's one for stringifying JSON. Or an example that does this. Input: map or ...
user avatar
  • 557
1 vote
1 answer
36 views

Using the token_metadata @offchain_view to load tzip-21 compliant metadata

Are there any downsides to how I'm declaring the token_metadata in the @offchain_view below? Loading the data from storage appears to work as expected when testing it on tzcomet and BCD, though I just ...
user avatar
  • 557
0 votes
1 answer
64 views

NFT collection prices API?

I am building on Tezos (I am new here). I was wondering if there is an API for getting floor prices of NFT collections? For example getting the floor price of Tezzardz on OBJKT.com. If not how can I ...
user avatar
1 vote
1 answer
42 views

Storage settings

I would like to deploy my smart contract but I don't know what to put as parameters in the storage (I'm new to tezos). Thank you very much to those who will take the time to help me :) //FA2 '(pair (...
user avatar
  • 109
0 votes
1 answer
17 views

Missing private variable when using private lambda on offchain view

I'm getting the error Missing private variable string_of_nat Is it not possible to use private lambdas within off_chain_views? What could I do if I want to use them here? https://smartpy.io/ide?cid=...
user avatar
  • 557
0 votes
1 answer
26 views

Declaration Error: Variable name "x" already in use

When calling a method that uses a local variable twice, I'm getting this error. Example smartpy link. In this linked code I added a new method test_string_of_nat2 which triggers this behavior. How ...
user avatar
  • 557
2 votes
1 answer
64 views

How do I call an entrypoint of an existing contract using SmartPy?

How does one call an entrypoint of an existing contract using SmartPy? For example, I'd like to be able to write a contract that calls the getBalance method of the existing ETHtz FA1.2 contract and ...
user avatar
0 votes
2 answers
199 views

When does a contract get gas locked?

Right now I'm iterating over a map (not a big_map) that would have at most 10,000 entries. I know big_map is recommended for a large number of entries, however, I'm testing the limitations of both ...
user avatar
  • 557
1 vote
1 answer
48 views

Contract supplied an invalid parameter

I have a little problem because my mint does not pass because of invalid parameters, I don't quite understand why..., in the entrypoint call I deliberately did not put the token_id parameter because ...
user avatar
  • 109
0 votes
1 answer
30 views

How does Tezos manage overflow in smart contracts (in 5-year old language please)?

If Tezos was to shorn their full code set into a small 56bit processor it would cause overflow due to the sheer amount of transactions and overriding gas limit. So it doesn't. So...what process is ...
user avatar
  • 1
0 votes
1 answer
38 views

Branch contract calls

I'm trying to replicate the contracts call for the raw found below: { "branch": "BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW", "contents": ...
user avatar
  • 1
2 votes
1 answer
55 views

Why does `sp.pack('some string')` prepend `0x05010000002e` before the actual bytes?

If I pass in the string QmbPAr5RcCZZDRsNKnf2p1t6GK3Qu7oDH39HCK3aewUq3w to the sp.pack method in an entrypoint and perform and sp.trace in smartpy I expect to get the following bytes: ...
user avatar
  • 79
1 vote
1 answer
36 views

What guarantees do on-chain views provide?

A couple of months back, I asked this about off-chain views (here). Now, on the Hangzhou testnet, synchronous on-chain views are supported. (smartpy documentation). Do these views provide ...
user avatar
  • 557
2 votes
2 answers
113 views

How are royalties programmed in an FA2 contract?

I see some contracts (Dogami) say they take royalty fees even when they're sold on a 3rd party marketplace. How does that work? As far as I can tell, this would require the FA2 contract to have an ...
user avatar
  • 557
0 votes
0 answers
27 views

Can I call FA1.2 token's transfer entrypoint & FA2.0 token's transfer entrypoint from the one contract?

I want to call FA1.2 token's transfer entrypoint & FA2.0 token's transfer entrypoint from the one contract using get_entrypoint_opt/get_contract_opt. But, Both interfaces use "Transfer" ...
user avatar
  • 1
1 vote
1 answer
28 views

How much overhead is there when calling another contract?

How much worse would it be to call an entry point 100x vs calling a bulk operation entry point with a list[0-99] 1x?
user avatar
  • 557
0 votes
1 answer
70 views

RPC error when using @templewallet/dapp

I'm getting this error when trying to execute a contract using temple wallet in my Dapp. Failed to send request to https://hangzhounet.smartpy.io/chains/main/blocks/head/helpers/forge/operations. ...
user avatar
0 votes
2 answers
65 views

Any Tezos RPC alternatives suggestions

The open tezos docs suggest using RPC URL: "https://florencenet.smartpy.io/". It does not work. What alternatives RPC URLs do you use. It seems that when you use the mainnet RPC URL - things ...
user avatar
  • 5
0 votes
0 answers
14 views

Smart Contract without installing in my Mac

I would like to ask, as my Mac Terminal has a problem in setting up the Tezos. Can I proceed into writing Smart Contract via Ligo IDE and connect to my Node (I'm using ChainStack)?
user avatar
  • 1
0 votes
2 answers
72 views

Tezos Contracts Compiling Error

I am just days into learning how to build a dapp on Tezos for my thesis. I tried replicating the steps from Claude's tutorial - https://hackernoon.com/build-your-first-dapp-on-tezos-rwgl3ymb I ran ...
user avatar
0 votes
1 answer
18 views

Has human-readable feedback from contract simulation been considered?

I am wondering if feedback to wallet-users from Michelson contracts has been considered previously in the development of Tezos, and where is it / why is it not being considered ? I am thinking it ...
user avatar
  • 113
0 votes
1 answer
12 views

Online SmartPy IDE run error:

The error says: exports[f] is not a function. Not sure why when I try to run.... import smartpy as sp @sp.add_test(name = "First test") def test(): scenario = sp.test_scenario() ...
user avatar
  • 5
2 votes
1 answer
47 views

Cannot get to initialize empty list in CameLIGO

I'm trying to write a smart contract in CameLIGO that looks like this parameters "Hello world" storage [{ text = "Blob"; voters = ["tz1TKc3zQBMv7Rez77sX4JNdqMvG33LQrURk"]}...
user avatar
  • 21
0 votes
1 answer
32 views

triggering outside actions from tezos

assuming I am running a tezos node, is there any way to create a smart contract in tezos that is capable of triggering outside actions? For example, sending an email to an address, or turning lights ...
user avatar
0 votes
2 answers
37 views

Do FA2 entrypoints need to be at the top level in order to comply with the spec?

Most of the example FA2 implementations I've found, as well as the deployed contracts I've investigated have the required FA2 entrypoints (transfer, balance_of, update_operators) buried in the second ...
user avatar
  • 131
0 votes
1 answer
30 views

List inside of Map, or equivalent?

I want to have a list of data in a map so I can find it with the key which is associated with a user, but I get: Error: Type Error sp.TIntOrNat is not sp.TList(sp.TUnknown()) bad type for map value (...
user avatar
1 vote
1 answer
35 views

How to compare TKeyHash with TAddress? [SmartPy]

I am writing a smart contract which allows the delegate to be changed. I also want incoming payments to be permissioned. Ideally, I want to update the incoming payment whitelist with the baker's ...
user avatar
0 votes
2 answers
47 views

Problem with XTZ wallet

I have a question about XTZ Currency. 2 years ago I deligate XTZ to baker using TEZBOX and all these time I haven't checked it. But today I found out that the TEZBOX wallet is not available. I ...
user avatar
1 vote
1 answer
80 views

Calling Harbinger using Smartpy to get randomness

I want to get a random value in my smart contract to provide a fair distribution of different tokens. I read that using Harbinger to get values and use it for entropy could be the good way to do. But ...
user avatar
1 vote
2 answers
68 views

In Michelson, is it possible to get the balance of an arbitrary contract?

In Michelson, is it possible to get the balance of a contract other than the current one? According to the Michelson reference, it's possible for a contract to get its own balance. But, is it possible ...
user avatar
1 vote
0 answers
30 views

How do I call a tezos smart contract over go

I have deployed a smart contract to my tezos blockchain and want to interact with it. I found the go library tzgo (https://github.com/blockwatch-cc/tzgo) to interact with the blockchain and there is ...
user avatar
  • 11

1
2 3 4 5
7