A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
14 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
23 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
142 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
26 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
33 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
1answer
37 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 ...
0
votes
0answers
22 views

How do I get the contents of a big_map after proto5?

On http://doc.tzalpha.net/api/rpc.html there are RPCs now for getting big_map data, e.g. ../<block_id>/context/big_maps, ../<block_id>/context/big_maps/<big_map_id> and ../<...
0
votes
0answers
20 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
85 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
23 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://...
2
votes
1answer
23 views

Baking a block: What happens if

Originally asked here but probably more appropriate to ask on SE. I'm working on creating a better baker binary. This baker would have more advanced features than what we get with tezos-baker such as ...
1
vote
1answer
20 views

Calculate total supply of XTZ for a given block

I want to build a real-time Tezos yearly/monthly inflation calculator that updates for every block. While I have the rewards calculation under control I don't know how to calculate the total XTZ ...
1
vote
0answers
22 views

What means this error?

When I want validate my offline generated transaction using RPC call /chains/main/blocks/head/helpers/scripts/run_operation. I got error: Json_encoding.Unexpected_field(\"protocol\") My generated ...
1
vote
1answer
15 views

Query operations by id on ROLLING History Mode Node

Is it possible to query operations by id using node synced in ROLLING History Mode?
8
votes
2answers
163 views

How to get big map value on Babylon

Babylon will have a new RPC to query big map value according to this link http://tezos.gitlab.io/babylonnet/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr I tried using it with a ...
3
votes
0answers
24 views

How to communicate directly with a Tezos Node in a JavaScript browser program?

In the spirit of decentralization, I would like my decentralized application, a JavaScript application running in a user's browser, to be allowed to communicate with the Tezos node of their choice. ...
2
votes
0answers
33 views

How can I point Tezbox to my own node?

So I have a node and a baker running. I would like to know how can I get Tezbox to connect to it from LAN or the Internet. Apparently it needs SSL connection but I guess it can work with Snake Oil ...
0
votes
0answers
44 views

Archive Node Syncing: Block Level and Block Hash Do Not Match

Syncing an archive node from scratch. I noticed that the block level is inconsistent with the block hash. # tail -n 2 /home/ubuntu/.tezos-node/tezos-node.log && tc rpc get /chains/main/blocks/...
1
vote
0answers
26 views

What's RPC api to get unconfirmed balance?

Is it possible to get unconfirmed balance through the rpc REST api? I didn't find any on the official documentation: https://tezos.gitlab.io/mainnet/api/rpc.html#get-block-id-context-contracts-...
1
vote
2answers
223 views

Current level of block-chain

How can I get an actual level of block-chain from not synced node (via RPC). i.e how get how many blocks left for synchronization my node?
2
votes
1answer
66 views

How do I get the contents of a big_map through the RPC interface?

I'm trying to view the contents of a big_map in the storage of a smart contract. However, querying my Tezos node doesn't seem to provide that information. Is there a way of using the RPC interface to ...
6
votes
2answers
68 views

Tezos RPC doesn't respond with blocks below the current checkpoint

I've run my own instance of Tezos node and it seems that the node doesn't respond with blocks below the current checkpoint. GET /chains/main/checkpoint response: { "block": { "level": 212993, ...
4
votes
1answer
66 views

What is the difference between `balance`, `frozen_balance`, `staking_balance` and `delegated_balance`

In the delegates RPC results what is the difference between balance, frozen_balance, staking_balance and delegated_balance?
4
votes
1answer
50 views

How can internal transactions be fetched?

Is it possible to get information about internal transactions from the Tezos node RPC interface? If so, what is the call? If not, what other options are there for getting internal transactions apart ...
4
votes
1answer
51 views

Operation bytes parsing

I am trying to query the RPC parse operation method and I found another question about it. But I can't figure out why operation bytes with the same data are different (58 vs 90 bytes), moreover: Query:...
5
votes
1answer
66 views

which rpc endpoint is used to find the roll snapshot which was used for determining baking/endorsing rights at a certain cycle?

I would like to know, for every baker at cycle x, how many rolls they owned that contributed to their baking rights in that cycle. To do that, I believe I have to know how many rolls they owned during ...
3
votes
1answer
45 views

How can I use TLS RPC endpoint and tezos-admin-client at the same time?

(Tezos version: d272059bf474018d0c39f5a6e60634a95f0c44aa) I recently configured my tezos node with TLS certificate on the RPC API: .tezos-node/config.json: { [...] "rpc": { "listen-addr": ...
7
votes
1answer
91 views

How to use rpc parse operations endpoint

I am trying to query the RPC parse operation endpoint The RPC documentation only states that this endpoint Parse operations and I can't seem to find example of how to use it on the web. What I am ...
4
votes
1answer
56 views

How do I get my delegatees' addresses and delegated funds for a specific cycle from the Tezos RPC?

As a baker I want to calculate the rewards to pay the addresses delegating to me (delegatees). For this, I need the effective contribution from my delegatees, to my baking/endorsing rights in a ...
2
votes
0answers
32 views

How to forecast as a baker your next upcoming time slot by using baking rights RPC? [duplicate]

1) "You get assigned slots to bake and endorse. If you are not online at the time of your slots, you miss them" - ->>Can a baker just stay offline UNTIL her next time slot comes up? I just want to ...
4
votes
1answer
26 views

Can /context/constants change apart from a protocol change?

The node RPC allows you to ask for the context constants for any block via /chains/<chain>/blocks/<block>/context/constants. Is it possible for these constants to change apart from a ...
5
votes
1answer
67 views

What are all of the operation types supported in Tezos?

Is there a way to query for a complete list of operation types that are supported in Tezos?
2
votes
1answer
101 views

Hwo do I get list of operations using RPC api?

What's the API to get list of transactions for a given address?
5
votes
1answer
130 views

Gas consumption in a chain of internal transfers

I am trying to perform a chain of contract calls with internal transfers. I think my current contracts are very simple, but I run out of gas after only 4 internal transfers: A script or one of its ...
5
votes
0answers
114 views

Activating an account on alphanet using public node

I'm trying to activate an account on alphanet using a public node. I can't do it via my local node because I run into this problem, which is probably related to this. So I decided to use a public ...
5
votes
1answer
73 views

Issues with the Tezos Node CPR script to restart the node after failure

I'm facing some issues with the Tezos Node CPR script from Etom Knudsen, which serves to automatically restart the node after failure. The script has a bug in the function to call network stats in ...
3
votes
1answer
85 views

How to initialize storage using tezos-client

I have a contract with storage as let%init storage = (Map : (key_hash, nat)map) I want to deploy the contract using tezos-client originate contract command. I am unable to init storage, tried ...
3
votes
1answer
33 views

Error: cannot_parse_bock_header

Does anyone know, if this error means that is a bad block? or that i'm doing something wrong? The error happens when I try to Inject a Block. [{"kind":"permanent","id":"validator.invalid_block","...
7
votes
1answer
80 views

is it possible for tezos-node RPC to authenticate clients with SSL?

We can enable TLS on the RPC port with the --rpc-tls=crt,key option when running the tezos-node, but is it possible in any way to authenticate clients that request data from the RPC? (beyond layer3/4 ...
2
votes
1answer
44 views

How to use RPC to judge whether a PKH is revealed?

I didn't find out from the RPC document how to judge whether PKH reveals or not. I also try to get status from https://api6.tzscan.io/v3/account_status/ ,but i can't get what i want. So how to use RPC ...
2
votes
1answer
88 views

How is chain_id computed?

The RPC GET /chains/<chain_id>/chain_id returns: 'the chain unique identifier' How is this identifier computed?
1
vote
0answers
44 views

How do I use RPC to get operation through hash [duplicate]

I want to get a transaction by its hash. For example, there is this api provided by tzscan: https://api6.tzscan.io/v3/operation/{op_hash}. I want to know how to do the same using the node RPC, but I ...
-3
votes
1answer
41 views

is this RPC methods related about : deploy or call contract? [duplicate]

but the doc have't example. really bad.
4
votes
1answer
141 views

How do I get a list of baking rights for a wallet address using the RPC API?

Using the tezos node, is there an RPC command from the API that allows one to retrieve the baking rights of any given address for a given cycle ?
8
votes
3answers
81 views

How i can get the header of an uncle block using rpc?

Look at this level (a random pick from tzscan alt. branches) : https://tzscan.io/heads?level=308597 At this level there are 2 blocks : BKwxHgaBKAPBK8ofYgUoJTn3WVMbhVouhZgDzExmnAXHsUXqvp7 (the winner) ...
9
votes
3answers
291 views

How to create a transaction

I'm trying to understand the different steps involved in the creation of a transaction operation. Tezos-client -l shows a number of RPC calls, among them: chains/main/blocks/head/helpers/scripts/...
11
votes
1answer
129 views

How to make a tezos node set CORS headers

I’m running a test sandbox locally. Anyone know an easy way to make my sandbox RPC service add a Access-Control-Allow-Origin: * header so that I can avoid CORS errors while testing locally? rpc....
12
votes
4answers
247 views

What are the best practices for hosting Tezos nodes with exposed RPCs?

If i host my own node, e.g. like TezBox does, what's the best practice regarding accessibility of certain RPC endpoints? TzScan already restricts certain calls, as described here. Tezos docs advise ...
16
votes
3answers
160 views

Binding the node to any address, not just localhost

Anyone know how to run node to bind to all address? I seem not to be able to rpc connect remotely, it binds to 127.0.0.1 and nothing else. I set up in the config file listen address to 0.0.0.0:8732, ...
5
votes
2answers
157 views

How to call a smart contract method with params with eztz?

Does Eztz have some method for calling smart contract methods with parameters? For example if my contract has a method let%entry createFile ((fileHash : string),(manager:key_hash)) storage How can ...