MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / QueryAccountSQLChainProfiles

Method QueryAccountSQLChainProfiles

blockproducer/rpc.go:132–142  ·  view source on GitHub ↗

QueryAccountSQLChainProfiles is the RPC method to query account sqlchain profiles.

(
	req *types.QueryAccountSQLChainProfilesReq, resp *types.QueryAccountSQLChainProfilesResp)

Source from the content-addressed store, hash-verified

130
131// QueryAccountSQLChainProfiles is the RPC method to query account sqlchain profiles.
132func (s *ChainRPCService) QueryAccountSQLChainProfiles(
133 req *types.QueryAccountSQLChainProfilesReq, resp *types.QueryAccountSQLChainProfilesResp) (err error,
134) {
135 var profiles []*types.SQLChainProfile
136 if profiles, err = s.chain.queryAccountSQLChainProfiles(req.Addr); err != nil {
137 return
138 }
139 resp.Addr = req.Addr
140 resp.Profiles = profiles
141 return
142}

Callers 1

TestChainFunction · 0.80

Calls 1

Tested by 1

TestChainFunction · 0.64