NEAR Protocol - a sharded, developer-friendly, proof-of-stake public blockchain
Questions tagged [nearprotocol]
636 questions
-3
votes
1 answer
How to add rainbow-bridge to my own React app?
I want to add rainbow bridge on my React JS app to allow my user to exchange tokens between NEAR-Aurora-ETH, I found that there is a NPM package @near-eth/client, but I can't understand the docs and I am unable to add rainbow bridge on my web…

Moksh Singh Dangi
- 65
- 4
-3
votes
2 answers
What does a method signature look like in a NEAR contract that recieves a JSON Array of objects with undeployed structs?
I am looking to receive Proposal data from a Sputnik v2 DAO Contract. I want to call get_proposals but that returns a json list of the proposals. I am unsure as to what the method signature on the callback function would look like to receive the…

Rashi Abramson
- 1,127
- 8
- 16
-3
votes
2 answers
Borrowing confusion in rust on the NEAR protocol
I am developing a smart contract on the NEAR platform which is a lottery. the structure I have is a main contract the holds a Vec of lotteries.
#[near_bindgen]
#[derive(BorshDeserialize, BorshSerialize)]
pub struct LottoList{
owner_id:…

Joby Ingram-Dodd
- 730
- 5
- 23
-3
votes
1 answer
Near blockchain assign payment at backend
I'm new to backend and near blockchain
https://github.com/Learn-NEAR/NCD.L1.sample--lottery
NCD.L1.sample--lottery
When Run the 2nd times
./scripts/2.play.sh
2nd play need to pay $1 near. How to run the 2nd play with set the payment.
Any help,…

faye
- 95
- 7
-3
votes
2 answers
Bad experience with NEAR Protocol development tools
During Blockchain Hackathon Kyiv 2020 we picked NEAR Protocol challenge and found several issues.
Accound and account keys are created in web wallet. Then you should run "near login" command at your server which should launch curl to web wallet and…

Kyrylog
- 5
-4
votes
1 answer
How to calculate storage rent?
I send transactions programmatically and I need to know exactly how much the fee is going to be. I managed to figure out how to calculate fees for ordinary transaction ((transfer cost + receipt creation cost) * 2), but now I'm struggling with a case…

Old Man
- 11
- 3