Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagAppName = "App-Name" TagAppNameValue = "SmartWeaveAction" TagAppVersion = "App-Version" TagContractTxId = "Contract" TagInput = "Input" TagContentType = "Content-Type" TagContractSrcTxId = "Contract-Src" TagSDK = "SDK" TagMinFee = "Min-Fee" )
Variables ¶
View Source
var (
TagContractTxIdRegex = regexp.MustCompile("^[a-zA-Z0-9_-]{43}$")
)
Functions ¶
func ValidateInteraction ¶ added in v0.2.111
func ValidateInteraction(tx *arweave.Transaction) (isInteraction bool, err error)
Types ¶
type Block ¶
type Block struct { Height int64 `json:"height"` Id arweave.Base64String `json:"id"` Timestamp int64 `json:"timestamp"` }
type Interaction ¶
type Interaction struct { Id arweave.Base64String `json:"id"` Owner Owner `json:"owner"` Recipient arweave.Base64String `json:"recipient"` Tags []Tag `json:"tags"` Block Block `json:"block"` Fee Amount `json:"fee"` Quantity Amount `json:"quantity"` Random arweave.Base64String `json:"random,omitempty"` }
Click to show internal directories.
Click to hide internal directories.