transaction
struct transaction.Transaction
- Variables
Variable | Description |
---|---|
Transaction | Inherited from pb.Transaction |
hash | The digest of this Transaction |
size | The size of this Transaction |
isSignatureVerified | Whether this Transaction has been verified |
- Methods
- Marshal() : []byte, error // serialize transaction
- Unmarshal(buf []byte) : error // deserialization transaction
- DeserializeUnsigned(r io.Reader) : error // deserialize unsigned transaction
- GetInfo() : []byte, error // get readable Json format of transaction
- GetMessage() : []byte // get byte slice of serialized unsigned transaction
- GetProgramHashes() : []Uint160, error // get code hash of transacion
- GetPrograms() : []*pb.Program // get code of transaction
- GetSize() : uint32 // get size of transaction
- Hash() : Uint256 // get hash value of transaction
- SerializeUnsigned(w io.Writer) : error // serialize unsigned transaction
- SetHash(hash Uint256) // set hash value to transaction
- SetPrograms(programs []*pb.Program) // set codes to transaction
- ShortHash(salt []byte, size uint32) : []byte // get short hash value of transaction
- ToArray() : []byte // get byte slice of serialized transaction
- VerifySignature() : error // verify signature of transaction
struct pb.Transaction
- Variables
Variable | Description |
---|---|
UnsignedTx | Unsigned Transaction |
Programs | program and signature |
- Methods
- Generated by protobuf
struct pb.Program
- Variables
Variable | Description |
---|---|
Code | program to program hash |
Parameter | signature |
- Methods
- Generated by protobuf
struct pb.UnsignedTx
- Variables
Variable | Description |
---|---|
Payload | Payload of Transaction |
Nonce | Transaction nonce |
Fee | Transaction fee |
Attributes | Attributes |
- Methods
- Generated by protobuf
struct pb.Payload
- Variables
Variable | Description |
---|---|
Type | PayloadType |
Data | Serialized Payload |
- Methods
- Generated by protobuf
interface IPayload
- interface
Method | Description |
---|---|
Marshal | Serialize method |
Unmarshal | Deserialize method |
struct pb.Coinbase
- Variables
Variable | Description |
---|---|
Sender | sender of Transaction |
Recipient | recipient of Transaction |
Amount | amount of NKN |
- Methods
- Generated by protobuf
struct pb.SigChainTxn
- Variables
Variable | Description |
---|---|
SigChain | signature chain |
Submitter | sender of sigChain |
- Methods
- Generated by protobuf
struct pb.RegisterName
- Variables
Variable | Description |
---|---|
Registrant | sender of Transaction |
Name | name need to be registered |
- Methods
- Generated by protobuf
struct pb.Subscribe
- Variables
Variable | Description |
---|---|
Subscriber | sender of Transaction |
Identifier | id |
Topic | topic |
Bucket | deprecated |
Duration | period of validity |
Meta | meta data |
- Methods
- Generated by protobuf
struct pb.Unsubscribe
- Variables
Variable | Description |
---|---|
Subscriber | sender of Transaction |
Identifier | id |
Topic | topic |
- Methods
- Generated by protobuf
struct pb.TransferAsset
- Variables
Variable | Description |
---|---|
Sender | sender of Transaction |
Recipient | recipient of Transaction |
Amount | amount of NKN |
- Methods
- Generated by protobuf
struct pb.GenerateID
- Variables
Variable | Description |
---|---|
Public_key | public key of sender |
Registration_fee | registration fee of transaction |
- Methods
- Generated by protobuf
struct pb.NanoPay
- Variables
Variable | Description |
---|---|
Sender | sender of token |
Recipient | recipient of token |
Id | nanopay ID |
Amount | amount of NKN |
Txn_expiration | period of tx validity |
Nano_pay_expiration | period of nanopay validity |
- Methods
- Generated by protobuf
struct pb.IssueAsset
- Variables
Variable | Description |
---|---|
Sender | sender of transaction |
Name | name of token |
Symbol | symbol of token |
Total_supply | total supply |
Precision | precision of token |
- Methods
- Generated by protobuf