Funding
type FundingBuilder
type FundingBuilder struct {
AccountId AccountId
SubAccountId SubAccountId
SubAccountNonce Nonce
FundingAccountIds []AccountId
Fee BigUint
FeeToken TokenId
}Builder that used to build the Funding transaction.
type Funding
Funding transaction type, it's a opaque data type.
func NewFunding(builder FundingBuilder)
func NewFunding(builder FundingBuilder) *FundingCreate a new Funding transaction.
func (*Funding) GetBytes
func (*Funding) GetBytes() []uint8Get the encoded bytes to create the L3 signature. See more in Private Key and Signature
func (*Funding) TxHash
func (*Funding) TxHash() []uint8Get the transaction hash of the transaction.
func (*Funding) JsonStr
func (*Funding) JsonStr() stringGet the json string of the transaction.
func (*Funding) IsValid
func (*Funding) IsValid() boolCheck if the transaction is valid or not.
func (*Funding) CreateSignedTx
func (*Funding) CreateSignedTx(signer *ZkLinkSigner) (*Funding, error)Create a new AutoDeleveraging transaction with L3 signature inside. input:
signer: ZkLinkSigner
func (*Funding) GetSignature
func (*Funding) GetSignature() ZkLinkSignatureGet L3 signature of the transaction.
func (*Funding) IsSignatureValid
func (*Funding) IsSignatureValid() boolCheck if the inside L3 signature is valid or not.
func (*Funding) ToZklinkTx
func (*Funding) ToZklinkTx() ZkLinkTxChange the transaction to the ZkLinkTx
Last updated
Was this helpful?