Skip to main content

Tagion Contract definitions

A contract is defined as a HiRPC with the submit method and a SignedContract as the only parameter

Smart contract Method

The hirpc document sent to the network

NameD-TypeDescriptionRequired
$@hirpcRecord type nameYes
methodstring="submit"RPC method nameYes
paramsSignedContractThe actual contractYes

Signed contract(SSC)

SignedContract

NameD-TypeDescriptionRequired
$@SSCRecord type nameYes
$signs[Buffer]List of $N$ signatureYes
$contract[Contract]The contract bodyYes

Body of the contract(SMC)

Contract

NameD-TypeDescriptionRequired
$@SMCRecord type nameYes
$in[Buffer]$N$ input fingerprintYes
$read[Buffer]Fingerprints to readsNo
$run[Document]Smart ContractYes

PayScript

PayScript

This is a builtin not sosmart-contract for outputting tagions

NameD-TypeDescriptionRequired
$@payRecord type nameYes
$vals[TagionBill]script outputsYes