Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAddress() http.HandlerFunc
- func CreateTransaction() http.HandlerFunc
- func GetAccount(ledger1 iLedger, mempool iMempool) http.HandlerFunc
- func GetBlock(blockchain storage.IBlockchain) http.HandlerFunc
- func GetNft(nftStorage *nft.Storage) http.HandlerFunc
- func GetNftMeta(nftStorage *nft.Storage) http.HandlerFunc
- func GetStructure(ledger1 iLedger) http.HandlerFunc
- func ListBlocks(blockchain storage.IBlockchain) http.HandlerFunc
- func ListMempool(mempool iMempool) http.HandlerFunc
- func ListMempoolByAddress(mempool iMempool) http.HandlerFunc
- func ListNft(nftStorage *nft.Storage) http.HandlerFunc
- func ListNftsByAddress(ledger1 *ledger.Ledger) http.HandlerFunc
- func ListStructures(ledger1 iLedger) http.HandlerFunc
- func ListTransactionsByAddress(blockchain storage.IBlockchain, index *storage.Index) http.HandlerFunc
- func ListTransactionsByBlock(blockchain storage.IBlockchain) http.HandlerFunc
- func MethodNotAllowed(allowMethod ...string) http.HandlerFunc
- func NotFound() http.HandlerFunc
- func ParseParams(r *http.Request, totalCount int) (firstIndex, lastIndex int, err error)
- func PushMempool(mempool iMempool, nftMempool iNftMempool) http.HandlerFunc
- func SubscribeAddress(event iEvents) http.HandlerFunc
- func TxValidate(transaction umi.Transaction) error
- func TxValidateNft(transaction []byte) error
- type CreateAddressRequest
- type CreateAddressResponse
- type CreateTransactionRequest
- type CreateTransactionResponse
- type Error
- type GetAccountData
- type GetAccountResponse
- type GetBlockResponse
- type GetNftMetaResponse
- type GetNftRawResponse
- type GetStructureResponse
- type ListBlocksData
- type ListBlocksRawData
- type ListBlocksRawResponse
- type ListBlocksResponse
- type ListMempoolData
- type ListMempoolRawData
- type ListMempoolRawResponse
- type ListMempoolResponse
- type ListNftRawResponse
- type ListNftsByAddressResponse
- type ListStructuresData
- type ListStructuresResponse
- type ListTransactionsData
- type ListTransactionsRawData
- type ListTransactionsRawResponse
- type ListTransactionsResponse
- type PushMempoolResponse
Constants ¶
View Source
const ParamTrue = "true"
Variables ¶
Functions ¶
func CreateAddress ¶
func CreateAddress() http.HandlerFunc
func CreateTransaction ¶
func CreateTransaction() http.HandlerFunc
func GetAccount ¶
func GetAccount(ledger1 iLedger, mempool iMempool) http.HandlerFunc
func GetBlock ¶
func GetBlock(blockchain storage.IBlockchain) http.HandlerFunc
func GetNftMeta ¶
func GetNftMeta(nftStorage *nft.Storage) http.HandlerFunc
func GetStructure ¶
func GetStructure(ledger1 iLedger) http.HandlerFunc
func ListBlocks ¶
func ListBlocks(blockchain storage.IBlockchain) http.HandlerFunc
func ListMempool ¶
func ListMempool(mempool iMempool) http.HandlerFunc
func ListMempoolByAddress ¶
func ListMempoolByAddress(mempool iMempool) http.HandlerFunc
func ListNftsByAddress ¶
func ListNftsByAddress(ledger1 *ledger.Ledger) http.HandlerFunc
func ListStructures ¶
func ListStructures(ledger1 iLedger) http.HandlerFunc
func ListTransactionsByAddress ¶
func ListTransactionsByAddress(blockchain storage.IBlockchain, index *storage.Index) http.HandlerFunc
func ListTransactionsByBlock ¶
func ListTransactionsByBlock(blockchain storage.IBlockchain) http.HandlerFunc
func MethodNotAllowed ¶
func MethodNotAllowed(allowMethod ...string) http.HandlerFunc
func NotFound ¶
func NotFound() http.HandlerFunc
func ParseParams ¶
func PushMempool ¶
func PushMempool(mempool iMempool, nftMempool iNftMempool) http.HandlerFunc
func SubscribeAddress ¶
func SubscribeAddress(event iEvents) http.HandlerFunc
func TxValidate ¶
func TxValidate(transaction umi.Transaction) error
func TxValidateNft ¶
Types ¶
type CreateAddressRequest ¶
type CreateAddressResponse ¶
type CreateTransactionRequest ¶
type CreateTransactionRequest struct { Type *string `json:"type,omitempty"` SenderAddress *string `json:"senderAddress,omitempty"` RecipientAddress *string `json:"recipientAddress,omitempty"` Amount *uint64 `json:"amount,omitempty"` Prefix *string `json:"prefix,omitempty"` Description *string `json:"description,omitempty"` ProfitPercent *uint16 `json:"profitPercent,omitempty"` FeePercent *uint16 `json:"feePercent,omitempty"` Seed *[]byte `json:"seed,omitempty"` NftMeta *json.RawMessage `json:"nftMeta,omitempty"` NftData *[]byte `json:"nftData,omitempty"` }
type GetAccountData ¶
type GetAccountData struct { Type string `json:"type"` ConfirmedBalance uint64 `json:"confirmedBalance"` UnconfirmedBalance int64 `json:"unconfirmedBalance"` TransactionCount uint64 `json:"transactionCount"` Balance *uint64 `json:"balance,omitempty"` InterestRate *uint16 `json:"interestRate,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` CompositeBalance *uint64 `json:"compositeBalance,omitempty"` CompositeInterestRate *uint16 `json:"compositeInterestRate,omitempty"` CompositeUpdatedAt *string `json:"compositeUpdatedAt,omitempty"` DeductibleBalance *uint64 `json:"deductibleBalance,omitempty"` DeductibleInterestRate *uint16 `json:"deductibleInterestRate,omitempty"` DeductibleUpdatedAt *string `json:"deductibleUpdatedAt,omitempty"` }
type GetAccountResponse ¶
type GetAccountResponse struct { Data *GetAccountData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type GetBlockResponse ¶
type GetNftMetaResponse ¶
type GetNftMetaResponse struct { Data *json.RawMessage `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type GetNftRawResponse ¶
type GetStructureResponse ¶
type ListBlocksData ¶
type ListBlocksRawData ¶
type ListBlocksRawResponse ¶
type ListBlocksRawResponse struct { Data *ListBlocksRawData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListBlocksResponse ¶
type ListBlocksResponse struct { Data *ListBlocksData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListMempoolData ¶
type ListMempoolData struct { TotalCount int `json:"totalCount"` Items []*umi.Transaction `json:"items"` }
type ListMempoolRawData ¶
type ListMempoolRawResponse ¶
type ListMempoolRawResponse struct { Data *ListMempoolRawData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListMempoolResponse ¶
type ListMempoolResponse struct { Data *ListMempoolData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListNftRawResponse ¶
type ListStructuresData ¶
type ListStructuresResponse ¶
type ListStructuresResponse struct { Data *ListStructuresData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListTransactionsData ¶
type ListTransactionsData struct { TotalCount int `json:"totalCount"` Items []umi.Transaction `json:"items"` }
type ListTransactionsRawData ¶
type ListTransactionsRawResponse ¶
type ListTransactionsRawResponse struct { Data *ListTransactionsRawData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type ListTransactionsResponse ¶
type ListTransactionsResponse struct { Data *ListTransactionsData `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
type PushMempoolResponse ¶
type PushMempoolResponse struct { Data *umi.Transaction `json:"data,omitempty"` Error *Error `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.