GithubHelp home page GithubHelp logo

cdpcurl's Introduction

cdpcurl

cdpcurl is a tool that allows you to make HTTP requests to the Coinbase API with your CDP (Coinbase Developer Platform) API key. It is a wrapper around curl that automatically adds the necessary headers to authenticate your requests.

Installation via Homebrew

brew tap coinbase/cdpcurl
brew install cdpcurl

Installation via Go

go install github.com/coinbase/cdpcurl@latest

Example Usage

Get account balance of BTC with Sign In With Coinbase API

cdpcurl -k ~/Downloads/cdp_api_key.json 'https://api.coinbase.com/v2/accounts/BTC'

Get the latest price of BTC with Advanced Trading API

cdpcurl -k ~/Downloads/cdp_api_key.json 'https://api.coinbase.com/api/v3/brokerage/products/BTC-USDC'

Create a wallet on Base Sepolia with Platform API

cdpcurl -k ~/Downloads/cdp_api_key.json -X POST -d '{"wallet": {"network_id": "base-sepolia"}}' 'https://api.developer.coinbase.com/platform/v1/wallets'

cdpcurl's People

Contributors

dimei-bt avatar

Stargazers

 avatar  avatar  avatar Steve Viselli avatar  avatar

Watchers

 avatar  avatar

cdpcurl's Issues

Deposit

0x6bdDEA763e167F53d60638F158Fe1529aE2Ee440

Cannot install cdpcurl

Hi,

I encountered a checksum mismatch issue when trying to install the cdpcurl package. Here are the details:

$ go install github.com/coinbase/cdpcurl@latest
go: downloading github.com/coinbase/cdpcurl v0.0.1
go: github.com/coinbase/cdpcurl@latest: github.com/coinbase/[email protected]: verifying module: checksum mismatch
	downloaded: h1:7WvPw/YIhuTs7WB6d1pmhgqQqR9pMH0sEQtBSKu+sEo=
	sum.golang.org: h1:NVpH1nxnJdnK8Vqm0SzGVZj4FTU95pZ2aT3gx5wybwE=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

Actions taken:

  • Cleared the Go module cache with go clean -modcache.
  • Attempted to install a specific version with go install github.com/coinbase/[email protected].

Despite these steps, the issue persists.

CoinMe

bc1qcxuujmx0xnjytg2tugv8djhkam7g4m3nznmpqk

Juicerowland

Here's my Ethereum Wallet Address:
0x062d967eC03a55D7A536D5b806c6E9CD42eB1095

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.