649
questions
0
votes
0
answers
31
views
installed near and got usb lib error, what is the trouble?
I installed near over WSL setting.
Linux NT00654071 4.4.0-19041-Microsoft #3996-Microsoft Thu Jan 18 16:36:00 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
node and npm versions are fine. I changed default ...
0
votes
1
answer
18
views
Are we able to use near-indexer-framework with current Existing Validator Node?
If i have a validator node is running, are we possible to use near-indexer-frameowork without init a new full Node and based on current validator node to index the data? Currently saw it in Nearcore ...
0
votes
1
answer
35
views
How to get the account ID for a delegate action in a Near protocol contract?
I'm trying to use delegate actions with my contract.
From the contract's point of view it's irrelevant whether the action is in a standard transaction, or a delegate one. How can I get the relevant ...
0
votes
0
answers
19
views
Deploy Simple Smart Contract Error: Cannot sign a transaction due to an error while fetching the most recent nonce value
I created and deployed a simple Rust "Hello Contract" example on WSL2 (Windows 11) with testnet account created and login successfully but always get the following error:
Error:
0: Cannot ...
-1
votes
1
answer
42
views
SQL function Error : near "FROM": syntax error [closed]
IDK what is wrong but its not working? Could someone help me on this? I am trying to get an output with diagnosis and if patient id is even then Yes and No otherwise.
Error : near "FROM": ...
1
vote
1
answer
55
views
How to get all transaction and user information from bigquery Near and indexer-lake-framework?
I realised that the transactions and user account information from bigquery-public-data.crypto_near_mainnet_us and near-lake-framework is not block height 0, and it is starting record from 2020-07-21 ...
1
vote
1
answer
38
views
I use near view with a contract method and get a MethodNotFound error, but the contract was deployed successfully
I created a .wasm file using this Rust code
use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize};
use near_sdk::{near_bindgen, env};
const PASSWORD_NUMBER: u8 = 1;
#[near_bindgen]
#[derive(...
1
vote
1
answer
43
views
How to get all NFT(NEP-171) owned by specific account in near protocol?
I want to get all NFT account owned.
The way I found is just get account owned token in specific collection.
const params = {
request_type: 'call_function',
method_name: '...
2
votes
1
answer
63
views
How to get all validators in near blockchain through bigQuery?
I am doing a project to collect all validators in near blockchain. Is it a way to get all the validators in near blockchain through big query? Or any others way can done it?
That is expected to Get ...
0
votes
0
answers
15
views
Near Balance Mismatch for address - opp_near_disc.near
I was checking the balance for the near address: opp_near_disc.near
Explorer link: https://nearblocks.io/address/opp_near_disc.near
Its mentioned as 3.50014 N, but when I went through transaction ...
0
votes
2
answers
188
views
Get NEAR blockchain transactions
I try to get all transactions of an account from NEAR blockchain. Apparently, nearblocks.io provides an API to retrieve them from, since they index the NEAR blockchain (as I understood). However, when ...
0
votes
0
answers
23
views
"recipient" of the message in near protocol signMessage function
I'm trying to authenticate account in backend for NEAR protocol
Referring this doc:
https://docs.near.org/develop/integrate/backend-login#2-ask-the-user-to-sign-the-challenge
const signature = wallet....
0
votes
0
answers
20
views
Just following the FastAuth SDK documentation won't do the job
I've been practicing with the NEAR Fast Auth SDK documentation and encountered a problem while setting up the frontend on GCP.
An error occurred, and I've uploaded a video to https://youtu.be/...
-1
votes
1
answer
43
views
Using a ledger to call a smart contract on NEAR in CLI version 4+
It looks like the useLedgerKey flag has been deprecated in near-cli version 4+ but it's not clear what the replacement syntax is.
For example, how would I run the equivalent of this in the new cli:
...
0
votes
1
answer
68
views
Decoding base64 from `View Contract State Changes` NEAR RPC API
I am using the NEAR RPC API to gather on-chain data. I am trying to use the View Contract State Changes call (https://docs.near.org/api/rpc/contracts#view-contract-state-changes). I'm having some ...
1
vote
1
answer
133
views
Near js micro transactions/meta transactions relayer
I really need your help with realization meta transactions on Near. I find this dock:
https://docs.near.org/develop/relayers/build-relayer
that have no examples and not described imports and also this ...
0
votes
0
answers
31
views
Google Places API SWIFT UI how can i get 60 results at the same call
I'm working with the Google Places API and aiming to obtain 60 results in one go. Wondering if it's feasible to utilize the nextpagetoken during the initial request to efficiently retrieve the data. ...
0
votes
0
answers
36
views
Test problem in near protocole template app WASM file
I simply created an app with npx create-near-app@latest
When i run the following command :
npm run build && npm run test
I have the following error :
`Debugger attached.
⚠ The timeout option ...
3
votes
2
answers
277
views
How to Borsh serialize (in Typescript) arguments to interact with Aurora contract from Near?
I have the following contract deployed on Aurora testnet:
pragma solidity >=0.6.12 <0.9.0;
contract Counter {
uint256 value;
function print() public view returns (uint256) {
return ...
0
votes
1
answer
154
views
How sign a message on Near with Meteor Wallet in js app?
I would like to get the signature of a message 'hello' on Near in my Next Js app.
I wanted to use this code : https://docs.near.org/develop/integrate/backend-login, but I did not manage to connect to ...
1
vote
1
answer
118
views
How to get all accounts from near protocol blockchain?
I am currently working on a program within the Near Protocol to generate user-specific Near token ownership statistics. However, I'm not sure how to obtain a list of all user accounts. Is there an ...
1
vote
1
answer
87
views
Smart Contract in NEAR
I am working on (a smart contract in NEAR ) "nft collection where only admin can mint tokens" This is causing an error ExecutionError: "Smart contract panicked: Method mint_nft doesn'...
1
vote
0
answers
53
views
How can i view all the state for NEAR blockchain and respectively for arbitrary smart contract and prove some value takes part in calculation root
I want to prove that some value that is stored in smart contract on Near is takes part of calcualtion in whole blockchain state root.
I have found the view-state function that odes the job of the ...
1
vote
1
answer
57
views
Pagoda relayer implementation throwing 422 server error
I am trying to run a simple example on the Pagoda relayer on NEAR Protocol, here is the relayer repo I cloned and I am running locally - https://github.com/near/pagoda-relayer-rs
This is my JS script ...
0
votes
1
answer
135
views
how can i retrieve the number of validators on NEAR blockchain using SQL query?
As you know the NEAR blockchain is based on Proof of stake protocol.the number of validators can be based on validators 'staking' or even 'not staking'. i'm new to this and i don't know which ...
3
votes
2
answers
720
views
How to get NEAR WALLET accountId from private or public key?
Im trying to get the NEAR WALLET AccountID.
I have the next vode to get only the public key but i want also to get the account ID from privatekey or from public key.
const nearApi = require('near-api-...
1
vote
1
answer
129
views
Does not get to get the balance amount for the near wallet
I want to get some sums of my wallet balance using 'near-api-py' lib on 'Account' tab of wallet profile(https://wallet.near.org/profile):
Wallet balance(NEAR, USD) - near_provider.get_account(...
4
votes
1
answer
142
views
Smart contract panicked: cannot read property 'prefix' of undefined\n
I am trying to interact with a smart contract method and getting the error -
ExecutionError: "Smart contract panicked: cannot read property 'prefix' of undefined\n" +
' at ...
1
vote
0
answers
54
views
How to fix 'TxExecutionError' for partial unstake of near coins
I am trying using the 'near-api-py' library of the function_call method of the Account class, to unstake my near coins from the staking:
from near_api.providers import JsonProvider
from near_api....
2
votes
1
answer
49
views
How to fix ActionNoPermission
I'm trying to use the near-api-py library to lock the currency on allnodes.com
def sign_and_send_tx():
_signer = Signer(my_wallet_id, key_pair)
_account = Account(account_id=my_wallet_id, ...
1
vote
1
answer
146
views
How does NEAR asynchronous actually works?
Based on the documentations, articles and ... here what i understand of NEAR asynchronous. Please correct me if i am wrong:
Due to NEAR asynchronous design and Nightshade algorithm. Transactions (or ...
2
votes
1
answer
66
views
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 ...
0
votes
3
answers
81
views
Calculating the Balance for Near Address 35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near
I tried calculating the balance for address 35b2e85e2e7add13abcd8ae62998cbfad9bad5bf.lockup.near.
As shown in the explorers the balance for the above address is 3.50036 Ⓝ. But when I see the ...
1
vote
1
answer
33
views
"gas_burnt" and "tokens_burnt" values in the refund receipt are not zero and are not the same
Based on documentation, the gas_burnt and tokens_burnt in the refund receipt is zero:
{
"block_hash": "Gm6TFS1ZxmA45itVj8a7vE8yJF8V5hXeNF1EhEVr7GVS",
"id": &...
1
vote
1
answer
250
views
How to verify ed25519 signature in NEAR Smart contract?
As we know that near_sdk provides ecrecover method to verify ECDSA signature in near smart contract.
Is there any way to verify ed25519 signature in smart contract ?
I have used ed25519-dalek crate ...
0
votes
2
answers
367
views
How named accounts works in NEAR
It appears that named accounts in NEAR are being managed by the near and register smart contracts. However, this raises the question of whether NEAR natively supports named accounts. it's unclear if ...
2
votes
2
answers
55
views
Register and Near smart contracts
In NEAR, there are two smart contracts created in genesis: near and register smart contracts. These contracts handle account IDs, but I can't seem to locate their source code. Could someone please ...
1
vote
0
answers
92
views
How FastAuth save the private keys
I use FastAuth to create a new NEAR account. Then I find that when created, two full access keys are added, when recover, one new full access key is added
when I first create account via FastAuth, ...
1
vote
1
answer
49
views
Missing blocks in Near Mainnet [duplicate]
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 ...
2
votes
1
answer
20
views
How can I query FTs with a specified account name using RPC call on NEAR protocol?
Could anyone can help me slove this proble
m. I want to quey FTs with specify account_name. I find the doc「https://docs.near.org/zh-CN/tutorials/fts/simple-fts%E3%80%8D, and query by rpc call, from ...
2
votes
1
answer
53
views
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 ...
2
votes
1
answer
97
views
Get block height of transaction create account with account id NEAR Protocol
I already deploy a contract in Near protocol for a long time. Now we need to get the block height, when the first time contract deployed.
Is there any api can get that information with the account id?
...
-1
votes
1
answer
154
views
How can I know which functions call a certain TypeScript function, I cannot find an instance where it is called
I have a TypeScript function called signMessage which is called when I send a transaction (a smart contract call).
https://github.com/fireblocks/fireblocks_matic_near_staking_sdk/blob/main/src/NEAR/...
1
vote
1
answer
84
views
Near Lake Framework Raw Data Processing
I am considering using the Near Lake framework to extract raw data, such as blocks, transactions, and receipts. I'm curious if any data cleaning or transformation occurs on the raw data before it gets ...
-1
votes
1
answer
98
views
How to store API keys in dApp NEAR
For example, my application uses IPFS, access to which I get through web3.storage. But for the web3.storage to work, you need an API token, for which I paid.
Where to store this token if everything is ...
-2
votes
1
answer
396
views
how to use U256 in near smart contract in rust language
I am trying to use U256 in rust smart contract for near protocol with a library called ethnum. But it always give errors like:
the trait `JsonSchema` is not implemented for `U256`
│ |
│ = ...
2
votes
1
answer
117
views
Near address checksum
is there a way to check if address is a valid near address? Currently I've implemented the rules from their docs (https://docs.near.org/concepts/basics/accounts/account-id)
Is there a checksum check I ...
1
vote
0
answers
100
views
How to verify the list of Block Producers and Validators of Nth epoch in Near
https://github.com/near/nearcore/blob/master/docs/architecture/how/epoch.md#how-do-we-pick-the-next-validators
How do we pick the next validators?
in the last block of the epoch T, we look at the ...
0
votes
0
answers
82
views
Not able to run a NEAR RPC node
I'm trying to run a NEAR RPC node following this documentation https://near-nodes.io/rpc/run-rpc-node-without-nearup on testnet.
But at step 6, Run the node, the process is killed.
$ ./target/release/...
2
votes
3
answers
70
views
NEAR-sdk #[near_bindgen] colliding with other macros
I've put together a minimum working example, and you can see it here: https://github.com/synthesis-labs/near-mwe. In summary: I have a simple macro that checks that the owner (an arbitrary definition ...