ForgeDelegationOperation forges a delegation operation(s) locally. GoTezos does not use the RPC or a trusted source to forge operations.
Current supported operations include transfer, reveal, delegation, and origination.

Parameters:

branch:
The branch to forge the operation on.
input:
The delegation contents to be formed.

ForgeOriginationOperation forges a origination operation(s) locally. GoTezos does not use the RPC or a trusted source to forge operations.
Current supported operations include transfer, reveal, delegation, and origination.

Parameters:

branch:
The branch to forge the operation on.
input:
The origination contents to be formed.

ForgeRevealOperation forges a reveal operation(s) locally. GoTezos does not use the RPC or a trusted source to forge operations.
Current supported operations include transfer, reveal, delegation, and origination.

Parameters:

branch:
The branch to forge the operation on.
input:
The reveal contents to be formed.

ForgeTransactionOperation forges a transaction operation(s) locally. GoTezos does not use the RPC or a trusted source to forge operations.
Current supported operations include transfer, reveal, delegation, and origination.

Parameters:

branch:
The branch to forge the operation on.
input:
The transaction contents to be formed.

type BakingRightsInput struct {
// The block level of which you want to make the query.Levelint// The cycle of which you want to make the query.Cycleint// The delegate public key hash of which you want to make the query.Delegatestring// The max priotity of which you want to make the query.MaxPriorityint// The hash of block (height) of which you want to make the query.
// Required.BlockHashstring `validate:"required"`
}

type BlocksInput struct {
//length is the requested number of predecessors to returns (per requested head).Lengthint//An empty argument requests blocks from the current heads. A non empty list allow to request specific fragment of the chain.Headstring// When `min_date` is provided, heads with a timestamp before `min_date` are filtered outMinDate *time.Time
}

type EndorsingRightsInput struct {
// The block level of which you want to make the query.Levelint// The cycle of which you want to make the query.Cycleint// The delegate public key hash of which you want to make the query.Delegatestring// The hash of block (height) of which you want to make the query.
// Required.BlockHashstring `validate:"required"`
}

EndorsingRightsInput is the input for the goTezos.EndorsingRights function.

ForgeOperationWithRPCInput is the input for the goTezos.ForgeOperationWithRPC function.

Fields:

Blockhash:
The hash of block (height) of which you want to make the query.
Contents:
The contents of the of the operation.
Branch:
The branch of the operation to be forged.
CheckRPCAddr:
Overides the GoTezos client with a new one pointing to a different address. This allows the user to validate the forge against different nodes for security.

BakingRights retrieves the list of delegates allowed to bake a block. By default, it gives the best baking priorities
for bakers that have at least one opportunity below the 64th priority for the next block.
Parameters `level` and `cycle` can be used to specify the (valid) level(s) in the past or
future at which the baking rights have to be returned. Parameter `delegate` can be used to
restrict the results to the given delegates. If parameter `all` is set, all the baking
opportunities for each baker at each level are returned, instead of just the first one.
Returns the list of baking slots. Also returns the minimal timestamps that correspond
to these slots. The timestamps are omitted for levels in the past, and are only estimates
for levels later that the next block, based on the hypothesis that all predecessor blocks
were baked at the first priority.

Blocks lists known heads of the blockchain sorted with decreasing fitness.
Optional arguments allows to returns the list of predecessors for known heads or
the list of predecessors for a given list of blocks.

Bootstrap waits for the node to have synchronized its chain with a few peers (configured by the node's administrator),
streaming head updates that happen during the bootstrapping process, and closing the stream at the end. If the node was
already bootstrapped, returns the current head immediately.

EndorsingRights retrieves the delegates allowed to endorse a block. By default,
it gives the endorsement slots for delegates that have at least one in the
next block. Parameters `level` and `cycle` can be used to specify the (valid)
level(s) in the past or future at which the endorsement rights have to be returned.
Parameter `delegate` can be used to restrict the results to the given delegates.
Returns the list of endorsement slots. Also returns the minimal timestamps that
correspond to these slots. The timestamps are omitted for levels in the past, and
are only estimates for levels later that the next block, based on the hypothesis
that all predecessor blocks were baked at the first priority.

ForgeOperationWithRPC will forge an operation with the tezos RPC. For
security purposes ForgeOperationWithRPC will preapply an operation to
verify the node forged the operation with the requested contents.

If you would rather not use a node at all, GoTezos supports local forging
operations REVEAL, TRANSFER, ORIGINATION, and DELEGATION.

InjectionBlock inject a block in the node and broadcast it. The `operations`
embedded in `blockHeader` might be pre-validated using a contextual RPCs
from the latest block (e.g. '/blocks/head/context/preapply'). Returns the
ID of the block. By default, the RPC will wait for the block to be validated
before answering. If ?async is true, the function returns immediately. Otherwise,
the block will be validated before the result is returned. If ?force is true, it
will be injected even on non strictly increasing fitness. An optional ?chain parameter
can be used to specify whether to inject on the test chain or the main chain.

InjectionOperation injects an operation in node and broadcast it. Returns the ID of the operation.
The `signedOperationContents` should be constructed using a contextual RPCs from the latest block
and signed by the client. By default, the RPC will wait for the operation to be (pre-)validated
before answering. See RPCs under /blocks/prevalidation for more details on the prevalidation context.
If ?async is true, the function returns immediately. Otherwise, the operation will be validated before
the result is returned. An optional ?chain parameter can be used to specify whether to inject on the
test chain or the main chain.

StakingBalance returns the total amount of tokens delegated to a given delegate. This includes the balances of all the contracts
that delegate to it, but also the balance of the delegate itself and its frozen fees and deposits. The rewards do not count in
the delegated balance until they are unfrozen.

StakingBalanceAtCycle returns the total amount of tokens delegated to a given delegate. This includes the balances of all the contracts
that delegate to it, but also the balance of the delegate itself and its frozen fees and deposits. The rewards do not count in
the delegated balance until they are unfrozen.

type InjectionBlockInput struct {
// Block to injectBlock *Block `validate:"required"`
// If ?async is true, the function returns immediately.Asyncbool// If ?force is true, it will be injected even on non strictly increasing fitness.Forcebool// Specify the ChainID.ChainIDstring
}

InjectionBlockInput is the input for the goTezos.InjectionBlock function.