Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
15 views

RPC specification

Where can I find details about tezos RPC specifications? For example, what are the parameters needed for originate to create new smart contract? I want to write a custom node so I'll need this ...
1
vote
1answer
24 views

Is it possible to get all big_map keys using node RPC?

Granada changelog mentions: Added a new RPC to retrieve several Big Map values at once: /chains/<chain_id>/blocks/<block_id>/context/big_maps/<big_map_id>?offset=<int>&...
0
votes
1answer
20 views

How can I get instant updates about missed bakes and endorsements using RPC API?

I'm new to Tezos and I'm searching for a couple of dev tips for my project. I'm creating a scanner which is able to detect missed bakes and endorsements for a specific delegate, which is a kind of ...
0
votes
0answers
25 views

Tezos node RPC seems to scale badly [closed]

Disclaimer: I am not familiar with technical aspects of Tezos nodes in depth. I am going to share my experiences I made while developing in the Tezos ecosystem. Lately I was using the tezos-client for ...
0
votes
1answer
18 views

If you query storage or big map at block X does it include changes from operations of block X?

The RPC (currently delphinet), allows you to query a contract's storage and big map key at a particular block id. GET ../<block_id>/context/big_maps/<big_map_id>/<script_expr> GET ....
1
vote
1answer
65 views

how to get content of message in shielded transactions?

I have a message send with tezos-client like: tezos-client sapling forge transaction 10 from alice to zet13Alicexxxxxx using sap --message 'test' How to get content of send message in shielded ...
0
votes
2answers
53 views

What is script_expr?

The RPC for querying big maps mentions script_expr, but no where else in the Tezos Developer Documentation is it mentioned. What is script_expr? Where can developers learn more about it? What ...
1
vote
2answers
44 views

Making an RPC request from another machine on the same network

I have a machine (A) running a Tezos node, with RPC port set to 8732. Its local IP is 192.168.1.200. I have another machine (B), from the same network, from which I'd like to connect to the RPC of A. ...
2
votes
1answer
44 views

How to monitor RPC block responses for token transfers?

I am wondering how to effectively monitor for some given address for FA 1.2 and FA 2 token balance updates. Given that the entrypoints to the contract are defined, I'd like to write something which ...
0
votes
1answer
36 views

storage_exhausted error when sending to unrevealed account

I'm trying to run an undelegation+transaction of all my XTZ to an unrevealed account on Delphinet (7.5). This also happens in Carthagenet so I'm guessing is a calculation error on my part: The first ...
0
votes
0answers
66 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 ...
1
vote
1answer
48 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
2answers
48 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 ...
0
votes
1answer
24 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 ...
2
votes
1answer
41 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
32 views

What causes /mempool/monitor_operations to exit?

When I run curl http://127.0.0.1:8732/mempool/monitor_operations, the mempool contents are printed to the screen, and more data is printed as more operations come into the mempool (ie: stream of data) ...
1
vote
1answer
23 views

What do the sort and timestamp parameters to /preapply/block mean?

If you look at the documentation for .../preapply/block, you see two parameters: sort, and timestamp But there is no explanation for what these do. The RPC help does not even mention them: $ ./tezos-...
2
votes
1answer
58 views

How do I parse a tezos operation via RPC?

I am trying to find out how parse a transaction using the RPC. I am running both a carthage and main net node on localhost. Both are rolling nodes. I have previously read this answer but I cannot get ...
3
votes
1answer
86 views

Switching from full mode to archive mode

I have a full node with the last checkpoint at block 1077249: $ ./tezos-client rpc get /chains/main/checkpoint { "block": { "level": 1077249, "proto": 6, "...
2
votes
1answer
25 views

Timestamps overflow/underflow errors

In the list of possible errors in RPC: http://tezos.gitlab.io/api/errors.html#michelson-parsing-macros, there are timestamp_add and timestamp_sub errors, that could happen in arithmetic instructions ...
1
vote
1answer
32 views

Tezos RPC shows baker as one of the delegated contracts

When querying the tezos rpc, the baker address is shown under the delegated_contracts, this causes an issue when using tezos-reward-distributor to payout the rewards since TRD looks at the rpc and ...
1
vote
1answer
57 views

Is the set of available RPC calls dependant on the connected node?

When I am connected to rpcalpha.tzbeta.net through tezos-client -l -A rpcalpha.tzbeta.net -S -P 443 config update I can succesfully call tezos-client activate account alice with <...
2
votes
0answers
78 views

HTTP status codes for failing requests

There is a list of all possible RPC errors at this page: http://tezos.gitlab.io/api/errors.html According to my experiments, these errors are returned differently. I found at least two different ways ...
1
vote
1answer
763 views

My Tezbox can't connect to https://mainnet.tezrpc.me

I am trying to make a XTZ delegation. Downloaded the Tezbox, but shows " Error Level N/A Not Connected https://mainnet.tezrpc.me " what's wrong for my tezbox. And how to fix this?
3
votes
2answers
44 views

Synthetic “migration” operations in tzkt.io - any way to get them from the node?

I have a problem similar to this one. We have full node and sync blockchain data to our DB by calling RPC API /chains/main/blocks/N. We have come across some addresses balances for which differentiate ...
1
vote
1answer
172 views

How to use the /pack_data RPC endpoint to pack a map

To pack an address with the /pack_data we pass the following: const packedData = await axios.post( `${nodeURL}/chains/main/blocks/head/helpers/scripts/pack_data`, { data: { string:...
1
vote
2answers
103 views

Failure starting carthagenet.sh with --rpc-port option

I am trying to start carthagenet.sh in RPC mode on Ubuntu 18.04 $ ./carthagenet.sh start --rpc-port 8732 It appears to start fine: v7.0: Pulling from tezos/tezos Digest: sha256:...
2
votes
1answer
83 views

Is there low level documentation about creating transactions available?

I am fairly new to tezos but not the ecosystem of crypto currencies. I am trying to develop some sort of C/C++ library, that is capable of creating a tezos transaction, constructing stake and unstake ...
2
votes
1answer
51 views

General question about RPCs

Can I generate account through curl jsonrpc?? I couldn't find in official developer docs. How can I list up account lists through curl jsonrpc? How can I search transaction detail information based ...
2
votes
0answers
40 views

how can i call specific smartpy tezos contract entrypoint using ConseilJs?

I am trying to set UI that allow users to interact with tezos smart contract by pressing some buttons that have to call the corresponding function in the smart contract with relative arguments
4
votes
1answer
196 views

how to forge reveal operation by rpc

I followed this article to construct operation. But when I try to construct a reveal operation, it always failed. params: { "contents": [ { "kind": "reveal", "...
1
vote
1answer
27 views

set a ui to allow to nodes interact via smartpy contract

Hii have wrote a smart contract using smartpy where i have two nodes that should interact with each other, now i want to set the user interface to simulate the nodes interact what should i use and ...
1
vote
1answer
42 views

what rpc interface dose conseilJs use to get operation by hash?

I want to fetch operation detail by hash through rpc or rest api. And I don't seed any rpc interface implemented this feature at http://tezos.gitlab.io/api/rpc.html#. I see conseilJS has this function....
1
vote
0answers
74 views

Error while setting up Tezos sandbox - RPC request failed

1) OS - Ubuntu 18.04 LTS 2) Docker container is up and running 3) The following command fails tezos-client -A localhost -P 20000 bootstrapped. The error messages is Rpc request failed: - meth: ...
2
votes
1answer
92 views

Invoke rpc method, return “Missing Authentication Token”

I access rpc interface of https://rpcalpha.tzbeta.net:443 through postman, and some rpc give me return value, but some return the error: { "message": "Missing Authentication Token" } such as, /...
0
votes
1answer
30 views

Can I use balance_update at block to confirm account tezos change is valid?

In the return result of rpc /chains/main/blocks/321432, there are many balance_updates field, should I use this field to judge one address tezos banlance change? And how can I confirm this block is ...
0
votes
1answer
52 views

Block Query offset operator not working in the Tezos node

I am running a Babylonnet Full Node. When I try to visit this link: http://domain.com:8732/chains/main/blocks/BM3JSJhststG2TjxGu6K2RKsX6t4ByrcesGLfHypLRtZdaa7kn1~316538 It works. But when I try to ...
2
votes
0answers
36 views

how can I confirm a transfer is valid by rpc result?

I am a developer of a crypto currency exchange, I want to find deposit to my address from each tezos block. After I call the rpc /chains/main/blocks/height, I got the result. And I find there are many ...
1
vote
0answers
35 views

Transaction simulation with preapply fails while injection finish successfully

I'm trying to simulate an operation (transaction) before injecting it. The run_operation endpoint return: { status: 'applied', storage: { prim: 'Pair', args: [ [Object], [] ] }, big_map_diff: [...
3
votes
1answer
72 views

Find balance of an address/contract at a given block / date

Do we have any api mechanism to find the balance for an address/contract for a given blockheight or till a given date.
2
votes
1answer
70 views

Block confirmation

I'm writing a mobile app with Tezos and I'm struggling to understand how to fetch information, so that I can let the user know that the operation should be considered confirmed. I got my operation ...
1
vote
1answer
36 views

Is baker deactivation explicitly recorded on chain?

Can one find out for a given block which bakers were deactivated through an RPC call? Is there any other way to explicitly find baker deactivations?
2
votes
1answer
27 views

Block Heights at which important changes happened to the protocol

I've been exploring the json dumps of each block through ./tezos-client rpc get /chains/main/blocks/<bid> and wanted to know the block heights at which some important changes might have happened ...
3
votes
1answer
171 views

404 error when calling some block ancestor

I am observing different behavior for some rpc call curl -v http://mainnet.tezos.cryptium.ch:8732/chains/main/blocks/BKrq16vch5v3iEE1hHSMENLh54vBikkmqYLDv4j7hANx6ZE3Rmb~72755 gives me no data (error ...
1
vote
1answer
84 views

Call smart contract via RPC error

I am trying to call a smart contract via RPC, but keep getting this error: "Failed to parse the request body: No case matched:\n At /kind, unexpected string instead of endorsement\n At /kind, ...
3
votes
1answer
123 views

How to check if my baker is active?

As I understand, if my baker doesn't have activity for a few days (how many?), it becomes inactive, and I will have to wait for a few cycles again to be assigned rewards. My question is: how can I ...
2
votes
2answers
81 views

How do you discover the indexes of the big maps of a contract?

How do you discover the indexes of the big maps of a contract? It seems you would have to inspect the storage, and correlate with the type of the storage, and pick out the numbers that correspond to ...
1
vote
0answers
56 views

How to deploy a contract to Tezos Mainnet?

I've searched a lot but it seems nothing works at this point So I have a contract.liq source code. I also have up and running tezos-node. Basically the question is how to deploy contract.liq to the ...
2
votes
1answer
296 views

Are there public testnet rpc nodes?

Recently alphanet-node.tzscan.io has turned off. I'm looking for some public testnet nodes for development purpose
1
vote
1answer
38 views

Problem with node after disk space issue

I ran of space with my node, i reset corrected the problem and restarted the node, now i have a weird problem when i run my code, it no longer works. The following query does not work: http://...