Versions in this module Expand all Collapse all v1 v1.1.0 Jun 22, 2019 Changes in this version + const MUTEZ + type AccountService struct + func (s *AccountService) CreateWallet(mnenomic string, password string) (Wallet, error) + func (s *AccountService) GetBalance(tezosAddr string) (float64, error) + func (s *AccountService) GetBalanceAtAssociatedSnapshotBlock(tezosAddr string, associatedBlockHash string) (float64, error) + func (s *AccountService) GetBalanceAtBlock(tezosAddr string, id interface{}) (int, error) + func (s *AccountService) GetBalanceAtSnapshot(tezosAddr string, cycle int) (float64, error) + func (s *AccountService) ImportEncryptedWallet(pw, encKey string) (Wallet, error) + func (s *AccountService) ImportWallet(address, public, secret string) (Wallet, error) + type BakingRights []struct + type Block struct + ChainID string + Hash string + Header StructHeader + Metadata StructMetadata + Operations [][]StructOperations + Protocol string + func (b *Block) CalculateBlockFees() (int, error) + type BlockService struct + func (b *BlockService) Get(id interface{}) (Block, error) + func (b *BlockService) GetHead() (Block, error) + func (b *BlockService) IDToString(id interface{}) (string, error) + type Bootstrap struct + Block string + Timestamp time.Time + type Connections []struct + type ContentsMetadata struct + BalanceUpdates []StructBalanceUpdates + Delegate string + Slots []int + func (metadata *ContentsMetadata) GetRewards() (int, error) + type ContractService struct + func (s *ContractService) GetStorage(contract string) ([]byte, error) + type Conts struct + Branch string + Contents []StructContents + type CycleService struct + func (s *CycleService) GetCurrent() (int, error) + type Delegate struct + Balance string + Deactivated bool + DelegateContracts []string + DelegatedBalance string + FrozenBalance string + FrozenBalanceByCycle []frozenBalanceByCycle + GracePeriod int + StakingBalance string + type DelegateReport struct + Cycle int + DelegatePkh string + Delegations []DelegationReport + Fees string + Rewards string + SelfBakedRewards string + TotalFeeRewards string + TotalRewards string + func (dr *DelegateReport) GetPayments(minimum int) []Payment + type DelegateReportWithoutDelegations struct + Cycle int + DelegatePkh string + Fees string + Rewards string + StakingBalance string + TotalDelegations int + type DelegateService struct + func (d *DelegateService) GetAllDelegates() ([]string, error) + func (d *DelegateService) GetAllDelegatesByHash(hash string) ([]string, error) + func (d *DelegateService) GetBakingRights(cycle int) (BakingRights, error) + func (d *DelegateService) GetBakingRightsAtLevel(level, maxPriority int) (BakingRights, error) + func (d *DelegateService) GetBakingRightsForDelegate(cycle int, delegatePkh string, priority int) (BakingRights, error) + func (d *DelegateService) GetDelegate(delegatePkh string) (Delegate, error) + func (d *DelegateService) GetDelegations(delegatePkh string) ([]string, error) + func (d *DelegateService) GetDelegationsAtCycle(delegatePkh string, cycle int) ([]string, error) + func (d *DelegateService) GetEndorsingRights(cycle int) (EndorsingRights, error) + func (d *DelegateService) GetEndorsingRightsAtLevel(level int) (EndorsingRights, error) + func (d *DelegateService) GetEndorsingRightsForDelegate(cycle int, delegatePkh string) (EndorsingRights, error) + func (d *DelegateService) GetReport(delegatePkh string, cycle int, fee float64) (*DelegateReport, error) + func (d *DelegateService) GetReportWithoutDelegations(delegatePkh string, cycle int) (*DelegateReportWithoutDelegations, error) + func (d *DelegateService) GetRewards(delegatePkh string, cycle int) (FrozenBalanceRewards, error) + func (d *DelegateService) GetStakingBalance(delegateAddr string, cycle int) (float64, error) + func (d *DelegateService) GetStakingBalanceAtCycle(address string, cycle int) (string, error) + type DelegationReport struct + Balance float64 + DelegationPkh string + Fee string + GrossRewards string + NetRewards string + Share float64 + type EndorsingRights []struct + type FrozenBalance struct + Deposits string + Fees string + Rewards string + type FrozenBalanceRewards struct + Deposits string + Fees string + Rewards string + type GoTezos struct + Account *AccountService + Block *BlockService + Constants NetworkConstants + Contract *ContractService + Cycle *CycleService + Delegate *DelegateService + Network *NetworkService + Node *NodeService + Operation *OperationService + SnapShot *SnapShotService + func NewGoTezos(URL string) (*GoTezos, error) + func (gt *GoTezos) Get(path string, params map[string]string) ([]byte, error) + func (gt *GoTezos) Post(path string, args string) ([]byte, error) + func (gt *GoTezos) SetHTTPClient(client *http.Client) + type NetworkConstants struct + BlockReward string + BlockSecurityDeposit string + BlocksPerCommitment int + BlocksPerCycle int + BlocksPerRollSnapshot int + BlocksPerVotingPeriod int + CostPerByte string + EndorsementReward string + EndorsementSecurityDeposit string + EndorsersPerBlock int + HardGasLimitPerBlock string + HardGasLimitPerOperation string + HardStorageLimitPerOperation string + MaxOperationDataLength int + MaxProposalsPerDelegate int + MaxRevelationsPerBlock int + MichelsonMaximumTypeSize int + NonceLength int + OriginationSize int + PreservedCycles int + ProofOfWorkNonceSize int + ProofOfWorkThreshold string + SeedNonceRevelationTip string + TimeBetweenBlocks []string + TokensPerRoll string + type NetworkService struct + func (n *NetworkService) Connections() (Connections, error) + func (n *NetworkService) GetChainID() (string, error) + func (n *NetworkService) GetConstants() (NetworkConstants, error) + func (n *NetworkService) GetVersions() ([]NetworkVersion, error) + type NetworkVersion struct + Major int + Minor int + Name string + Network string + type NetworkVersions []NetworkVersion + type NodeService struct + func (n *NodeService) Bootstrapped() (Bootstrap, error) + func (n *NodeService) CommitHash() (string, error) + func (n *NodeService) MonitorHeads(chain string, heads chan StructHeader, errc chan error, done chan bool) + type OperationService struct + func (o *OperationService) CreateBatchPayment(payments []Payment, wallet Wallet, paymentFee int, gaslimit int) ([]string, error) + func (o *OperationService) GetBlockOperationHashes(id interface{}) ([]string, error) + func (o *OperationService) InjectOperation(op string) ([]byte, error) + type Payment struct + Address string + Amount float64 + type SnapShot struct + AssociatedBlockHash string + AssociatedBlockLevel int + Cycle int + Number int + type SnapShotQuery struct + RandomSeed string + RollSnapShot int + type SnapShotService struct + func (s *SnapShotService) Get(cycle int) (SnapShot, error) + func (s *SnapShotService) GetAll() ([]SnapShot, error) + type StructBalanceUpdates struct + Category string + Change string + Contract string + Cycle int + Delegate string + Kind string + Level int + type StructContents struct + Amount string + Balance string + Ballot string + Counter string + Delegate string + Destination string + Fee string + GasLimit string + Kind string + Level int + ManagerPublicKey string + Metadata *ContentsMetadata + Period int + Phk string + Proposal string + Proposals []string + Secret string + Source string + StorageLimit string + type StructHeader struct + Context string + Fitness []string + Level int + OperationsHash string + Predecessor string + Priority int + ProofOfWorkNonce string + Proto int + Signature string + Timestamp time.Time + ValidationPass int + func UnmarshalBlockHeader(v []byte) (StructHeader, error) + type StructLevel struct + Cycle int + CyclePosition int + ExpectedCommitment bool + Level int + LevelPosition int + VotingPeriod int + VotingPeriodPosition int + type StructMaxOperationListLength struct + MaxOp int + MaxSize int + type StructMetadata struct + Baker string + BalanceUpdates []StructBalanceUpdates + ConsumedGas string + Deactivated []string + Level StructLevel + MaxBlockHeaderLength int + MaxOperationDataLength int + MaxOperationListLength []StructMaxOperationListLength + MaxOperationsTTL int + NextProtocol string + NonceHash interface{} + Protocol string + TestChainStatus StructTestChainStatus + VotingPeriodKind string + func (metadata *StructMetadata) GetRewards() (int, error) + type StructOperations struct + Branch string + ChainID string + Contents []StructContents + Hash string + Protocol string + Signature string + type StructTestChainStatus struct + Status string + type Transfer struct + Protocol string + Signature string + type Wallet struct + Address string + Kp keyPair + Mnemonic string + Pk string + Seed []byte + Sk string