Questions tagged [nearprotocol-validator]

29 questions
9
votes
1 answer

Why Blocks are Missing or Skipped on NEAR

I was wondering how come some blocks exist but some don't? It seems like they get skipped and I'm unsure as to why. For example: 87868936 exists and so does 87868938 but 87868938 does not. Thanks!
Benjamin Kurrek
  • 1,044
  • 3
  • 14
3
votes
1 answer

How to setup near node without validating blocks?

I want to setup a near mainnet node. I don't want be part of validation process, I just to want to maintain a copy of mainnet. This copy should have complete history of all the blocks and transactions. Being validator it will require more…
Shubham Chadokar
  • 2,520
  • 1
  • 24
  • 45
2
votes
1 answer

How to get the proper deposit and stake value from Near transactions

I encountered few transactions in which the deposit and stake value is 0 but the logs in the receipts outcome contains the value like in the below curls and their outputs. And also the logs vary in different formats. So is there a way that we can…
2
votes
1 answer

How to get the Balance transferred by System to Near Address

When tried to get the balance for one of Address of Near could see that there is some balance transferred from System to the address but could get this data from the mainnet node also in the transaction details. In the below screenshot I can the…
2
votes
2 answers

Query NEAR RPC for delegators

Is there a way to query the NEAR RPC for all current delegators of a specific validator? I checked the API docs, can't find something like this but seems like an essential function that has to exist.
chris
  • 600
  • 7
  • 21
2
votes
2 answers

Function getAccountBalance() doesn't work

I am creating examples to share with another developers but i try to keep for now very simple the code, all the basic functions are working: I am using the oficial…
josedlujan
  • 5,357
  • 2
  • 27
  • 49
2
votes
1 answer

Is there any method or a way to check accesskey permission on the Near account id?

How can I check the account created by an owner is having a full Accesskey or function_call access key.
2
votes
1 answer

Near mainnet api: Error Block Missing (unavailable on the node)

I was testing near apis and only a few endpoints are working as expected. https://rpc.mainnet.near.org I was trying to fetch the block by id and it was throwing this error. { "jsonrpc": "2.0", "error": { "code": -32000, …
Shubham Chadokar
  • 2,520
  • 1
  • 24
  • 45
1
vote
1 answer

Missing blocks in Near Mainnet

I see there are few blocks missing in Near when I try to query through the archival node. Even I am unable to find them in the explorer as well. Is there any particular reason that the blocks are missing. curl --location…
1
vote
0 answers

Command `yarn jest` failed

I'm learning Near with 'Guide to Cross-contract Calls'. (https://docs.near.org/docs/tutorials/contracts/cross-contract-calls) In step 1, I got an error in a new command prompt when I typed yarn jest. How can I figure it out?
Shift_that
  • 183
  • 1
  • 5
1
vote
0 answers

On-chain poof for staking rewards payout

I am trying to find out how the rewards are sent to the validators account/delegation contract. Where is that information stored and how can it be retrieved from the RPC nodes?
simibac
  • 7,672
  • 3
  • 36
  • 48
1
vote
1 answer

Method not found when update contract in NEAR

I have seen strange behavior when updating contracts in near(using rust) I usually launch 1 first contract as templates, following the usual commands: $ cargo new rust-myproject cargo test -- --nocapture cargo build --target wasm32-unknown-unknown…
josedlujan
  • 5,357
  • 2
  • 27
  • 49
1
vote
1 answer

Icons in near wallet

Does anyone know where in the documentation you can see what each of the icons that appear in the transactions of the near wallet and the testnet wallet mean? I attach an image.
josedlujan
  • 5,357
  • 2
  • 27
  • 49
1
vote
0 answers

near-api-js getAccountBalance()?

Hello im try get account balance after signin always send the same error if (window.walletConnection.getAccountId()) { window.account = await near.account(walletConnection.getAccountId()); window.account.getAccountBalance().then(balance=>{ …
1
vote
1 answer

ERROR TS6054: File '../contract/assembly/sensor_data.json.ts' not found

I am trying to fill some function arguments with a .json file but when i try to build the contract in the Near Protocol the command window returns Error TS6054. I am importing the .json from the same dir with "import * as data from…
EbanCuMo
  • 11
  • 1
1
2