Documentation
¶
Index ¶
- Variables
- type CreateAccountOp
- func (*CreateAccountOp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountOp) GetDestination() string
- func (x *CreateAccountOp) GetStartingBalance() int64
- func (*CreateAccountOp) ProtoMessage()
- func (x *CreateAccountOp) ProtoReflect() protoreflect.Message
- func (x *CreateAccountOp) Reset()
- func (x *CreateAccountOp) String() string
- type MemoHash
- type MemoId
- type MemoText
- type PaymentOp
- type SigningInput
- func (*SigningInput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningInput) GetAccount() string
- func (x *SigningInput) GetCreateAccount() *CreateAccountOp
- func (x *SigningInput) GetFee() int32
- func (x *SigningInput) GetMemo() isSigningInput_Memo
- func (x *SigningInput) GetMemoHash() *MemoHash
- func (x *SigningInput) GetMemoId() *MemoId
- func (x *SigningInput) GetMemoText() *MemoText
- func (x *SigningInput) GetOperation() isSigningInput_Operation
- func (x *SigningInput) GetPassphrase() string
- func (x *SigningInput) GetPayment() *PaymentOp
- func (x *SigningInput) GetSequence() int64
- func (*SigningInput) ProtoMessage()
- func (x *SigningInput) ProtoReflect() protoreflect.Message
- func (x *SigningInput) Reset()
- func (x *SigningInput) String() string
- type SigningInput_CreateAccount
- type SigningInput_MemoHash
- type SigningInput_MemoId
- type SigningInput_MemoText
- type SigningInput_Payment
- type SigningOutput
- func (*SigningOutput) Descriptor() ([]byte, []int)deprecated
- func (x *SigningOutput) GetEncoded() string
- func (x *SigningOutput) GetError() string
- func (x *SigningOutput) GetRaw() []byte
- func (*SigningOutput) ProtoMessage()
- func (x *SigningOutput) ProtoReflect() protoreflect.Message
- func (x *SigningOutput) Reset()
- func (x *SigningOutput) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_txproto_stellar_stellar_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CreateAccountOp ¶ added in v0.14.0
type CreateAccountOp struct {
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // G-address
StartingBalance int64 `protobuf:"varint,2,opt,name=starting_balance,json=startingBalance,proto3" json:"starting_balance,omitempty"` // stroops
// contains filtered or unexported fields
}
Fund a not-yet-existing account (Stellar rejects Payment to unfunded accounts).
func (*CreateAccountOp) Descriptor
deprecated
added in
v0.14.0
func (*CreateAccountOp) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountOp.ProtoReflect.Descriptor instead.
func (*CreateAccountOp) GetDestination ¶ added in v0.14.0
func (x *CreateAccountOp) GetDestination() string
func (*CreateAccountOp) GetStartingBalance ¶ added in v0.14.0
func (x *CreateAccountOp) GetStartingBalance() int64
func (*CreateAccountOp) ProtoMessage ¶ added in v0.14.0
func (*CreateAccountOp) ProtoMessage()
func (*CreateAccountOp) ProtoReflect ¶ added in v0.14.0
func (x *CreateAccountOp) ProtoReflect() protoreflect.Message
func (*CreateAccountOp) Reset ¶ added in v0.14.0
func (x *CreateAccountOp) Reset()
func (*CreateAccountOp) String ¶ added in v0.14.0
func (x *CreateAccountOp) String() string
type MemoHash ¶ added in v0.14.0
type MemoHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*MemoHash) Descriptor
deprecated
added in
v0.14.0
func (*MemoHash) ProtoMessage ¶ added in v0.14.0
func (*MemoHash) ProtoMessage()
func (*MemoHash) ProtoReflect ¶ added in v0.14.0
func (x *MemoHash) ProtoReflect() protoreflect.Message
type MemoId ¶ added in v0.14.0
type MemoId struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*MemoId) Descriptor
deprecated
added in
v0.14.0
func (*MemoId) ProtoMessage ¶ added in v0.14.0
func (*MemoId) ProtoMessage()
func (*MemoId) ProtoReflect ¶ added in v0.14.0
func (x *MemoId) ProtoReflect() protoreflect.Message
type MemoText ¶ added in v0.14.0
type MemoText struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
func (*MemoText) Descriptor
deprecated
added in
v0.14.0
func (*MemoText) ProtoMessage ¶ added in v0.14.0
func (*MemoText) ProtoMessage()
func (*MemoText) ProtoReflect ¶ added in v0.14.0
func (x *MemoText) ProtoReflect() protoreflect.Message
type PaymentOp ¶
type PaymentOp struct {
Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // G-address of the recipient
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // amount in stroops (1 XLM = 10_000_000 stroops)
// contains filtered or unexported fields
}
Payment operation: transfer native XLM.
func (*PaymentOp) Descriptor
deprecated
func (*PaymentOp) GetDestination ¶
func (*PaymentOp) ProtoMessage ¶
func (*PaymentOp) ProtoMessage()
func (*PaymentOp) ProtoReflect ¶
func (x *PaymentOp) ProtoReflect() protoreflect.Message
type SigningInput ¶
type SigningInput struct {
// Source account G-address (needed for XDR source-account field).
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
// Base fee in stroops (per-operation); e.g. 1000.
Fee int32 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"`
// Transaction sequence number (one more than the account's current seq).
Sequence int64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
// Stellar network passphrase. Empty string → mainnet default:
//
// "Public Global Stellar Network ; September 2015"
Passphrase string `protobuf:"bytes,4,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
// Types that are valid to be assigned to Operation:
//
// *SigningInput_Payment
// *SigningInput_CreateAccount
Operation isSigningInput_Operation `protobuf_oneof:"operation"`
// Types that are valid to be assigned to Memo:
//
// *SigningInput_MemoText
// *SigningInput_MemoId
// *SigningInput_MemoHash
Memo isSigningInput_Memo `protobuf_oneof:"memo"`
// contains filtered or unexported fields
}
SigningInput mirrors a minimal subset of TW.Stellar.Proto.SigningInput.
func (*SigningInput) Descriptor
deprecated
func (*SigningInput) Descriptor() ([]byte, []int)
Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.
func (*SigningInput) GetAccount ¶
func (x *SigningInput) GetAccount() string
func (*SigningInput) GetCreateAccount ¶ added in v0.14.0
func (x *SigningInput) GetCreateAccount() *CreateAccountOp
func (*SigningInput) GetFee ¶
func (x *SigningInput) GetFee() int32
func (*SigningInput) GetMemo ¶ added in v0.14.0
func (x *SigningInput) GetMemo() isSigningInput_Memo
func (*SigningInput) GetMemoHash ¶ added in v0.14.0
func (x *SigningInput) GetMemoHash() *MemoHash
func (*SigningInput) GetMemoId ¶ added in v0.14.0
func (x *SigningInput) GetMemoId() *MemoId
func (*SigningInput) GetMemoText ¶ added in v0.14.0
func (x *SigningInput) GetMemoText() *MemoText
func (*SigningInput) GetOperation ¶
func (x *SigningInput) GetOperation() isSigningInput_Operation
func (*SigningInput) GetPassphrase ¶
func (x *SigningInput) GetPassphrase() string
func (*SigningInput) GetPayment ¶
func (x *SigningInput) GetPayment() *PaymentOp
func (*SigningInput) GetSequence ¶
func (x *SigningInput) GetSequence() int64
func (*SigningInput) ProtoMessage ¶
func (*SigningInput) ProtoMessage()
func (*SigningInput) ProtoReflect ¶
func (x *SigningInput) ProtoReflect() protoreflect.Message
func (*SigningInput) Reset ¶
func (x *SigningInput) Reset()
func (*SigningInput) String ¶
func (x *SigningInput) String() string
type SigningInput_CreateAccount ¶ added in v0.14.0
type SigningInput_CreateAccount struct {
CreateAccount *CreateAccountOp `protobuf:"bytes,9,opt,name=create_account,json=createAccount,proto3,oneof"`
}
type SigningInput_MemoHash ¶ added in v0.14.0
type SigningInput_MemoHash struct {
MemoHash *MemoHash `protobuf:"bytes,8,opt,name=memo_hash,json=memoHash,proto3,oneof"`
}
type SigningInput_MemoId ¶ added in v0.14.0
type SigningInput_MemoId struct {
MemoId *MemoId `protobuf:"bytes,7,opt,name=memo_id,json=memoId,proto3,oneof"`
}
type SigningInput_MemoText ¶ added in v0.14.0
type SigningInput_MemoText struct {
MemoText *MemoText `protobuf:"bytes,6,opt,name=memo_text,json=memoText,proto3,oneof"`
}
type SigningInput_Payment ¶
type SigningInput_Payment struct {
Payment *PaymentOp `protobuf:"bytes,5,opt,name=payment,proto3,oneof"`
}
type SigningOutput ¶
type SigningOutput struct {
// base64(XDR(TransactionEnvelope)) — the wire-ready signed transaction.
Encoded string `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
// Raw XDR bytes of the TransactionEnvelope.
Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw,omitempty"`
// Error message; empty on success.
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
SigningOutput mirrors a minimal subset of TW.Stellar.Proto.SigningOutput.
func (*SigningOutput) Descriptor
deprecated
func (*SigningOutput) Descriptor() ([]byte, []int)
Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.
func (*SigningOutput) GetEncoded ¶
func (x *SigningOutput) GetEncoded() string
func (*SigningOutput) GetError ¶
func (x *SigningOutput) GetError() string
func (*SigningOutput) GetRaw ¶
func (x *SigningOutput) GetRaw() []byte
func (*SigningOutput) ProtoMessage ¶
func (*SigningOutput) ProtoMessage()
func (*SigningOutput) ProtoReflect ¶
func (x *SigningOutput) ProtoReflect() protoreflect.Message
func (*SigningOutput) Reset ¶
func (x *SigningOutput) Reset()
func (*SigningOutput) String ¶
func (x *SigningOutput) String() string
Click to show internal directories.
Click to hide internal directories.