Docs Category: 03-intermediate

Using base64-encoded arguments when we create a new crossword puzzle

To Share and +4 nLEARNs Login with NEARFinal modifications import base64Encode from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/boop-base64-encode.gif’; Let’s modify our new_puzzle method a bit, and demonstrate how a smart contract author might use base64-encoded arguments. In the previous chapter we had a fairly long NEAR CLI command that called the new_puzzle, providing it the parameters for all the clues. …

Using base64-encoded arguments when we create a new crossword puzzle Read More »

Adding cross-contract calls, access key shuffling, etc.

To Share and +4 nLEARNs Login with NEARUpdating the contract import shuffleKeys from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/shuffle-keys.gif’; import clionSuggestion from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/clion-suggestion.gif’; import carpenterAddingKey from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/create-key-carpenter-near–carlcarlkarl.near–CarlCarlKarl.jpg’; import recycleKey from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/remove-key-recycle–eerie_ram.near–eerie_ram.png’; To reiterate, we’d like anyone to be able to participate in the crossword puzzle, even folks who don’t have a NEAR account. The first person to win will "reserve …

Adding cross-contract calls, access key shuffling, etc. Read More »

Introducing the linkdrop contract we can use

To Share and +4 nLEARNs Login with NEARimport createMainnetAccount from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/create-mainnet-account.png’; import createTestnetAccount from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/create-testnet-wallet-account.png’; The linkdrop contract We’re going to take a small detour to talk about the linkdrop smart contract. It’s best that we understand this contract and it’s purpose, then discuss calling a method on this contract. The linkdrop contract is deployed …

Introducing the linkdrop contract we can use Read More »

Replacing the solution hash with an access key

To Share and +4 nLEARNs Login with NEARimport puzzleFrontrun from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/puzzle-frontrun.png’; import padlockSafe from ‘https://raw.githubusercontent.com/Techbridge3/docs/master/website/static/docs/assets/crosswords/safe-with-access-key–soulless.near–ZeroSerotonin__.png’; Replacing our solution hash So far in this tutorial, the user sends the plaintext solution to the crossword puzzle smart contract, where it’s hashed and compared with the known answer. This works, but we might want to be more careful …

Replacing the solution hash with an access key Read More »

Scroll to Top