coinbase-staking-demo

command module
v0.0.0-...-008eac9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 10 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.

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

  1. Clone this repository:

    git clone https://github.com/ProfMoo/coinbase-staking-demo
    
  2. Provision a CDP API Key.

  3. 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>"
    
  4. Run the example application:

    go mod tidy && go run main.go
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址