Discover Packages
github.com/ProfMoo/coinbase-staking-demo
command
module
Version:
v0.0.0-...-008eac9
Opens a new window with list of versions in this module.
Published: Oct 2, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Coinbase Staking Demo
This repository is an example of how to stake from any Solana wallet in minutes. This codebase uses the CDP Golang SDK .
Please check out our docs to learn more! Also check out our demo video of this repository for more details!
NOTE: This example is for demonstration purposes only.
Make sure to persist your private keys in a secure fashion.
Secure your wallet using best practices . In production, you should IP whitelist your API key for increased security.
Feature requests
If there is specific functionality you'd like to see in the CDP Staking API that is missing, we would love your feedback!
The best way to contact us is in the CDP Staking Discord Channel .
Set Up
Clone this repository:
git clone https://github.com/ProfMoo/coinbase-staking-demo
Provision a CDP API Key .
Set the following environment variables via an export shell command:
export CDP_API_KEY_PATH="<path_to_my_cdp_key>"
export SOLANA_PRIVATE_KEY_PATH="<path_to_my_solana_private_key>"
export SOLANA_ADDRESS="<my_solana_wallet>"
Run the example application:
go mod tidy && go run main.go
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.