Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateRawTransaction(cmd omnijson.CreateRawTransactionCommand) (omnijson.CreateRawTransactionResult, error)
- func (c *Client) GetAccountAddress(account string) (omnijson.GetAccountAddressResult, error)
- func (c *Client) GetAddressesByAccount(account string) (omnijson.GetAddressesByAccountResult, error)
- func (c *Client) GetBlockChainInfo() (omnijson.GetBlockChainInfoResult, error)
- func (c *Client) GetInfo() (omnijson.OmniGetInfoResult, error)
- func (c *Client) GetNewAddress(account string) (omnijson.GetNewAddressResult, error)
- func (c *Client) ImportAddress(address string, rescan bool) error
- func (c *Client) ListAccounts(minConf int64) (omnijson.ListAccountsResult, error)
- func (c *Client) ListUnspent(cmd omnijson.ListUnspentCommand) (omnijson.ListUnspentResult, error)
- func (c *Client) NextID() uint64
- func (c *Client) OmniCreatePayloadSimpleSend(cmd omnijson.OmniCreatePayloadSimpleSendCommand) (omnijson.OmniCreatePayloadSimpleSendResult, error)
- func (c *Client) OmniCreateRawTxChange(cmd omnijson.OmniCreateRawTxChangeCommand) (omnijson.OmniCreateRawTxChangeResult, error)
- func (c *Client) OmniCreateRawTxOpReturn(cmd omnijson.OmniCreateRawTxOpReturnCommand) (omnijson.OmniCreateRawTxOpReturnResult, error)
- func (c *Client) OmniCreateRawTxReference(cmd omnijson.OmniCreateRawTxReferenceCommand) (omnijson.OmniCreateRawTxReferenceResult, error)
- func (c *Client) OmniFoundedSend(from, to string, propertyid int64, amount, fee string) (omnijson.OmniFoundedSendResult, error)
- func (c *Client) OmniGetBalance(cmd omnijson.OmniGetBalanceCommand) (omnijson.OmniGetBalanceResult, error)
- func (c *Client) OmniGetTransaction(hash string) (omnijson.OmniGettransactionResult, error)
- func (c *Client) OmniListBlockTransactions(block int64) (omnijson.OmniListBlockTransactionsResult, error)
- func (c *Client) SendRawTransaction(cmd omnijson.SendRawTransactionCommand) (omnijson.SendRawTransactionResult, error)
- func (c *Client) Shutdown()
- func (c *Client) SignRawTransaction(cmd omnijson.SignRawTransactionCommand) (omnijson.SignRawTransactionResult, error)
- func (c *Client) SignRawTransactionWithKey(cmd omnijson.SignRawTransactionWithKeyCommand) (omnijson.SignRawTransactionWithKeyResult, error)
- func (c *Client) SignRawTransactionWithWallet(cmd omnijson.SignRawTransactionWithWalletCommand) (omnijson.SignRawTransactionWithWalletResult, error)
- type ConnConfig
- type ErrClientShutdown
- type SigHashType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *ConnConfig) *Client
func (*Client) CreateRawTransaction ¶
func (c *Client) CreateRawTransaction(cmd omnijson.CreateRawTransactionCommand) (omnijson.CreateRawTransactionResult, error)
func (*Client) GetAccountAddress ¶
func (c *Client) GetAccountAddress(account string) (omnijson.GetAccountAddressResult, error)
func (*Client) GetAddressesByAccount ¶
func (c *Client) GetAddressesByAccount(account string) (omnijson.GetAddressesByAccountResult, error)
func (*Client) GetBlockChainInfo ¶
func (c *Client) GetBlockChainInfo() (omnijson.GetBlockChainInfoResult, error)
func (*Client) GetNewAddress ¶
func (c *Client) GetNewAddress(account string) (omnijson.GetNewAddressResult, error)
func (*Client) ListAccounts ¶
func (c *Client) ListAccounts(minConf int64) (omnijson.ListAccountsResult, error)
func (*Client) ListUnspent ¶
func (c *Client) ListUnspent(cmd omnijson.ListUnspentCommand) (omnijson.ListUnspentResult, error)
func (*Client) OmniCreatePayloadSimpleSend ¶
func (c *Client) OmniCreatePayloadSimpleSend(cmd omnijson.OmniCreatePayloadSimpleSendCommand) (omnijson.OmniCreatePayloadSimpleSendResult, error)
func (*Client) OmniCreateRawTxChange ¶
func (c *Client) OmniCreateRawTxChange(cmd omnijson.OmniCreateRawTxChangeCommand) (omnijson.OmniCreateRawTxChangeResult, error)
func (*Client) OmniCreateRawTxOpReturn ¶
func (c *Client) OmniCreateRawTxOpReturn(cmd omnijson.OmniCreateRawTxOpReturnCommand) (omnijson.OmniCreateRawTxOpReturnResult, error)
func (*Client) OmniCreateRawTxReference ¶
func (c *Client) OmniCreateRawTxReference(cmd omnijson.OmniCreateRawTxReferenceCommand) (omnijson.OmniCreateRawTxReferenceResult, error)
func (*Client) OmniFoundedSend ¶
func (*Client) OmniGetBalance ¶
func (c *Client) OmniGetBalance(cmd omnijson.OmniGetBalanceCommand) (omnijson.OmniGetBalanceResult, error)
func (*Client) OmniGetTransaction ¶
func (c *Client) OmniGetTransaction(hash string) (omnijson.OmniGettransactionResult, error)
func (*Client) OmniListBlockTransactions ¶
func (c *Client) OmniListBlockTransactions(block int64) (omnijson.OmniListBlockTransactionsResult, error)
func (*Client) SendRawTransaction ¶
func (c *Client) SendRawTransaction(cmd omnijson.SendRawTransactionCommand) (omnijson.SendRawTransactionResult, error)
func (*Client) SignRawTransaction ¶
func (c *Client) SignRawTransaction(cmd omnijson.SignRawTransactionCommand) (omnijson.SignRawTransactionResult, error)
func (*Client) SignRawTransactionWithKey ¶
func (c *Client) SignRawTransactionWithKey(cmd omnijson.SignRawTransactionWithKeyCommand) (omnijson.SignRawTransactionWithKeyResult, error)
func (*Client) SignRawTransactionWithWallet ¶
func (c *Client) SignRawTransactionWithWallet(cmd omnijson.SignRawTransactionWithWalletCommand) (omnijson.SignRawTransactionWithWalletResult, error)
type ConnConfig ¶
type ErrClientShutdown ¶
type ErrClientShutdown struct{}
func (*ErrClientShutdown) Error ¶
func (*ErrClientShutdown) Error() string
type SigHashType ¶
type SigHashType = string
const ( // SigHashAll indicates ALL of the outputs should be signed. SigHashAll SigHashType = "ALL" // SigHashNone indicates NONE of the outputs should be signed. This // can be thought of as specifying the signer does not care where the // bitcoins go. SigHashNone SigHashType = "NONE" // SigHashSingle indicates that a SINGLE output should be signed. This // can be thought of specifying the signer only cares about where ONE of // the outputs goes, but not any of the others. SigHashSingle SigHashType = "SINGLE" // SigHashAllAnyoneCanPay indicates that signer does not care where the // other inputs to the transaction come from, so it allows other people // to add inputs. In addition, it uses the SigHashAll signing method // for outputs. SigHashAllAnyoneCanPay SigHashType = "ALL|ANYONECANPAY" // SigHashNoneAnyoneCanPay indicates that signer does not care where the // other inputs to the transaction come from, so it allows other people // to add inputs. In addition, it uses the SigHashNone signing method // for outputs. SigHashNoneAnyoneCanPay SigHashType = "NONE|ANYONECANPAY" // SigHashSingleAnyoneCanPay indicates that signer does not care where // the other inputs to the transaction come from, so it allows other // people to add inputs. In addition, it uses the SigHashSingle signing // method for outputs. SigHashSingleAnyoneCanPay SigHashType = "SINGLE|ANYONECANPAY" )
Constants used to indicate the signature hash type for SignRawTransaction.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.