All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

My testnet baker doesn't produce much

I am trying to bake on testnet carthagenet. I got a VPS on AWS with node full sync a laptop with tezos-client (connected to rpcalpha.tzbeta.net ) + ledger nano S My setup: cat ~/.tezos-node/config....
1
vote
2answers
32 views

How do I get method arguments using Taquito?

When I have a object of type ContractAbstraction<ContractProvider>, I can get a key/value map of all the endpoints in the deployed contract like this: const contract: ContractAbstraction<...
0
votes
2answers
15 views

./tezos-client activate: error Unrecognized command

I am stuck when getting Tezos from faucet https://faucet.tzalpha.net/ : ./tezos-client activate account bob with tz1YdaJWrDdHz4qfVEhPEs7f5EBy4DE2Fzv1.json Disclaimer: ... Error: Unrecognized ...
0
votes
2answers
26 views

Comments in LIGO

What is the syntax for comments in LIGO?
1
vote
1answer
14 views

How to UNPACK into a specific type using tezos client?

I am using the tezos-sandbox cli and trying out packing/unpacking data. I want to try doing the equivalent of sp.unpack(x, t = …​), specifying a type to unpack into, using the command tezos-client ...
1
vote
1answer
12 views

How un/reliable is the timestamp provided by NOW in Michelson?

To which extend can bakers manipulate the timestamp Michelson uses for NOW? I am not really sure how this value is provided to the smart contract and how reliable/unreliable it can be... Is it safe to ...
2
votes
2answers
338 views

Anticipated Delphi Switch

When is the Tezos mainnet expected to switch to Delphi? Is there anything that node owners should do in anticipation?
0
votes
0answers
24 views

Simulation of run_operation of XTZ send gives Failed to parse the request body: No case matched:

I'm dry-running an operation with an xtz amount that is close to my max balance to an unrevealed tz2 account on mainnet to get the fees. When estimating for fees I run two RPC endpoints at the same ...
2
votes
2answers
59 views

Passing parameters in truffle tests

I have this parameter for a function: type modify_list is | Add of list(address) | Remove of list(address) type modify_list_michelson is michelson_or_right_comb(modify_list) When I try to supply ...
1
vote
1answer
17 views

What's the best way to convert from TMutez to TBytes?

Previously when I asked about converting types, I got this useful suggestion: For mutez, you could start to convert to int (by dividing by 1 mutez) and then use the same techniques. I'm wondering if ...
0
votes
2answers
29 views

Delegate or bake Tezos!

I've done some research but haven't been able to find a clear answer on how to proceed with my thoughts on delegate or bake! Just for this discussion assume I have 12000 Tezos at hand. Now, I'd like ...
1
vote
2answers
60 views

How to Integrating SmartPy compiler within the browser?

I have been trying to integrate the SmartPy compiler toolchain within Cryptoverse wars Learning interface and have been going through this video (OCaml Under The Hood: SmartPy) and have encountered ...
1
vote
1answer
23 views

In a SmartPy smart contract, is there 'continue' or 'break' for loop?

In a SmartPy smart contract, is there 'continue' or 'break' for loop? When I use 'continue' for loop, an error occurred. 'Error: invalid syntax'
1
vote
1answer
34 views

How do you set the time of a transfer when testing contracts with SmartPy?

Previously, to set the (virtual) time a transaction happened in SmartPy I used the flag now when running a command like run. Now it seems to cause an error (seems like something changed in an update). ...
0
votes
1answer
32 views

Does Tezos have anything similar to Ethereum's events?

In Ethereum you can subscribe to events through a node and you can then get notified if a specific event, like the receiving of a token transfer, happens. Is this possible with Tezos?
0
votes
1answer
31 views

How to create a contract which would delegate XTZs and receive rewards?

I am trying to write a contract that receives rewards from the baker using a default entry point and should only allow me to change the baker from a different entry point. I am using the smartpy tool ...
0
votes
2answers
39 views

Is there any way to send RPC to other nodes without creating your own node?

I am wondering if there is a way to send RPC to other nodes without creating your own node because I do not have enough capacity to create a node in my laptop. Below is what I have tried. Got some ips ...
1
vote
1answer
12 views

Do on-chain contract calls happen atomically?

I have a couple of questions about on-chain contract calls: Suppose two contracts call each other back and forth (let's say 5 times they transfer messages between them), but at on the last transfer, ...
1
vote
1answer
24 views

How are addresses ordered in Tezos?

Datatypes that can be made into sets must have a defined order. And since set(address) is a valid data type, what is the ordering of addresses? If you make an instance of type set(address), how are ...
2
votes
1answer
28 views

How are sets serialized in Tezos?

The mathematical structure of a set is an unordered collection. If a set does not have an order, how are they serialized by the PACK instruction? According to this overview set is packable.
0
votes
1answer
17 views

What does `consequence of bad union` mean when injecting a block?

Attempted to inject this block but got error: Invalid_argument "Json_encoding.construct: consequence of bad union" What does this error actually mean? The contents of the block look fine; it ...
1
vote
1answer
16 views

How to format storage for a contract call with parameters?

I am trying to construct the storage needed to do an on chain contract call but I'm having trouble passing in the parameters. What is making it tricky is that one of the parameters is of type ...
1
vote
1answer
19 views

How can I manually create an on chain contract call?

Using tezos sandbox mode, I am trying to test an on chain contract call in isolation of the main contract which calls it. If my contract was the Collatz template, it would like be trying to run the ...
1
vote
1answer
22 views

Is it possible to convert types in SmartPy?

For example, converting a TMutez into a TString?
1
vote
1answer
23 views

How should sp.if be used?

I find I run into some unexpected behavior when using sp.if. e.g. a = False sp.if 1 > 2: a = True seems to result in a == True. The example below is doing so in the ...
1
vote
1answer
19 views

how to set type 'Sets' to orginate()

in smartpy, self.init(used = sp.set(t = sp.TSignature)) in taquito await Tezos.wallet.originate({ code: contractJson, storage: { used: [], } }) TezosOperationError { ...
3
votes
1answer
49 views

Why is `branch` needed to parse operations?

I am trying to manually parse an operation. By asking the (testnet) tezos node to parse an operation, one can get data to compare: tezos-client -P 18732 rpc post chains/main/blocks/head/helpers/parse/...
1
vote
1answer
17 views

How to get Harbinger price feed from Taquito

I get an http error 'Key not found' The contract is a harbinger (coinbase carthage) storage contract. What is the correct 'get' param ? Tezos.contract.at('KT1P7D7jt3PfjMpsEKPyao1kHQR93t7XR5zh') .then(...
1
vote
1answer
35 views

Node keeps throwing updater: COMPILATION ERROR

Not sure what happened, but every block it throws this at the end of the block. It seems to still be able to endorse and bake though. updater: COMPILATION ERROR Running on 006-PsCARTHA
3
votes
1answer
109 views

How are Tezos operations encoded?

Given a transaction in its serialized format, how do you parse it to get the destination, the amount, and the other fields? I am not asking for library or RPC endpoint to achieve this but for an ...
0
votes
1answer
33 views

Are there public mainnet nodes? And can we simply run JSON-RPC like /network/points against them?

I would like to call /network/points against one of the public nodes. I tried curl -s ipaddress/network/points after I got the addresses from Giga Node https://tezos.giganode.io/, but it returns ...
0
votes
0answers
20 views

signing and broadcasting operations sdks and other methods?

I'm trying to broadcast an operation using the following method in pytezos as a backend for a dapp: forge -> receive signature (from thanos) -> reconstruct operation group -> inject this ...
0
votes
1answer
12 views

What is causes “Unexpected seed's nonce commitment in block header” when baking in sandbox mode?

I'm running some tests on tezos sandbox mode and in one of the commands for baking a new block, sometimes I get the following error: Unexpected seed's nonce commitment in block header. The error doesn'...
1
vote
1answer
11 views

SmartPy: How to test an invalid transaction sent from a contract call

I am testing a contract in SmartPy that uses a contract call (similar to the Collatz example). Contract 'A' sends a transaction to contract 'B' with some data. Contract 'B' does some computation and ...
1
vote
0answers
18 views

Initialize a record storage with command line

I'm trying to initialize the storage of the record through the command line. I'm trying different variations of: "ligo compile-storage college.religo main 4 Adam 1600" For a record called ...
0
votes
1answer
33 views

How to retrieve the transaction details using Operation Hash in Taquito

I am trying to retrieve the transaction details like status and data using the operation hash in taquito. What I want to achieve is basically take the op hash as user input and retrieve the details ...
0
votes
1answer
34 views

Convert address to string in LIGO

How do I convert an address type to a string type in LIGO?
1
vote
0answers
11 views

How to transfer tez with a truffle instance of a contract

I have a method test that takes an integer as input. I would like to call it and send tez with the transaction/function call. What is the syntax for doing that in JavaScript?
1
vote
2answers
37 views

How can I write On Chain Contract Calls in Tezos Sandbox?

I am trying to write a test case in Tezos Sandbox that uses an On Chain Contract Call. To start with, I am trying to implement the example from SmartPy "On Chain Contract Calls - Collatz" ...
0
votes
0answers
20 views

Standard for generating Mnemonic words for wallets

Is there a particular BIP standard that is recommended for generating mnemonic? Tezbridge and Conseiljs-softsigner both utilises BIP39 but I understand that BIP44 is also being used. Which one should ...
0
votes
1answer
15 views

Call method taking timestamp as parameter from JavaScript

I have a Truffle instance of the contract and I call the method like this contract_instance.test(1); Where test in a function that takes a timestamp as parameter. This gives me this error message: ...
0
votes
1answer
24 views

How are pairs serialized in Tezos?

Running the PACK operation on a tuple (represented as a pair in Michelson, I get $ ligo interpret -s pascaligo 'Bytes.pack((1, 2))' 0x05070700010002 The numbers 1 and 2 are serialized as 0001 and ...
1
vote
1answer
36 views

How are strings serialized in Tezos?

How are strings serialized to byte arrays? I understand that they are treated like strings, and that ASCII (or utf8) encoding is used. But what about the rest of the bytes, what do they mean? Running ...
2
votes
1answer
46 views

How are integers serialized in Tezos?

I think that the int, tez and nat are all serialized the same way. But what is the algorithm? I tried running some examples through the LIGO CLI but couldn't figure out the system $ ligo interpret -s ...
0
votes
0answers
19 views

Node stuck with error “ Irmin_pack__Pack.File(Index)(K).Make(V).Invalid_read ”

My node crashed and is outputing these errors: | Sep 29 11:15:24 - validator.peer: Worker crashed [node_peer_validator]: | ...
0
votes
1answer
36 views

Handling floating point numbers in decentralized exchanges

I am writing a contract in Ligo that manages FA2 fungible tokens with an interface that lets users easily create new tokens. I am building a very simple exchange where the users can create orders to ...
2
votes
1answer
35 views

At what level are nonce's required to be injected within a cycle?

Nonces are to be revealed/injected in the cycle after which they are tied to their block. If you bake a block in cycle 4, and the level % 32 is 0, then you are required to reveal the nonce seed in ...
0
votes
1answer
16 views

in smartpy, local variable param, what's difference?

in smartpy def aa(self) { value_in_func = "1234" msg = "abc" + value_in_func hex_string = msg.encode("utf-8") thingToSign = sp.bytes("0x" + ...
2
votes
0answers
40 views

Can I export an ECDSA xpub from my Ledger?

I just installed Tezos Wallet v.2.2.9 on my Ledger Nano S and I would like to export an extended public key (xpub) from this wallet through Ledger Live. But I would like this xpub to generate ...
1
vote
1answer
41 views

How to call PACK in JavaScript

In my smart contract in LIGO I serialize some data using Bytes.pack which calls the underlying PACK Michelson instruction. In my case, the function signature is (nat, address, nat) -> bytes. Does ...

15 30 50 per page
1
2 3 4 5
26