While I was exploring near-sdk-as I did not find any function / APIs in sdk to send near tokens to caller of the smart contract. I am curious if there is any function to do what I have mentioned or am I missing something ?
1
There are 1 best solutions below
Related Questions in NEARPROTOCOL
- How do you call a payable method from the js client?
- Is is possible to access public structure fileds in NEAR smart-contract without a function?
- NEAR Protocol - What happens when Rust contract method args are declared as (&mut self, ...) vs. (&self, ...)?
- NEAR Protocol Rust contracts - what's the difference between near-sdk-rs data structures and std ones?
- Can just anyone change the accounts and total supply?
- Passing account to near-js-api function call
- How to load contract ABI in JavaScript
- NEAR and safe math on unsigned integers
- How to get a public key from private key and/or account id in NEAR protocol?
- Use of undeclared type or module near_blockchain
- How to run near-js-api tests against a localnet with multiple contracts
- How to build and deploy multiple contracts in NEAR protocol
- How to connect NEAR Rainbow Bridge with my own Ethereum infra?
- How to check if a NEAR account has a smart-contract deployed and implements a required interface?
- What's the best practice for using env::log in smart-contracts?
Related Questions in NEAR
- Near Protocol, Smart Contract
- NFT Listing for Sale on NEAR Marketplace
- AssemblyScript Smart contract panicked: Cannot parse JSON
- How to remove Smart Contract in NEAR Protocol?
- NEAR Protocol CompilationError
- How can I fix "Error happened while deserializing the module" error?
- Race condition possibility in asynchronous NEAR cross contract calls
- Is it possible to send near tokens from smart contract to other account iof I write smart contract in near-sdk-as ?If yes , which module I should use?
- How can I view all data stored by a NEAR account?
- MongoDb $near incongruent result on 1 meter variation of $maxDistance
- Access value of account ID after passing it as parameter to Promise::new()
- NEAR Protocol Smart Contract Instantiation Error
- On-chain poof for staking rewards payout
- NEAR protocol: How to ensure that function call came from multisig contract
- Near Protocol | RPC Contract deployment | Deserialization error
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm not an expert when it comes to assembly script but it looks like what you can do is create a
ContractPromiseBatchand then invoke the.transferfunction as shown in this example here:https://github.com/near-examples/cross-contract-calls/blob/a589ab817835f837201f4afa48be5961d8ce5360/contracts/10.linkdrop/src/10/assembly/index.ts#L93