Documentation ¶
Overview ¶
Bitmark rpccalls
Index ¶
- Variables
- type AssetData
- type AssetResult
- type BlockTransferCountersignData
- type BlockTransferData
- type BlockTransferReply
- type BlockTransferSingleSignedReply
- type Client
- func (c *Client) Close()
- func (client *Client) CountersignBlockTransfer(countersignConfig *BlockTransferCountersignData) (*BlockTransferReply, error)
- func (client *Client) CountersignTransfer(countersignConfig *CountersignData) (*TransferReply, error)
- func (client *Client) GetBitmarkInfo() (*rpc.InfoReply, error)
- func (client *Client) GetProvenance(provenanceConfig *ProvenanceData) (*ProvenanceReply, error)
- func (client *Client) GetTransactionStatus(statusConfig *TransactionStatusData) (*rpc.TransactionStatusReply, error)
- func (client *Client) Issue(issueConfig *IssueData) (*IssueReply, error)
- func (client *Client) MakeAsset(assetConfig *AssetData) (*AssetResult, error)
- func (client *Client) SingleSignedBlockTransfer(blockTransferConfig *BlockTransferData) (*BlockTransferSingleSignedReply, error)
- func (client *Client) SingleSignedTransfer(transferConfig *TransferData) (*SingleSignedReply, error)
- func (client *Client) Transfer(transferConfig *TransferData) (*TransferReply, error)
- type CountersignData
- type IssueData
- type IssueReply
- type ProvenanceData
- type ProvenanceReply
- type SingleSignedReply
- type TransactionStatusData
- type TransferData
- type TransferReply
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMakeBlockTransferFail = fault.ProcessError("make block transfer failed") ErrNotBlockTransferRecord = fault.InvalidError("not block transfer record") )
View Source
var ( ErrMakeTransferFail = fault.ProcessError("make transfer failed") ErrNotTransferRecord = fault.InvalidError("not transfer record") )
View Source
var (
ErrAssetRequestFail = fault.ProcessError("send asset request failed")
)
View Source
var (
ErrMakeIssueFail = fault.ProcessError("make issue failed")
)
Functions ¶
This section is empty.
Types ¶
type AssetResult ¶ added in v0.9.1
type AssetResult struct { AssetId *transactionrecord.AssetIdentifier Confirmed bool }
type BlockTransferCountersignData ¶ added in v0.7.0
type BlockTransferData ¶ added in v0.7.0
type BlockTransferReply ¶ added in v0.7.0
type BlockTransferReply struct { BlockTransferId merkle.Digest `json:"blockTransferId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` Commands map[string]string `json:"commands,omitempty"` }
JSON data to output after blockTransfer completes
type BlockTransferSingleSignedReply ¶ added in v0.7.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
to hold RPC connections streams
func (*Client) CountersignBlockTransfer ¶ added in v0.7.0
func (client *Client) CountersignBlockTransfer(countersignConfig *BlockTransferCountersignData) (*BlockTransferReply, error)
func (*Client) CountersignTransfer ¶
func (client *Client) CountersignTransfer(countersignConfig *CountersignData) (*TransferReply, error)
func (*Client) GetProvenance ¶
func (client *Client) GetProvenance(provenanceConfig *ProvenanceData) (*ProvenanceReply, error)
func (*Client) GetTransactionStatus ¶
func (client *Client) GetTransactionStatus(statusConfig *TransactionStatusData) (*rpc.TransactionStatusReply, error)
func (*Client) MakeAsset ¶
func (client *Client) MakeAsset(assetConfig *AssetData) (*AssetResult, error)
build a properly signed asset
func (*Client) SingleSignedBlockTransfer ¶ added in v0.7.0
func (client *Client) SingleSignedBlockTransfer(blockTransferConfig *BlockTransferData) (*BlockTransferSingleSignedReply, error)
func (*Client) SingleSignedTransfer ¶
func (client *Client) SingleSignedTransfer(transferConfig *TransferData) (*SingleSignedReply, error)
func (*Client) Transfer ¶
func (client *Client) Transfer(transferConfig *TransferData) (*TransferReply, error)
type CountersignData ¶
type IssueData ¶
type IssueData struct { Issuer *keypair.KeyPair AssetId *transactionrecord.AssetIdentifier Quantity int FreeIssue bool }
type IssueReply ¶
type IssueReply struct { AssetId transactionrecord.AssetIdentifier `json:"assetId"` IssueIds []merkle.Digest `json:"issueIds"` PayId pay.PayId `json:"payId"` PayNonce reservoir.PayNonce `json:"payNonce"` Difficulty string `json:"difficulty"` SubmittedNonce string `json:"submittedNonce"` ProofStatus reservoir.TrackingStatus `json:"proofStatus"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments,omitempty"` Commands map[string]string `json:"commands,omitempty"` }
JSON data to output after asset/issue/proof completes
type ProvenanceData ¶
type ProvenanceReply ¶ added in v0.9.1
type ProvenanceReply struct {
Data []provenanceItem `json:"data"`
}
type SingleSignedReply ¶
type TransactionStatusData ¶
type TransactionStatusData struct {
TxId string
}
type TransferData ¶
type TransferReply ¶
type TransferReply struct { TransferId merkle.Digest `json:"transferId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` Commands map[string]string `json:"commands,omitempty"` }
JSON data to output after transfer completes
Click to show internal directories.
Click to hide internal directories.