Documentation ¶
Index ¶
- func HashFromTx(encodeTx string) (string, error)
- func RenderSendMax(fields map[string]interface{}, sendMax *Amount)
- func RenderToMap(xrpTx XRPTransaction) (map[string]interface{}, error)
- func RenderTokenAmount(fields map[string]interface{}, amount *Amount)
- func RenderXrpAmount(fields map[string]interface{}, amount string) error
- type Amount
- type AmountBlockchain
- type TransactionType
- type Tx
- type XRPTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashFromTx ¶
func RenderSendMax ¶
func RenderToMap ¶
func RenderToMap(xrpTx XRPTransaction) (map[string]interface{}, error)
func RenderTokenAmount ¶
func RenderXrpAmount ¶
Types ¶
type AmountBlockchain ¶
type TransactionType ¶
type TransactionType string
const ( PAYMENT TransactionType = "Payment" TRANSACTION_HASH_PREFIX = "54584E00" )
type Tx ¶
type Tx struct { XRPTx *XRPTransaction SignPubKey []byte TransactionSignature []xc.TxSignature }
Tx for Template
func (*Tx) AddSignatures ¶
func (tx *Tx) AddSignatures(signatures ...xc.TxSignature) error
AddSignatures adds a signature to Tx
func (*Tx) GetSignatures ¶
func (tx *Tx) GetSignatures() []xc.TxSignature
GetSignatures returns back signatures, which may be used for signed-transaction broadcasting
type XRPTransaction ¶
type XRPTransaction struct { Account xc.Address `json:"Account"` Amount AmountBlockchain `json:"Amount"` SendMax Amount `json:"SendMax"` Destination xc.Address `json:"Destination"` DestinationTag int64 `json:"DestinationTag"` Fee string `json:"Fee"` Flags int64 `json:"Flags,omitempty"` LastLedgerSequence int64 `json:"LastLedgerSequence"` Sequence int64 `json:"Sequence"` SigningPubKey string `json:"SigningPubKey"` TransactionType TransactionType `json:"TransactionType"` TxnSignature string `json:"TxnSignature"` }
Click to show internal directories.
Click to hide internal directories.