Skip to main content

Types.Json

o1js / Modules / Types / Json

Namespace: Json

Types.Json

Table of contents

Type Aliases

Type Aliases

Account

Ƭ Account: Object

Type declaration

NameType
balanceUInt64
delegatePublicKey | null
nonceUInt32
permissions{ access: AuthRequired ; editActionState: AuthRequired ; editState: AuthRequired ; incrementNonce: AuthRequired ; receive: AuthRequired ; send: AuthRequired ; setDelegate: AuthRequired ; setPermissions: AuthRequired ; setTiming: AuthRequired ; setTokenSymbol: AuthRequired ; setVerificationKey: AuthRequired ; setVotingFor: AuthRequired ; setZkappUri: AuthRequired }
permissions.accessAuthRequired
permissions.editActionStateAuthRequired
permissions.editStateAuthRequired
permissions.incrementNonceAuthRequired
permissions.receiveAuthRequired
permissions.sendAuthRequired
permissions.setDelegateAuthRequired
permissions.setPermissionsAuthRequired
permissions.setTimingAuthRequired
permissions.setTokenSymbolAuthRequired
permissions.setVerificationKeyAuthRequired
permissions.setVotingForAuthRequired
permissions.setZkappUriAuthRequired
publicKeyPublicKey
receiptChainHashField
timing{ cliffAmount: UInt64 ; cliffTime: UInt32 ; initialMinimumBalance: UInt64 ; isTimed: Bool ; vestingIncrement: UInt64 ; vestingPeriod: UInt32 }
timing.cliffAmountUInt64
timing.cliffTimeUInt32
timing.initialMinimumBalanceUInt64
timing.isTimedBool
timing.vestingIncrementUInt64
timing.vestingPeriodUInt32
tokenIdTokenId
tokenSymbolstring
votingForField
zkapp{ actionState: Field[] ; appState: Field[] ; lastActionSlot: UInt32 ; provedState: Bool ; verificationKey: { data: string ; hash: Field } | null ; zkappUri: string ; zkappVersion: UInt32 } | null

Defined in

bindings/mina-transaction/gen/transaction-json.ts:315


AccountUpdate

Ƭ AccountUpdate: Object

Type declaration

NameType
authorization{ proof: string | null ; signature: string | null }
authorization.proofstring | null
authorization.signaturestring | null
body{ actions: Field[][] ; authorizationKind: { isProved: Bool ; isSigned: Bool ; verificationKeyHash: Field } ; balanceChange: { magnitude: UInt64 ; sgn: Sign } ; callData: Field ; callDepth: number ; events: Field[][] ; implicitAccountCreationFee: Bool ; incrementNonce: Bool ; mayUseToken: { inheritFromParent: Bool ; parentsOwnToken: Bool } ; preconditions: { account: { actionState: Field | null ; balance: { lower: UInt64 ; upper: UInt64 } | null ; delegate: PublicKey | null ; isNew: Bool | null ; nonce: { lower: UInt32 ; upper: UInt32 } | null ; provedState: Bool | null ; receiptChainHash: Field | null ; state: (Field | null)[] } ; network: { blockchainLength: { lower: UInt32 ; upper: UInt32 } | null ; globalSlotSinceGenesis: { lower: UInt32 ; upper: UInt32 } | null ; minWindowDensity: { lower: UInt32 ; upper: UInt32 } | null ; nextEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; snarkedLedgerHash: Field | null ; stakingEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; validWhile: { lower: UInt32 ; upper: UInt32 } | null } ; publicKey: PublicKey ; tokenId: TokenId ; update: { appState: (Field | null)[] ; delegate: PublicKey | null ; permissions: { access: AuthRequired ; editActionState: AuthRequired ; editState: AuthRequired ; incrementNonce: AuthRequired ; receive: AuthRequired ; send: AuthRequired ; setDelegate: AuthRequired ; setPermissions: AuthRequired ; setTiming: AuthRequired ; setTokenSymbol: AuthRequired ; setVerificationKey: AuthRequired ; setVotingFor: AuthRequired ; setZkappUri: AuthRequired } | null ; timing: { cliffAmount: UInt64 ; cliffTime: UInt32 ; initialMinimumBalance: UInt64 ; vestingIncrement: UInt64 ; vestingPeriod: UInt32 } | null ; tokenSymbol: string | null ; verificationKey: { data: string ; hash: Field } | null ; votingFor: Field | null ; zkappUri: string | null } ; useFullCommitment: Bool }
body.actionsField[][]
body.authorizationKind{ isProved: Bool ; isSigned: Bool ; verificationKeyHash: Field }
body.authorizationKind.isProvedBool
body.authorizationKind.isSignedBool
body.authorizationKind.verificationKeyHashField
body.balanceChange{ magnitude: UInt64 ; sgn: Sign }
body.balanceChange.magnitudeUInt64
body.balanceChange.sgnSign
body.callDataField
body.callDepthnumber
body.eventsField[][]
body.implicitAccountCreationFeeBool
body.incrementNonceBool
body.mayUseToken{ inheritFromParent: Bool ; parentsOwnToken: Bool }
body.mayUseToken.inheritFromParentBool
body.mayUseToken.parentsOwnTokenBool
body.preconditions{ account: { actionState: Field | null ; balance: { lower: UInt64 ; upper: UInt64 } | null ; delegate: PublicKey | null ; isNew: Bool | null ; nonce: { lower: UInt32 ; upper: UInt32 } | null ; provedState: Bool | null ; receiptChainHash: Field | null ; state: (Field | null)[] } ; network: { blockchainLength: { lower: UInt32 ; upper: UInt32 } | null ; globalSlotSinceGenesis: { lower: UInt32 ; upper: UInt32 } | null ; minWindowDensity: { lower: UInt32 ; upper: UInt32 } | null ; nextEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; snarkedLedgerHash: Field | null ; stakingEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; validWhile: { lower: UInt32 ; upper: UInt32 } | null }
body.preconditions.account{ actionState: Field | null ; balance: { lower: UInt64 ; upper: UInt64 } | null ; delegate: PublicKey | null ; isNew: Bool | null ; nonce: { lower: UInt32 ; upper: UInt32 } | null ; provedState: Bool | null ; receiptChainHash: Field | null ; state: (Field | null)[] }
body.preconditions.account.actionStateField | null
body.preconditions.account.balance{ lower: UInt64 ; upper: UInt64 } | null
body.preconditions.account.delegatePublicKey | null
body.preconditions.account.isNewBool | null
body.preconditions.account.nonce{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.account.provedStateBool | null
body.preconditions.account.receiptChainHashField | null
body.preconditions.account.state(Field | null)[]
body.preconditions.network{ blockchainLength: { lower: UInt32 ; upper: UInt32 } | null ; globalSlotSinceGenesis: { lower: UInt32 ; upper: UInt32 } | null ; minWindowDensity: { lower: UInt32 ; upper: UInt32 } | null ; nextEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; snarkedLedgerHash: Field | null ; stakingEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null }
body.preconditions.network.blockchainLength{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.network.globalSlotSinceGenesis{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.network.minWindowDensity{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.network.nextEpochData{ epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null }
body.preconditions.network.nextEpochData.epochLength{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.network.nextEpochData.ledger{ hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null }
body.preconditions.network.nextEpochData.ledger.hashField | null
body.preconditions.network.nextEpochData.ledger.totalCurrency{ lower: UInt64 ; upper: UInt64 } | null
body.preconditions.network.nextEpochData.lockCheckpointField | null
body.preconditions.network.nextEpochData.seedField | null
body.preconditions.network.nextEpochData.startCheckpointField | null
body.preconditions.network.snarkedLedgerHashField | null
body.preconditions.network.stakingEpochData{ epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null }
body.preconditions.network.stakingEpochData.epochLength{ lower: UInt32 ; upper: UInt32 } | null
body.preconditions.network.stakingEpochData.ledger{ hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null }
body.preconditions.network.stakingEpochData.ledger.hashField | null
body.preconditions.network.stakingEpochData.ledger.totalCurrency{ lower: UInt64 ; upper: UInt64 } | null
body.preconditions.network.stakingEpochData.lockCheckpointField | null
body.preconditions.network.stakingEpochData.seedField | null
body.preconditions.network.stakingEpochData.startCheckpointField | null
body.preconditions.network.totalCurrency{ lower: UInt64 ; upper: UInt64 } | null
body.preconditions.validWhile{ lower: UInt32 ; upper: UInt32 } | null
body.publicKeyPublicKey
body.tokenIdTokenId
body.update{ appState: (Field | null)[] ; delegate: PublicKey | null ; permissions: { access: AuthRequired ; editActionState: AuthRequired ; editState: AuthRequired ; incrementNonce: AuthRequired ; receive: AuthRequired ; send: AuthRequired ; setDelegate: AuthRequired ; setPermissions: AuthRequired ; setTiming: AuthRequired ; setTokenSymbol: AuthRequired ; setVerificationKey: AuthRequired ; setVotingFor: AuthRequired ; setZkappUri: AuthRequired } | null ; timing: { cliffAmount: UInt64 ; cliffTime: UInt32 ; initialMinimumBalance: UInt64 ; vestingIncrement: UInt64 ; vestingPeriod: UInt32 } | null ; tokenSymbol: string | null ; verificationKey: { data: string ; hash: Field } | null ; votingFor: Field | null ; zkappUri: string | null }
body.update.appState(Field | null)[]
body.update.delegatePublicKey | null
body.update.permissions{ access: AuthRequired ; editActionState: AuthRequired ; editState: AuthRequired ; incrementNonce: AuthRequired ; receive: AuthRequired ; send: AuthRequired ; setDelegate: AuthRequired ; setPermissions: AuthRequired ; setTiming: AuthRequired ; setTokenSymbol: AuthRequired ; setVerificationKey: AuthRequired ; setVotingFor: AuthRequired ; setZkappUri: AuthRequired } | null
body.update.timing{ cliffAmount: UInt64 ; cliffTime: UInt32 ; initialMinimumBalance: UInt64 ; vestingIncrement: UInt64 ; vestingPeriod: UInt32 } | null
body.update.tokenSymbolstring | null
body.update.verificationKey{ data: string ; hash: Field } | null
body.update.votingForField | null
body.update.zkappUristring | null
body.useFullCommitmentBool

Defined in

bindings/mina-transaction/gen/transaction-json.ts:178


AuthRequired

Ƭ AuthRequired: "Signature" | "Proof" | "Either" | "None" | "Impossible"

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:9


Bool

Ƭ Bool: boolean

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:4


Field

Ƭ Field: string

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:3


PublicKey

Ƭ PublicKey: string

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:7


Sign

Ƭ Sign: "Positive" | "Negative"

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:8


TokenId

Ƭ TokenId: Field

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:10


TypeMap

Ƭ TypeMap: Object

Type declaration

NameType
AuthRequiredAuthRequired
BoolBool
FieldField
PublicKeyPublicKey
SignSign
TokenIdTokenId
UInt32UInt32
UInt64UInt64

Defined in

bindings/mina-transaction/gen/transaction-json.ts:18


UInt32

Ƭ UInt32: string

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:6


UInt64

Ƭ UInt64: string

Defined in

bindings/mina-transaction/transaction-leaves-json.ts:5


ZkappCommand

Ƭ ZkappCommand: Object

Type declaration

NameType
accountUpdates{ authorization: { proof: string | null ; signature: string | null } ; body: { actions: Field[][] ; authorizationKind: { isProved: Bool ; isSigned: Bool ; verificationKeyHash: Field } ; balanceChange: { magnitude: UInt64 ; sgn: Sign } ; callData: Field ; callDepth: number ; events: Field[][] ; implicitAccountCreationFee: Bool ; incrementNonce: Bool ; mayUseToken: { inheritFromParent: Bool ; parentsOwnToken: Bool } ; preconditions: { account: { actionState: Field | null ; balance: { lower: UInt64 ; upper: UInt64 } | null ; delegate: PublicKey | null ; isNew: Bool | null ; nonce: { lower: UInt32 ; upper: UInt32 } | null ; provedState: Bool | null ; receiptChainHash: Field | null ; state: (Field | null)[] } ; network: { blockchainLength: { lower: UInt32 ; upper: UInt32 } | null ; globalSlotSinceGenesis: { lower: UInt32 ; upper: UInt32 } | null ; minWindowDensity: { lower: UInt32 ; upper: UInt32 } | null ; nextEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; snarkedLedgerHash: Field | null ; stakingEpochData: { epochLength: { lower: UInt32 ; upper: UInt32 } | null ; ledger: { hash: Field | null ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; lockCheckpoint: Field | null ; seed: Field | null ; startCheckpoint: Field | null } ; totalCurrency: { lower: UInt64 ; upper: UInt64 } | null } ; validWhile: { lower: UInt32 ; upper: UInt32 } | null } ; publicKey: PublicKey ; tokenId: TokenId ; update: { appState: (Field | null)[] ; delegate: PublicKey | null ; permissions: { access: AuthRequired ; editActionState: AuthRequired ; editState: AuthRequired ; incrementNonce: AuthRequired ; receive: AuthRequired ; send: AuthRequired ; setDelegate: AuthRequired ; setPermissions: AuthRequired ; setTiming: AuthRequired ; setTokenSymbol: AuthRequired ; setVerificationKey: AuthRequired ; setVotingFor: AuthRequired ; setZkappUri: AuthRequired } | null ; timing: { cliffAmount: UInt64 ; cliffTime: UInt32 ; initialMinimumBalance: UInt64 ; vestingIncrement: UInt64 ; vestingPeriod: UInt32 } | null ; tokenSymbol: string | null ; verificationKey: { data: string ; hash: Field } | null ; votingFor: Field | null ; zkappUri: string | null } ; useFullCommitment: Bool } }[]
feePayer{ authorization: string ; body: { fee: UInt64 ; nonce: UInt32 ; publicKey: PublicKey ; validUntil: UInt32 | null } }
feePayer.authorizationstring
feePayer.body{ fee: UInt64 ; nonce: UInt32 ; publicKey: PublicKey ; validUntil: UInt32 | null }
feePayer.body.feeUInt64
feePayer.body.nonceUInt32
feePayer.body.publicKeyPublicKey
feePayer.body.validUntilUInt32 | null
memostring

Defined in

bindings/mina-transaction/gen/transaction-json.ts:29