Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OmniCreatePayloadSimpleSendCmd ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.