uatolo
you granted it minus the amount you delegated via the gentx
. Now, create a second account:recipient
account:recipient
account to the validator:gentx
, and the second one you just performed from the recipient
account.*.proto
files into various languages. These tools allow the building of clients easily. Often, the client connection (i.e. the transport) can be plugged and replaced very easily. Let's explore one of the most popular transport: gRPC.grpcurl
for generic debugging and testing,curl
but for gRPC. It is also available as a Go library, but we will use it only as a CLI command for debugging and testing purposes. Follow the instructions in the previous link to install it.localhost:9000
by the gRPC server endpoint of another node, which is configured under the grpc.address
field inside app.toml
):cosmos.bank.v1beta1.Query
. This is called reflection, which is a Protobuf endpoint returning a description of all available endpoints. Each of these represents a different Protobuf service, and each service exposes multiple RPC methods you can query against.x-cosmos-block-height
metadata should contain the block to query. Using grpcurl as above, the command looks like:x/bank
's) with one generated from any other Protobuf service.cosmos.bank.v1beta1.Query/AllBalances
method is GET /cosmos/bank/v1beta1/balances/{address}
. Request arguments are passed as query parameters.curl
command to make balances request is:localhost:1317
with the REST endpoint of your node, configured under the api.address
field.localhost:1317/swagger
. Make sure that the api.swagger
field is set to true in your app.toml
file.x-cosmos-block-height
. For example, a curl command would look like:enabled-unsafe-cors
field inside app.toml
.