near-api-js icon indicating copy to clipboard operation
near-api-js copied to clipboard

Support for creating and funding linkdrop links

Open kcole16 opened this issue 4 years ago • 8 comments

    1. Story

As an app developer, I want to fund the creation of my users` accounts, so they can login and use my app.

    1. Flow

1. Generate new key pair (pub key/private key) 2. Call [Linkdrop](https://github.com/nearprotocol/near-linkdrop) contract's send function with public_key as the argument, and an attached NEAR balance 3. Redirect user to the wallet with "fundingKey" argument

        1. Unhappy Path
  • [ ] Surface error if call to Linkdrop contract fails

kcole16 avatar Feb 26 '20 20:02 kcole16

@kcole16 was this resolved?

behaviary avatar Jun 09 '20 17:06 behaviary

Not yet (that I’m aware of). cc @vgrichina

kcole16 avatar Jun 09 '20 17:06 kcole16

@kcole16, this solution just needs to be generalized to near-api-js correct?

behaviary avatar Jul 27 '20 04:07 behaviary

Check this PR for more context: https://github.com/near/near-api-js/pull/256

kcole16 avatar Jul 28 '20 00:07 kcole16

@potatodepaulo do we have specific customer who wants to integrate this? If so – I think it will help to do demo for them first and then refactor into library once we have it working end to end.

vgrichina avatar Aug 05 '20 06:08 vgrichina

@vgrichina @mikedotexe @kcole16 do we still need this functionality? PR related to this issue was closed: https://github.com/near/near-api-js/pull/256 Should we close the issue?

volovyks avatar Feb 23 '21 15:02 volovyks

I think on client side it's relatively easy, more interesting is to create smart contract SDK which would allow to send more customised linkdrops. Like allow to avoid attaching 1 N for gas fees, allow to transfer NFTs on claim, etc. Basically make it easy to send any kind of stuff on NEAR as a linkdrop.

vgrichina avatar Feb 26 '21 07:02 vgrichina

I think on client side it's relatively easy

I mean in the sense that you just create new KeyPair and then make regular smart contract functionCall transaction to whatever linkdrop contract you want to use

vgrichina avatar Feb 26 '21 07:02 vgrichina