Menu

MPP TestKit - Go SDK
πŸ–ΌοΈ

MPP TestKit - Go SDK

DEV CommunityΒ·MPP TestKitΒ·6 months ago
#SpHPdzVL
#go#api#blockchain#web3#println
Reading 0:00
15s threshold

The Go MPP SDK handles the full Solana HTTP 402 payment flow with zero external dependencies. Pure stdlib: ed25519 signing, base58, JSON-RPC, and compact-u16 transaction encoding. One import, one function call on each side.

Go and HTTP 402

Go is the language of infrastructure: APIs, microservices, proxies. If you're building something that receives a lot of requests and needs to monetise them without billing overhead, Go is a natural fit.

The Go MPP SDK ( github.com/mpptestkit/mpp-test-sdk-go ) adds Solana-backed HTTP 402 support to any net/http handler with a single middleware call. No wallet libraries. No Solana SDK. No cgo. Pure Go standard library from crypto to JSON-RPC.

Installation

go get github.com/mpptestkit/mpp-test-sdk-go

Enter fullscreen mode

Exit fullscreen mode

Server

package main

import ( "encoding/json" "fmt" "net/http"

mpp "github.com/mpptestkit/mpp-test-sdk-go" )

func main () { server , err := mpp . CreateTestServer ( & mpp . TestServerConfig { Network : mpp .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.