omnijson

package
v0.0.0-...-4f625b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2021 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OmniCreatePayloadSimpleSendCmd

type OmniCreatePayloadSimpleSendCmd struct {
	PropertyId int
	Amount     string
}

Create the payload for a simple send transaction.

func NewOmniCreatePayloadSimpleSendCmd

func NewOmniCreatePayloadSimpleSendCmd(propertyId int, amount string) *OmniCreatePayloadSimpleSendCmd

NewOmniCreatePayloadSimpleSendCmd returns a new instance which can be used to issue a omni_createpayload_simplesend JSON-RPC command.

type OmniCreateRawTxChangeCmd

type OmniCreateRawTxChangeCmd struct {
	RawTx       string
	PreTxs      []*PreTx
	Destination string
	Fee         float64
}

Adds a reference output to the transaction

func NewOmniCreateRawTxChangeCmd

func NewOmniCreateRawTxChangeCmd(rawTx string, preTxs []*PreTx, destination string, fee float64) *OmniCreateRawTxChangeCmd

NewOmniCreateRawTxChangeCmd returns a new instance which can be used to issue a omni_createrawtx_reference JSON-RPC command.

type OmniCreateRawTxOpReturnCmd

type OmniCreateRawTxOpReturnCmd struct {
	RawTx   string
	Payload string
}

Adds a payload with class C (op-return) encoding to the transaction.

func NewOmniCreateRawTxOpReturn

func NewOmniCreateRawTxOpReturn(rawTx string, payload string) *OmniCreateRawTxOpReturnCmd

NewOmniCreateRawTxOpReturn returns a new instance which can be used to issue a omni_createrawtx_opreturn JSON-RPC command.

type OmniCreateRawTxReferenceCmd

type OmniCreateRawTxReferenceCmd struct {
	RawTx       string
	Destination string
	Amount      *btcutil.Amount
}

Adds a reference output to the transaction

func NewOmniCreateRawTxReferenceCmd

func NewOmniCreateRawTxReferenceCmd(rawTx string, destination string, amount *btcutil.Amount) *OmniCreateRawTxReferenceCmd

NewOmniCreateRawTxReferenceCmd returns a new instance which can be used to issue a omni_createrawtx_reference JSON-RPC command.

type OmniGetBalanceCmd

type OmniGetBalanceCmd struct {
	Address    string
	PropertyId int
}

Adds a reference output to the transaction

func NewOmniGetBalanceCmd

func NewOmniGetBalanceCmd(address string, propertyId int) *OmniGetBalanceCmd

NewOmniGetBalanceCmd returns a new instance which can be used to issue a omni_getbalance JSON-RPC command.

type OmniGetSeedBlocksCmd

type OmniGetSeedBlocksCmd struct {
	StartBlock int64
	EndBlock   int64
}

OmniGetSeedBlocksCmd defines the omni_getseedblocks JSON-RPC command.

func NewOmniGetSeedBlocksCmd

func NewOmniGetSeedBlocksCmd(startBlock int64, endBlock int64) *OmniGetSeedBlocksCmd

NewOmniGetSeedBlocksCmd returns a new instance which can be used to issue a omni_getseedblocks JSON-RPC command.

type OmniGetTransactionResult

type OmniGetTransactionResult struct {
	TxId             string `json:"txid"`
	SendingAddress   string `json:"sendingaddress"`
	ReferenceAddress string `json:"referenceaddress"`
	IsMine           bool   `json:"ismine"`
	Confirmations    int64  `json:"confirmations"`
	Fee              string `json:"fee"`
	BlockTime        int64  `json:"blocktime"`
	Valid            bool   `json:"valid"`
	InvalidReason    string `json:"invalidreason"`
	Version          int    `json:"version"`
	TypeInt          int    `json:"type_int"`
	Type             string `json:"type"`
	PropertyId       int    `json:"propertyid"`
	Amount           string `json:"amount"`
}

type OmniGetTransactionsCmd

type OmniGetTransactionsCmd struct {
	TxId string
}

Get detailed information about an Omni transaction

func NewOmniGetTransactionsCmd

func NewOmniGetTransactionsCmd(txId string) *OmniGetTransactionsCmd

NewOmniGetTransactionsCmd returns a new instance which can be used to issue a omni_gettransaction JSON-RPC command.

type OmniListBlockTransactionsCmd

type OmniListBlockTransactionsCmd struct {
	Index int64
}

OmniListBlockTransactionsCmd defines the omni_listblocktransactions JSON-RPC command.

func NewOmniListBlockTransactionsCmd

func NewOmniListBlockTransactionsCmd(index int64) *OmniListBlockTransactionsCmd

NewOmniGetSeedBlocksCmd returns a new instance which can be used to issue a omni_listblocktransactions JSON-RPC command.

type OmniSendCmd

type OmniSendCmd struct {
	FromAddress string
	ToAddress   string
	PropertyId  int
	Amount      btcutil.Amount
}

OmniSendCmd defines the omni_send JSON-RPC command.

func NewOmniSendCmd

func NewOmniSendCmd(fromAddress string, toAddress string, propertyId int,
	amount btcutil.Amount) *OmniSendCmd

NewOmniSendCmd returns a new instance which can be used to issue a omni_send JSON-RPC command.

type PreTx

type PreTx struct {
	Txid         string  `json:"txid"`
	Vout         uint32  `json:"vout"`
	ScriptPubKey string  `json:"scriptPubKey"`
	Value        float64 `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL