All Questions
1,804
questions
0
votes
1
answer
15
views
FA2 view not working correctly
I've deployed an FA2 token that is supposed to use a token_metadata view to display the token metadata. The view is works fine if you call it directly, but it doesn't seem to be affecting the token ...
0
votes
2
answers
15
views
Size of Big_map or Big_map is empty?
Is it possible to find the size of a Big_map, or to find out whether a Big_map is empty?
1
vote
1
answer
77
views
In List.fold, does accumulator have to be the same type as list?
I'm trying to loop through a mapping list (type_a) and update a different mapping list (type_b). Both lists are different.
For List.fold, does the accumulator have to be the same type as list? ie, if ...
1
vote
1
answer
67
views
How to write function that uses polymorphic types
I'm trying to write some functions in (came)ligo that compare several values as long as they are ints, strings, or nats. compare_equal is one of them.
This errors out with Only composed types of not ...
1
vote
1
answer
23
views
What is the guideline on when you can and cannot use lazy entrypoints, and are there any limitations to using them?
My current understanding is that lazy entrypoints are stored in big_maps which impacts gas and improves performance of operations inside the entrypoint.
I also understand that there are limitations to ...
0
votes
0
answers
8
views
How does Tezos Checker work?
I am looking at Tezos Checker and wondering if there is a visualization of the process flow how it works? Specifically something like this for example?
2
votes
1
answer
107
views
Calling contract without knowing contract parameter type
If I wanted my contract to be able to call different types of contracts, with different parameters and parameter types, and I didn't know what those parameters were going to be ahead of time...
I have ...
0
votes
0
answers
13
views
Tezos.get_contract fails even though contract exists
I have a view caller that calls the view of my main contract. I'm not sure why this is happening, but the contract fails at get_contract_with_error. Also, Tezos.call_view returns None.
Here's what my ...
0
votes
1
answer
8
views
Can't connect to self hosted Tezos node (Docker setup)
I'm trying to set up a new local node for Jakartanet using the docker setup, as I've done in the past for previous testnets.
Unfortunately, no matter how I try to setup the node, it seems to fail to ...
1
vote
1
answer
20
views
secp256k1 generated private keys
I have a question on the generated key pair (public, private) using secp256k1. Because this is the same curve and params used for both bitcoin and Ethereum.
Does that technically mean, once you have a ...
2
votes
2
answers
149
views
How to separate tokens and NFT(NonFungibleToken) in result of TZKT api? [duplicate]
I used the below API for getting NFT owned by a specific address but it returns both NFT and tokens in the result:
API:
https://api.ithacanet.tzkt.io/v1/tokens/balances?account=...
1
vote
2
answers
78
views
How to create test wallet for providing NFT and tokens in TZKT api?
I need to test API on ithacanet network for showing tokens and NFTs.
I'm looking for a way to create a test account (which provides me passphrase,secret key, and account address) and assign some NFTs ...
1
vote
1
answer
21
views
How do you submit a pair when calling an entrypoint on a contract with Taquito?
I am trying to submit a Pair of Bytes in a contract call with Taquito but am receiving an error.
The contract interaction documentation does not go into exactly how to submit a Pair, but it does go ...
2
votes
1
answer
37
views
How to get wallet tokens balance with the help of address and tokens contracts?
I have a wallet address and token contracts
For example:
wallet address: tz1MmduNCzoKU9GHngwLqC8TmExTHQXJCSTn
and Tokens contracts:
Plenty: KT1GRSvLoikDsXujKgZPsGLX8k8VvR2Tq95b
Quipu: ...
1
vote
1
answer
31
views
Why does unpacking a record that has a key containing bounded data fail with `to_value sp.TBounded` in smartpy?
Tests are throwing a to_value error in the scenario when trying to unpack a record that contains a key with a bounded type TNat inside the entrypoint being called.
There's a minimal reproduction below,...
0
votes
0
answers
8
views
Not Endorsing or Baking
I quite new to Baking and Endorsing.
Run the whole setup from gitlab tezos.
Connected my Nano ledger and everything seems to be setup,
Run node ./tezos-node run --rpc-addr 127.0.0.1:8732
Run baker ./...
0
votes
1
answer
35
views
How to get address from publicKey?
I have a Tezos public key and I want to generate a Tezos address (tz...) from this public key.
I want to do this with Dart language inside the Flutter framework.
0
votes
0
answers
13
views
Get "Unauthorized" while sending transaction by node RPC
I try to send transaction by RPC, but get the "Unauthorized" error.
All the rest requests work correctly.
How can i fix it?
There is my config:
{ "data-dir": "/var/run/tezos/...
0
votes
1
answer
11
views
Getting error in cryptobot smart contract. [What fix is required ?? ]
import smartpy as sp
# TODO: Code needs to be fixed.
class Cryptobot(sp.Contract):
def __init__(self, manager_address, life_state, initial_mutez, market_address):
self.init(
...
0
votes
0
answers
10
views
Ill-formed block of statements
type investment is record [
amount:tez;
deadline:timestamp
]
type investor is map (address,investment)
type user_data is record [
balance:tez;
is_invested:bool;
investment:...
3
votes
0
answers
59
views
Tezos is branched on a block XX which is too old
we've been seeing inconsistent errors when we broadcast to our full node. We use the latest block as our branch when broadcasting but still encounter this:
Operation ...
1
vote
1
answer
25
views
Error with archive-node using tezos-k8s (kuberneties) Invalid data directory '/var/tezos/node/data'
I am using helm charts from https://github.com/oxheadalpha/tezos-k8s
I have my own values.yaml to setup an archive node but when the node starts I get this error
Invalid data directory '/var/tezos/...
0
votes
1
answer
36
views
how can i get Allocation fee and storage fee before transaction submit
like this, i send the token in the first time to others, and i set the baker Fee by a no change number as 0.00135, but after transaction, i search it in explorer , i found it need 0.06425 to pay ...
3
votes
1
answer
40
views
Why can I not subtract 2 local variables of type nat from each other and assign that result to another local variable in a view in smartpy?
I am trying to do some maths operations inside an on-chain view and am getting an unexpected result.
The reproduction contract tries to perform the following steps:
Define an internal contract ...
1
vote
1
answer
41
views
How can I manually generate a tz3 wallet address?
I want to be able to test some signing functionality (or lack thereof) with tz3 addresses, but I'm not sure how to create one.
Any advice on where to start would be greatly appreciated.
1
vote
1
answer
24
views
Account blocked on pending interaction hangzhounet
as tittle says, my account got stuck at a pending interaction/operation, the hash of the operation doesnt exist when searching it on explorer, i can see the pending operation on temple wallet, umami ...
2
votes
1
answer
34
views
Which hash function is used when converting an address from raw bytes?
With the raw address 0x0000861299624c9a3b52be10762c64bac282b1c02316 the first 4 characters (0000 in this case) represent tz1 and the rest of the string is the raw Tezos address.
From my research it ...
1
vote
1
answer
30
views
How to simply store signed, hashed data on Tezos blockchain?
I'm new to Tezos. I'm wanting to store some signed, hashed data on the Tezos blockchain, most likely using Taquito/Batch API. Can anyone direct me to the correct method to simply send the data and get ...
0
votes
1
answer
70
views
How to get all NFT(Non Fungible Token) which created on the specific smart contract of the Tezos blockchain?(getNftForContract)
I have a smart contract address and I want to get the list of all NFTs that exist on this smart contract!
The goal is to get all NFTs data (Like its address, its visual, and its value) with the same ...
2
votes
1
answer
17
views
Why does calling sp.address() with a dynamic value inside an entrypoint fail?
Is there some way to call sp.address inside an entrypoint and pass in a dynamic String?
I have created an example contract showing the failing state:
import smartpy as sp
class ...
0
votes
0
answers
33
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
...
0
votes
1
answer
59
views
Jakarta testnet RPC does not work
I'm trying to run Jakarta testnet node locally. Node starts and syncs, but RPC does not work. docker-compose.yaml I'm using:
version: "2"
services:
node:
image: tezos/tezos:v13.0
...
0
votes
0
answers
19
views
Getting "Ledger Application level error (sign-with-hash): Parse error"
Found a similar topic at
After upgrading to 12.2 i'm getting baker errors: Ledger Application level error (sign-with-hash): Parse error
but even after updating the Ledger baking app version to 2.3....
1
vote
1
answer
35
views
How to encrypt a private key
I have a private key which I would like to encrypt so that storing it locally is safer. I would like to use the commonly used encryption method so that I can decrypt the result with the available ...
1
vote
1
answer
27
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) ...
2
votes
0
answers
44
views
How to use internal hacks to convert from String to Address (or from Address to String) in SmartPy
There is a similar question but it does not fully answer this question.
In the answer for that question posted here there is mention that while it is officially not possible it is actually technically ...
1
vote
1
answer
25
views
Receiving a "doesn't have a comparable type" error when returning a list from an on-chain view
When I return a list from an on-chain view am receiving a type error but am unsure where to set the type in order to fix it.
Returning a string or integer from the view works fine. Is there a set ...
1
vote
2
answers
36
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/...
0
votes
1
answer
28
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
0
votes
1
answer
21
views
Is the endorsement quorum lowered, when a baker loses its baking rights, after two double (pre-)endorsement in the same cycle?
Since I can't find my source for this information, I formulate this question in two parts:
If a baker is shlashed twice in the same cycle for double (pre-)endorsing he has no frozen_deposit.
Does ...
1
vote
1
answer
26
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 %...
1
vote
1
answer
23
views
can not injection/operation because 415 not support media type
i have get the sign transaction hash, then, i send RPC request(/injection/operation) like this to brocast operation, this is my junit test, but it return 415 not support media type, i guess because of ...
0
votes
1
answer
53
views
Buying NFT's on objkt.com using Pytezos
To learn Pytezos I am trying to buy NFT - from Tezzardz collection on objkt.com using Pytezos. How can I specify which Tezzard # I want to buy in a code? Is there anything else I need to know?
test = ...
0
votes
2
answers
35
views
rpc error while setting up tezos-client
tezos-client --endpoint https://edonet-tezos.giganode.io/ config update throws error
Failed to acquire the protocol version from the node
Rpc request failed:
- meth: GET
- uri: https://...
2
votes
1
answer
35
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 ...
0
votes
1
answer
20
views
Does a rolling node have the information to serve RPC queries without relying on other, full nodes?
Does a rolling node have the information required to serve RPC queries without relying on other, full nodes? I am not interested past balances or contract states, but I do want to query the current ...
0
votes
1
answer
23
views
Transaction precedence, transaction priority, bake priority within a block - how is it decided?
What exactly decides the execution order of transactions within a block?
I have read here that baking fees matter, but I am not sure how in particular.
Transactions within past blocks don't seem to be ...
0
votes
0
answers
43
views
Taquito / BeaconWallet : how to check connected network?
I've developed a faucet for testnet: https://tezos-testnet-faucet.netlify.app, using Taquito and Beacon Wallet.
And I have a strange, and dangerous, behaviour with it. I tested only with Temple wallet,...
0
votes
1
answer
17
views
my tezos oracles docker image (tqtezos/oracle-stock-ticker) is unable to find activation code via faucet file
my tezos oracles docker image (tqtezos/oracle-stock-ticker) is unable to find activation code from faucet configuration file using flask app.
Getting following error:
File "/usr/local/lib/python3....
0
votes
2
answers
17
views
xtz preso em simplestaking.com
When I try send XTZ from my adress validated by TREZOR T WALLET, it (simplestaking.com) shows that mensage "the sum of gas consumed by all the operations in the block exceeds the hard gas limit ...