Avatar
current
c7063ccd7e9adc0ddd4b77c6bfabffc8399b41e24de3a668a6ab62ede2c8aabd
The power of nostr + bitcoin at your hands. Opensource App built on react native. Get the app by going to https://getcurrent.io

right. Start with a node init and npm install nostr-tools. Here’s a simple connect and log events.

const {WebSocket} = require('websocket-polyfill');

const {

SimplePool

} = require('nostr-tools');

async function run() {

let relays = ['wss://nos.lol',

'wss://nostr1.current.fyi',

'wss://eden.nostr.land',

'wss://relay.current.fyi',

'wss://nos.lol',

'wss://nostr21.com',

'wss://spore.ws',

'wss://nostr.bitcoiner.social',

'wss://offchain.pub',

'wss://relay.plebstr.com',

'wss://nostr.mom',

'wss://no.str.cr',

'wss://relay.nostr.bg',

'wss://nostr.oxtr.dev',

'wss://relay.snort.social',

'wss://relay.nostr.bg',

'wss://no.str.cr',

'wss://nostr.wine',

'wss://nostr-pub.wellorder.net',

'wss://nostr-relay.nokotaro.com',

'wss://relay.nostr.wirednet.jp'

]

const pool = new SimplePool();

let sub = pool.sub(

relays,

[

{

limit: 100,

kinds: [1],

//tags: ['t']

authors: ['c7063ccd7e9adc0ddd4b77c6bfabffc8399b41e24de3a668a6ab62ede2c8aabd']

}

]

)

sub.on('event', async event => {

console.log(event);

})

}

run().catch(console.log);

Nostr-tools is your best friend. You can run it on the terminal and watch the data you get..!

#[1]​ I know you are working on hosting pay gated content on your relays and serve them. We implemented another way of pay gating the content and unlocking it using Zaps. Please check the demo site and NIP draft. Would love to get your feedback and open to collaborating with you. nostr:note1cs0pl7rd7tmty2e2k5eerjyq6d4e6swcxxjye62nkv3jwmaxgqcszxwdrh

It is better to create a unique private/pubkey for each NWC. Since you are putting the secret on the wallet connect String DO NOT use your personal key.

Current App wallet implemented it…! Pls look at our code..

https://github.com/starbackr-com/current/tree/main/features/walletconnect

Attention to everyone using Wallet of Satoshi…! They are not open sourced..! nostr:note1wp9ppqdv9yvxdnpdt3qvkt2mdudvkc889pp2n7gzpevvtjcjdq4q09lrhg

#[2]​ why is this post not on trending? What criteria do u use? nostr:note10qd655kgn3v40ew699jmhz5w76r7cggalreaydz2wxu40kg2ckxqar4rwk

#[1]​ would love to get your feedback..! We built this NIP for content storage providers like nostr.build. We need to make this happen…! nostr:note1cs0pl7rd7tmty2e2k5eerjyq6d4e6swcxxjye62nkv3jwmaxgqcszxwdrh

Feedback accepted…! Will work on it.

You can actually post some premium content. It is connected to our production server..! And there is no load issues so far…!

Yes. You need an extension to unlock content. Will see how we can make it easy without extension..! This is a demo site. We are planning to build this into our App which can provide more options..

Let me know where it failed. U need to use No2x or alby browser extension to open it.

Hello Onyx, At current App we support creators of all kinds…! We are currently building a new functionlaity for premium content to be unlocked by zapping. Check out this https://zapgate.link/ Let us know for questions and we can help you create some posts there..!