Documentation ¶
Index ¶
- func AddressExpression(address string) (string, error)
- func BytesExpression(v []byte) (string, error)
- func Encode(branch string, contents ...rpc.Content) (string, error)
- func IntExpression(i int) (string, error)
- func KeyHashExpression(hash string) (string, error)
- func MichelineExpression(micheline string) (string, error)
- func NatExpression(i int) (string, error)
- func StringExpression(value string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressExpression ¶
AddressExpression will pack and encode an address to a script_expr
func BytesExpression ¶
BytesExpression will pack and encode bytes to a script_expr
func Encode ¶
Encode forges an operation locally. GoTezos does not use the RPC or a trusted source to forge operations. All operations are supported:
- Endorsement
- Proposals
- Ballot
- SeedNonceRevelation
- DoubleEndorsementEvidence
- DoubleBakingEvidence
- ActivateAccount
- Reveal
- Transaction
- Origination
- Delegation
Parameters:
branch: The branch to forge the operation on. contents: The operation contents to be formed.
func IntExpression ¶
IntExpression will pack and encode an integer to a script_expr
func KeyHashExpression ¶
KeyHashExpression will pack and encode a key hash to a script_expr
func MichelineExpression ¶
MichelineExpression will pack and encode micheline to a script_expr
func NatExpression ¶
NatExpression will pack and encode a nat to a script_expr
func StringExpression ¶
StringExpression will pack and encode a string to a script_expr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.