Questions tagged [rpc]

The tag has no usage guidance.

4
votes
1answer
22 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:...
4
votes
1answer
24 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
28 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
49 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
34 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
24 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
19 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
35 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
42 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
75 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
54 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
49 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
0answers
32 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
31 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
55 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
27 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
58 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
28 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
38 views

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

but the doc have't example. really bad.
4
votes
1answer
82 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
68 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) ...
8
votes
3answers
118 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
66 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
166 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
112 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
88 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 ...
5
votes
1answer
42 views

Tezos alpha node cors

I'm send post request to http://alphanet-node.tzscan.io/blocks/head/context/contracts/<contract_id>/big_map_get from google chrome browser. Google chrome browser send option request and node ...
15
votes
1answer
105 views

How to create a database out of the Tezos node?

We want to build a Website that contains Live-Data from the Tezos-Node. We have a node running, we have the RPCs, we have a mysql database and we want to use Postgres to query the database and "feed" ...
10
votes
2answers
102 views

How do I query the Balance of a KT1 account Cycle by Cycle?

Is there a RPC in Tezos-client, that allows to query the Balance of a KT1 account cycle by cycle? I've tried it with this (TzScan Public-Node RPC): https://mainnet-node.tzscan.io/<block_id>/...
15
votes
1answer
95 views

How to query rewards of a specific KT1 account?

I want to know, how much rewards a specific KT1 Account earned since cycle 7. A good Example is the "Rewards Share" Tab of TzScan. https://tzscan.io/tz1Tnjaxk6tbAeC2TmMApPh8UsrEVQvhHvx5?default=...