Documentation
¶
Overview ¶
Bitmark rpccalls
Index ¶
- Variables
- type AssetData
- type AssetResult
- type BalanceData
- type BlockTransferData
- type BlockTransferReply
- type BlockTransferSingleSignedReply
- type Client
- func (c *Client) Close()
- func (client *Client) Countersign(countersignConfig *CountersignData) (interface{}, error)
- func (client *Client) CountersignBlockTransfer(blockTransfer *transactionrecord.BlockOwnerTransfer) (*BlockTransferReply, error)
- func (client *Client) CountersignGrant(grant *transactionrecord.ShareGrant) (*GrantReply, error)
- func (client *Client) CountersignSwap(swap *transactionrecord.ShareSwap) (*SwapReply, error)
- func (client *Client) CountersignTransfer(transfer *transactionrecord.BitmarkTransferCountersigned) (*TransferReply, error)
- func (client *Client) GetBalance(balanceConfig *BalanceData) (*rpc.ShareBalanceReply, error)
- func (client *Client) GetBitmarkInfo() (*rpc.InfoReply, error)
- func (client *Client) GetOwned(ownedConfig *OwnedData) (*rpc.OwnerBitmarksReply, error)
- func (client *Client) GetProvenance(provenanceConfig *ProvenanceData) (*ProvenanceReply, error)
- func (client *Client) GetTransactionStatus(statusConfig *TransactionStatusData) (*rpc.TransactionStatusReply, error)
- func (client *Client) Grant(grantConfig *GrantData) (*GrantSingleSignedReply, error)
- func (client *Client) Issue(issueConfig *IssueData) (*IssueReply, error)
- func (client *Client) MakeAsset(assetConfig *AssetData) (*AssetResult, error)
- func (client *Client) Share(shareConfig *ShareData) (*ShareReply, error)
- func (client *Client) SingleSignedBlockTransfer(blockTransferConfig *BlockTransferData) (*BlockTransferSingleSignedReply, error)
- func (client *Client) SingleSignedTransfer(transferConfig *TransferData) (*TransferSingleSignedReply, error)
- func (client *Client) Swap(swapConfig *SwapData) (*SwapSingleSignedReply, error)
- func (client *Client) Transfer(transferConfig *TransferData) (*TransferReply, error)
- type CountersignData
- type GrantCountersignData
- type GrantData
- type GrantReply
- type GrantSingleSignedReply
- type IssueData
- type IssueReply
- type OwnedData
- type ProvenanceData
- type ProvenanceReply
- type ShareData
- type ShareReply
- type SwapCountersignData
- type SwapData
- type SwapReply
- type SwapSingleSignedReply
- type TransactionStatusData
- type TransferCountersignData
- type TransferData
- type TransferReply
- type TransferSingleSignedReply
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 ( ErrMakeGrantFail = fault.ProcessError("make grant failed") ErrNotGrantRecord = fault.InvalidError("not grant record") )
View Source
var ( ErrMakeSwapFail = fault.ProcessError("make swap failed") ErrNotSwapRecord = fault.InvalidError("not swap record") )
View Source
var ( ErrMakeTransferFail = fault.ProcessError("make transfer failed") ErrNotTransferRecord = fault.InvalidError("not transfer record") )
View Source
var (
ErrMakeIssueFail = fault.ProcessError("make issue failed")
)
View Source
var (
)
View Source
var (
ErrNotCountersignableRecord = fault.InvalidError("not countersignable record")
)
Functions ¶
This section is empty.
Types ¶
type AssetResult ¶ added in v0.9.1
type AssetResult struct { AssetId *transactionrecord.AssetIdentifier Confirmed bool }
type BalanceData ¶ added in v0.10.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) Countersign ¶ added in v0.10.0
func (client *Client) Countersign(countersignConfig *CountersignData) (interface{}, error)
func (*Client) CountersignBlockTransfer ¶ added in v0.7.0
func (client *Client) CountersignBlockTransfer(blockTransfer *transactionrecord.BlockOwnerTransfer) (*BlockTransferReply, error)
func (*Client) CountersignGrant ¶ added in v0.10.0
func (client *Client) CountersignGrant(grant *transactionrecord.ShareGrant) (*GrantReply, error)
func (*Client) CountersignSwap ¶ added in v0.10.0
func (client *Client) CountersignSwap(swap *transactionrecord.ShareSwap) (*SwapReply, error)
func (*Client) CountersignTransfer ¶
func (client *Client) CountersignTransfer(transfer *transactionrecord.BitmarkTransferCountersigned) (*TransferReply, error)
func (*Client) GetBalance ¶ added in v0.10.0
func (client *Client) GetBalance(balanceConfig *BalanceData) (*rpc.ShareBalanceReply, error)
func (*Client) GetOwned ¶ added in v0.10.0
func (client *Client) GetOwned(ownedConfig *OwnedData) (*rpc.OwnerBitmarksReply, 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) Grant ¶ added in v0.10.0
func (client *Client) Grant(grantConfig *GrantData) (*GrantSingleSignedReply, error)
func (*Client) MakeAsset ¶
func (client *Client) MakeAsset(assetConfig *AssetData) (*AssetResult, error)
build a properly signed asset
func (*Client) Share ¶ added in v0.10.0
func (client *Client) Share(shareConfig *ShareData) (*ShareReply, error)
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) (*TransferSingleSignedReply, error)
func (*Client) Swap ¶ added in v0.10.0
func (client *Client) Swap(swapConfig *SwapData) (*SwapSingleSignedReply, error)
func (*Client) Transfer ¶
func (client *Client) Transfer(transferConfig *TransferData) (*TransferReply, error)
type CountersignData ¶
type GrantCountersignData ¶ added in v0.10.0
type GrantReply ¶ added in v0.10.0
type GrantReply struct { GrantId merkle.Digest `json:"grantId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` Commands map[string]string `json:"commands,omitempty"` }
JSON data to output after grant completes
type GrantSingleSignedReply ¶ added in v0.10.0
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 ShareReply ¶ added in v0.10.0
type ShareReply struct {}
JSON data to output after transfer completes
type SwapCountersignData ¶ added in v0.10.0
type SwapReply ¶ added in v0.10.0
type SwapReply struct { SwapId merkle.Digest `json:"swapId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` Commands map[string]string `json:"commands,omitempty"` }
JSON data to output after swap completes
type SwapSingleSignedReply ¶ added in v0.10.0
type TransactionStatusData ¶
type TransactionStatusData struct {
TxId string
}
type TransferCountersignData ¶ added in v0.10.0
type TransferData ¶
type TransferReply ¶
type TransferReply struct { TransferId merkle.Digest `json:"transferId"` BitmarkId merkle.Digest `json:"bitmarkId"` 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
type TransferSingleSignedReply ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.