https://github.com/pinealctx/opensea-go
Golang's library for OpenSea APIs (https://docs.opensea.io/reference).
https://github.com/pinealctx/opensea-go
contract go golang nft opensea sdk
Last synced: 5 months ago
JSON representation
Golang's library for OpenSea APIs (https://docs.opensea.io/reference).
- Host: GitHub
- URL: https://github.com/pinealctx/opensea-go
- Owner: pinealctx
- License: other
- Created: 2022-01-26T07:56:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T10:02:41.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T04:45:42.918Z (almost 2 years ago)
- Topics: contract, go, golang, nft, opensea, sdk
- Language: Solidity
- Homepage:
- Size: 206 KB
- Stars: 26
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
# opensea-go
[](https://pkg.go.dev/github.com/pinealctx/opensea-go)
[](https://codecov.io/gh/pinealctx/opensea-go)
[](https://github.com/pinealctx/opensea-go/actions/workflows/golangci-lint.yml)
[](https://goreportcard.com/report/github.com/pinealctx/opensea-go)
[](https://opensource.org/licenses/Apache-2.0)
Golang's library for OpenSea APIs (https://docs.opensea.io/reference).
## Get Started
#### Get it
```shell
go get -u github.com/pinealctx/opensea-go
```
#### Use it
```go
package main
import (
"context"
"github.com/pinealctx/opensea-go"
"log"
)
func main() {
var cli = opensea.New(opensea.WithTestNets(true))
var asset, err = cli.Asset(context.Background(), &opensea.AssetRequest{
AssetContractAddress: "0x66583bd73a27c9245b723ff6a58f872234c3a50a",
TokenID: "3",
})
if err != nil {
log.Fatalln(err)
return
}
log.Println(asset)
}
```
## Special thanks
* [JetBrains](https://www.jetbrains.com/buy/opensource/) for providing us with **All Products Pack** licenses.