{"id":53894,"library":"centrifuge-go-substrate-rpc-client-v4","title":"Go Substrate RPC Client","description":"Provides APIs and types for interacting with Polkadot and Substrate-based chains via RPC calls.","status":"active","version":"4.2.1","language":"go","source_language":null,"source_url":"https://github.com/centrifuge/go-substrate-rpc-client","tags":["polkadot","substrate","blockchain","rpc","client"],"install":[{"cmd":"go get github.com/centrifuge/go-substrate-rpc-client/v4","lang":"bash","label":"Install github.com/centrifuge/go-substrate-rpc-client/v4"}],"dependencies":[],"imports":[{"symbol":"gsrpc","correct":"github.com/centrifuge/go-substrate-rpc-client/v4"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\tgsrpc \"github.com/centrifuge/go-substrate-rpc-client/v4\"\n)\n\nfunc main() {\n\tapi, err := gsrpc.NewSubstrateAPI(\"wss://rpc.polkadot.io\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(api)\n}","lang":"go","description":"Connect to a Substrate node via WebSocket and create an API client."},"warnings":[{"fix":"Ensure struct fields are ordered exactly as the Substrate runtime expects.","message":"Struct field order matters for SCALE encoding; missing labels can cause silent errors.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'api':6 'base':16 'blockchain':23 'call':20 'chain':17 'client':4,25 'go':1 'interact':10 'polkadot':12,21 'provid':5 'rpc':3,19,24 'substrat':2,15,22 'substrate-bas':14 'type':8 'via':18","created_at":"2026-06-15T07:59:27.057842+00:00","updated_at":"2026-06-15T07:59:27.057842+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/centrifuge/go-substrate-rpc-client","github":"https://github.com/centrifuge/go-substrate-rpc-client","docs":"https://pkg.go.dev/github.com/centrifuge/go-substrate-rpc-client/v4#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}