Guideline

  1. Sign In with NEAR wallet
  2. You’ll see this page on your browser:

Снимок экрана 2022-06-15 в 12.16.06.png

Request LNC Storage - if your account never interacted with LNC tokens you cannot do transfers or receive some tokens, because you need at least 125 bytes of reserved storage at the token contract to store your keys for internal low-level operations (like transfers for example) Deposit _ LNC - you can deposit any integer amount of your LNC tokens directly to an application

  1. Fill input text field “Recipients and amounts” with the supported format and click the “Verify accounts” button. Supports only integer amounts of tokens

Снимок экрана 2022-06-15 в 12.23.32.png

  1. The “Check storage balances” button is now enabled. As you remember, we were talking about storage deposit to token contract. We need to check that our recipients have some storage balance in the LNC token contract. If we press this button, the app checks all valid accounts and routes us to the wallet sign page with the transaction - storage_deposit for all unregistered accounts. You can do this (pay for your friend's registration) or ask them to fund some storage in the LNC token contract with a call:
near call lnc.factory.tokenhub.testnet storage_deposit '' --accountId $YOUR_FRIEND_ACCOUNT_ID --amount 0.00125

<aside> ⚠️ The app can register 0-50 accounts per action. “Check storage balances” limit - a chunk of 50 accounts

</aside>

  1. If you are verifying and registering accounts, the page will be reloaded and you don’t need to input accounts one more time - wait a little bit, and it loads from local storage.
  2. Click “Verify accounts” and then “Check storage balances” again to see that all accounts are valid for sending
  3. The “Deposit” button appears here**. Click on it to deposit in Multisender the exact amount of tokens to transfer**

Снимок экрана 2022-06-15 в 12.36.54.png

  1. 5-6 paragraphs. Wait - Verify - Check storage again
  2. You will see this:

Снимок экрана 2022-06-15 в 12.39.09.png

Send from App Balance - safety-send. You can send tokens to a maximum of 7 accounts at one time (because of gas limits). But you will get callback receipts for every transaction. Send unsafe from App Balance - You can send tokens to a maximum of 25 accounts at one time (because of gas limits). You need always to check tx in explorer.

You can send tokens to as many accounts as you want.

But it will slice into chunks (7 or 25 depending on the case you choose for multisend). Gas limit for NEAR call - 300 Tgas. So, you can made calculations for transfer calls:

"max_total_prepaid_gas": 300000000000000 /// 300 Tgas ~ 0.03 NEAR
"chunk_safety_length"  : 7  /// **Send from App Balance** 
"chunk_unsafe_length"  : 25 /// **Send unsafe from App Balance 

/// calculations for sending LNC tokens to 100 accounts:
max_unsafe_send = (100 /** chunk_unsafe_length) * max_total_prepaid_gas 
**max_unsafe_send = 100/25 *** 300000000000000 = 4 * 300000000000000 = 0.12 NEAR

**max_safety_send = (100 /** chunk_safety_length) * max_total_prepaid_gas
**max_unsafe_send = 100/7 *** 300000000000000 = 14 * 300000000000000 = 0.42 NEAR