Questions tagged [nearprotocol]

NEAR Protocol: a sharded, user-friendly proof-of-stake blockchain network

Transferring account information to a function call in the near-js-api

I am attempting to utilize the following method in near-js-api for my contract. It requires a Rust AccountId as input. What is the correct procedure to serialize an Account and send it to the contract? Also, are there any specific considerations when inv ...

Having difficulty incorporating the near/wallet-selector feature into my Next.js application

Hey there! I've been having some trouble integrating the near/wallet-selector from https://github.com/near/wallet-selector into my Nextjs app. Unfortunately, it keeps failing with an error message stating "window not defined." ReferenceError: window is not ...

Having trouble moving NEAR tokens between accounts with near-api-js

I am attempting to move NEAR tokens between two testnet wallets using the near-api-js library in NextJS When I run the send money function of the account, I encounter the following error import { connect, keyStores } from "near-api-js"; export ...