cosmos-sdk: github.com/cosmos/cosmos-sdk/x/staking/client/rest Index | Files

package rest

import "github.com/cosmos/cosmos-sdk/x/staking/client/rest"

Index

Package Files

query.go rest.go tx.go utils.go

func RegisterHandlers Uses

func RegisterHandlers(clientCtx client.Context, r *mux.Router)

type DelegateRequest Uses

type DelegateRequest struct {
    BaseReq          rest.BaseReq   `json:"base_req" yaml:"base_req"`
    DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32
    ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32
    Amount           sdk.Coin       `json:"amount" yaml:"amount"`
}

DelegateRequest defines the properties of a delegation request's body.

type RedelegateRequest Uses

type RedelegateRequest struct {
    BaseReq             rest.BaseReq   `json:"base_req" yaml:"base_req"`
    DelegatorAddress    sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"`         // in bech32
    ValidatorSrcAddress sdk.ValAddress `json:"validator_src_address" yaml:"validator_src_address"` // in bech32
    ValidatorDstAddress sdk.ValAddress `json:"validator_dst_address" yaml:"validator_dst_address"` // in bech32
    Amount              sdk.Coin       `json:"amount" yaml:"amount"`
}

RedelegateRequest defines the properties of a redelegate request's body.

type UndelegateRequest Uses

type UndelegateRequest struct {
    BaseReq          rest.BaseReq   `json:"base_req" yaml:"base_req"`
    DelegatorAddress sdk.AccAddress `json:"delegator_address" yaml:"delegator_address"` // in bech32
    ValidatorAddress sdk.ValAddress `json:"validator_address" yaml:"validator_address"` // in bech32
    Amount           sdk.Coin       `json:"amount" yaml:"amount"`
}

UndelegateRequest defines the properties of a undelegate request's body.

Package rest imports 12 packages (graph) and is imported by 1 packages. Updated 2020-08-12. Refresh now. Tools for package owners.