NEAR Flutter API is here to empower mobile developers to build flutter apps that connect and send transactions to the NEAR PROTOCOL Blockchain.
- Genererate Keys
- Connect Wallet With Limited or Full Access Keys
- Send NEAR Tokens
- Call Smart Contract methods
var keyPair = KeyStore.newKeyPair();
Account account = Account(accountId: accountId, keyPair: keyPair, provider: NEARTestNetRPCProvider());
var wallet = Wallet(walletURL);
wallet.connect(contractId, appTitle, signInSuccessUrl, signInFailureUrl , account.publicKey);
await account.sendTokens(nearAmount, receiver);
Contract contract = Contract(contractId, account);
var result = await contract.callFunction(method, args);
var result = await contract.callFunctionWithDeposit(method, args, wallet, nearAmount, successUrl, failureUrl, approvalURL);
Calls with a full access key will not invoke wallets.
var result = await contract.callFunction(method, args, nearAmount);