Skip to content

An example showcasing how to stake with the CDP SDK in minutes!

License

Notifications You must be signed in to change notification settings

ProfMoo/coinbase-staking-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An example showcasing how to stake with the CDP SDK in minutes!

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages