https://github.com/ethersphere/swarm-donation
https://github.com/ethersphere/swarm-donation
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethersphere/swarm-donation
- Owner: ethersphere
- Created: 2023-11-06T09:52:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-05T20:08:16.000Z (over 2 years ago)
- Last Synced: 2025-01-12T06:27:19.758Z (over 1 year ago)
- Language: TypeScript
- Size: 85.9 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swarm Donation web component
This is a simple widget that can be added to any HTML page. It renders an element that prints the time-to-live of the postage stamp that was used to upload the resource to the Swarm network, along with an arbitrary Ethereum address.
The component gives readers two options to support the author:
- Sending tips to the Ethereum address
- Topping up the postage stamp, lengthening the hosting
## Swarm network
Swarm is a peer-to-peer network of Bee nodes that collectively provide censorship resistant decentralised storage and communication services.
## Example Usage
Replace `` and ``. When built into static site generators, these steps should be handled automatically for the end user.
```
renderSwarmDonation('donation', '<ethereumAddress>', '<stamp>')
```
## Recommended Usage
Upload the `js` file to the Swarm network, and refer that instead of the CDN.
## Etherjot
This web component is also available as an extension in [Etherjot](https://github.com/ethersphere/etherjot-web).