Versions in this module Expand all Collapse all v0 v0.5.4 Sep 24, 2020 Changes in this version + var ErrInternalError = errors.New("internal error") + var ErrNodeNotSync = errors.New("node not synced") + var PLUGIN = node.NewPlugin("WebAPI", node.Enabled, configure, run) + type AddNeighbors struct + Command string + Uris []string + type AddNeighborsHornet struct + Command string + Neighbors []Neighbor + type AddNeighborsResponse struct + AddedNeighbors int + Duration int + type AddressWithBalance struct + Address trinary.Hash + Balance uint64 + type ApproverStruct struct + ReferencedByTrunk bool + TxHash trinary.Hash + type AttachToTangle struct + BranchTransaction trinary.Hash + Command string + MinWeightMagnitude int + TrunkTransaction trinary.Hash + Trytes []trinary.Trytes + type AttachToTangleReturn struct + Duration int + Trytes []trinary.Trytes + type BradcastTransactionsReturn struct + Duration int + type BroadcastTransactions struct + Command string + Trytes []trinary.Trytes + type BundleWithValue struct + BundleHash trinary.Hash + LastIndex uint64 + TailTxHash trinary.Hash + Txs []*TxWithValue + type CheckConsistencyReturn struct + Duration int + State bool + type CreateSnapshotFile struct + Command string + TargetIndex milestone.Index + type CreateSnapshotFileReturn struct + Duration int + type DebugRequest struct + EnqueueTimestamp int64 + Hash trinary.Hash + MilestoneIndex milestone.Index + TxExists bool + Type string + type EntryPoint struct + ConfirmedByMilestoneIndex milestone.Index + TxHash trinary.Hash + type ErrorReturn struct + Error string + type FindTransactions struct + Addresses []trinary.Hash + Approvees []trinary.Hash + Bundles []trinary.Hash + Command string + MaxResults int + Tags []trinary.Hash + ValueOnly bool + type FindTransactionsReturn struct + Duration int + Hashes []trinary.Hash + type GetBalances struct + Addresses []trinary.Hash + Command string + type GetBalancesReturn struct + Balances []trinary.Hash + Duration int + MilestoneIndex milestone.Index + References []trinary.Hash + type GetFundsOnSpentAddressesReturn struct + Addresses []*AddressWithBalance + Command string + type GetInclusionStates struct + Command string + Transactions []trinary.Hash + type GetInclusionStatesReturn struct + Duration int + States []bool + type GetLedgerDiff struct + Command string + MilestoneIndex milestone.Index + type GetLedgerDiffExt struct + Command string + MilestoneIndex milestone.Index + type GetLedgerDiffExtReturn struct + ConfirmedBundlesWithValue []*BundleWithValue + ConfirmedTxWithValue []*TxHashWithValue + Diff map[trinary.Hash]int64 + Duration int + MilestoneIndex milestone.Index + type GetLedgerDiffReturn struct + Diff map[trinary.Hash]int64 + Duration int + MilestoneIndex milestone.Index + type GetLedgerState struct + Command string + TargetIndex milestone.Index + type GetLedgerStateReturn struct + Balances map[trinary.Hash]uint64 + Duration int + MilestoneIndex milestone.Index + type GetNeighbors struct + Command string + type GetNeighborsReturn struct + Duration int + Neighbors []*peer.Info + type GetNodeAPIConfiguration struct + Command string + type GetNodeAPIConfigurationReturn struct + Duration int + MaxBodyLength int + MaxFindTransactions int + MaxGetTrytes int + MaxRequestsList int + MilestoneStartIndex milestone.Index + type GetNodeInfo struct + Command string + type GetNodeInfoReturn struct + AppName string + AppVersion string + CoordinatorAddress trinary.Hash + Duration int + Features []string + Health bool + IsSynced bool + LastSnapshottedMilestoneIndex milestone.Index + LatestMilestone trinary.Hash + LatestMilestoneIndex milestone.Index + LatestSolidSubtangleMilestone trinary.Hash + LatestSolidSubtangleMilestoneIndex milestone.Index + MilestoneStartIndex milestone.Index + Neighbors uint + NodeAlias string + Time int64 + Tips uint32 + TransactionsToRequest int + type GetRequests struct + Command string + type GetRequestsReturn struct + Requests []*DebugRequest + type GetTipInfo struct + Command string + TailTransaction trinary.Hash + type GetTipInfoReturn struct + Confirmed bool + Conflicting bool + Duration int + ShouldPromote bool + ShouldReattach bool + type GetTransactionsToApprove struct + Command string + Depth uint + Reference trinary.Hash + type GetTransactionsToApproveReturn struct + BranchTransaction trinary.Hash + Duration int + TrunkTransaction trinary.Hash + type GetTrytes struct + Command string + Hashes []trinary.Hash + type GetTrytesReturn struct + Duration int + Trytes []trinary.Trytes + type Neighbor struct + Alias string + Identity string + PreferIPv6 bool + type PruneDatabase struct + Command string + Depth milestone.Index + TargetIndex milestone.Index + type PruneDatabaseReturn struct + Duration int + type RemoveNeighbors struct + Command string + Uris []string + type RemoveNeighborsReturn struct + Duration int + RemovedNeighbors uint + type ResultReturn struct + Message string + type SearchConfirmedApprover struct + Command string + SearchMilestone bool + TxHash trinary.Hash + type SearchConfirmedApproverReturn struct + ConfirmedByMilestoneIndex milestone.Index + ConfirmedTxHash trinary.Hash + TanglePath []*ApproverStruct + TanglePathLength int + type SearchEntryPoint struct + Command string + TxHash trinary.Hash + type SearchEntryPointReturn struct + EntryPoints []*EntryPoint + TanglePath []*TransactionWithApprovers + TanglePathLength int + type StoreTransactions struct + Command string + Trytes []trinary.Trytes + type TransactionWithApprovers struct + BranchTransaction trinary.Hash + TrunkTransaction trinary.Hash + TxHash trinary.Hash + type TriggerSolidifier struct + Command string + type TxHashWithValue struct + Address trinary.Hash + BundleHash trinary.Hash + TailTxHash trinary.Hash + TxHash trinary.Hash + Value int64 + type TxWithValue struct + Address trinary.Hash + Index uint64 + TxHash trinary.Hash + Value int64 + type WereAddressesSpentFrom struct + Addresses []trinary.Hash + Command string + type WereAddressesSpentFromReturn struct + Duration int + States []bool