Get desktop application:
View/edit binary Protocol Buffers messages
The Phactory Runtime service definition.
Get basic information about Phactory state.
Basic information about a Phactory instance.
Whether the init_runtime has been called successfully.
Whether the worker has been registered on-chain. (Deprecated, use .system.registered instead)
Genesis block header hash passed in by init_runtime.
Public key of the worker. (Deprecated, use .system.public_key instead)
ECDH public key of the worker. (Deprecated, use .system.ecdh_public_key instead)
The relaychain/solochain header number synchronized to.
The parachain header number synchronized to. (parachain mode only)
The changes block number synchronized to.
Current chain storage's state root.
Whether the worker is running in dev mode.
The number of mq messages in the egress queue.
Local estimated benchmark score.
Status of gatekeeper. (Deprecated, use .system.gatekeeper instead)
The App version
The git commit hash which this binary was built from
The heap memory usage of the enclave.
Some relay chain header synced, waiting for parachain headers.
System info
Whether the pruntime support to load state from arbitrary block.
Safe mode level
The timestamp of current block in milliseconds.
The max pink runtime version can be deployed in this version of pruntime.
The supported attestation methods
The number of live sidevm instances.
The timeout for contract query in seconds.
Sync the parent chain header
Request parameters for SyncHeader.
The relaychain headers to be synced. @codec scale crate::blocks::HeadersToSync
@codec scale crate::blocks::AuthoritySetChange
Sync the parachain header
Request parameters for SyncParaHeader.
The parachain headers to be synced. @codec scale crate::blocks::Headers
aka StorageProof
Sync a combined batch of relaychain & parachain headers NOTE: - The two latest headers MUST be aligned with each other by the `Para.Heads` read from the relaychain storage. - The operation is not guaranteed to be atomical. If the parachain header is rejected, the already synced relaychain headers will keep it's progress.
Request parameters for SyncCombinedHeaders.
The relaychain headers to be synced. @codec scale crate::blocks::HeadersToSync
@codec scale crate::blocks::AuthoritySetChange
The parachain headers to be synced. @codec scale crate::blocks::Headers
aka StorageProof
Response to SyncCombinedHeaders.
Dispatch blocks (Sync storage changes)
Request parameters for DispatchBlocks.
The blocks to be synced. @codec scale Vec<crate::blocks::BlockHeaderWithChanges>
Init the Phactory runtime
Request parameters for InitRuntime.
Retired Skip the remote attestation report.
Genesis block infomation for light validation. @codec scale crate::blocks::GenesisBlockInfo
Worker identity key for dev mode.
The parachain's genesis storage state. @codec scale crate::blocks::StorageState
The operator of this worker, which has the permission to bind it's miner. @codec scale chain::AccountId
Init the runtime for parachain.
Attestation provider; @codec scale phala_types::AttestationProvider
Get the cached Phactory runtime init response
Request parameters for GetRuntimeInfo.
Force to refresh the RA report.
Reset the operator of this worker. @codec scale chain::AccountId
Get pending egress messages
Response for GetEgressMessages
@codec scale EgressMessages
Send a query to a contract
Request parameters for ContractQuery
The query data. @codec scale crate::crypto::EncryptedData
The signature infomation
The query result. @codec scale crate::crypto::EncryptedData
Get given worker's state from a GK.
Request parameters for GetWorkerState
The worker's public key.
Response for GetWorkerState
Init the endpoint
@codec scale crate::endpoints::EndpointType
Refresh the endpoint signing time
Get endpoint info
Sign the given endpoint info
@codec scale Vec<String>
Get prouter private key
A echo rpc to measure network RTT.
Key Handover Server: Get challenge for worker key handover from another pRuntime
Key Handover Server: Get worker key with RA report on challenge from another pRuntime
Key Handover Client: Process HandoverChallenge and return RA report
Key Handover Client: Receive encrypted worker key
Dcap Key Handover Server: Get challenge for worker key handover from another pRuntime
Dcap Key Handover Server: Get worker key with RA report on challenge from another pRuntime
Dcap Key Handover Client: Process DcapHandoverChallenge and return LA report
Dcap Key Handover Client: Receive encrypted worker key
Config the pRuntime's network (currently, SOCKS5 proxy only)
Fetch resource from the internet.
Parameters for the RPC HttpFetch
The destination URL to request to
The HTTP method
A list of raw headers
The body payload
Return type for HttpFetch
The HTTP status code
A list of raw headers
The body payload
Get basic information about given contract
Parameters for RPC GetContractInfo
The ids of contracts to query about. Leave empty to query all.
Response for RPC GetContractInfo
A list of contract informations
Get basic information about clusters
Response to GetClusters
Upload sidevm code to given contract. An ink contract can deploy a placeholder sidevm instance without upload the code via the blockchain and then upload the code via this RPC later.
Sidevm code
The target contract_id
The code
Calculate contract id with given deployment parameters
Get network configuration
Network config
The public rpc port with ACL enabled. This is the port serving contract queries.
The current config set by The RPC ConfigNetwork. Nil if the ConfigNetwork hasn't been called.
Load given chain state into the pruntime
@codec scale crate::blocks::StorageState
Stop and optionally remove checkpoints
Remove checkpoints before stop
Partially load values into the pruntime's chain storage.
Take checkpoint. Returns the current block number of the saved state.
Get networks statistics for contracts
Used to specify the contracts addresses for which statistics should be returned.
A list of contract addresses that to be queried.
Query for all contracts.
The statistics that are returned by the RPC service.
The number of seconds the worker has been running. The counters are reset to zero on each restart.
Number of serving cores available to the worker.
Statistics for contract queries.
Statistics for HTTP egress made by ink contracts.
Generate a request to send to another worker in the same cluster to get the cluster state.
Save the current cluster state to filesystem
Load the cluster state from filesystem
Load the cluster state from filesystem
The major version of the pink runtime
The minor version of the pink runtime
Used in:
, ,Retired
Retired
Used in:
Used in:
Used in:
The body of the certificate @codec scale crate::crypto::CertificateBody
An optional signature of the body signed by a parent certificate. @boxed
Information about a cluster
Used in:
The cluster id.
The version of the current contract execution engine
The state root of it's storage.
The address of the system contract.
The address of the log server.
Number of contracts deployed
The Js Runtime code hash
Infomation about a contract
Used in:
The contract id
The blake2 256 hash of the contract
The scheduling weight
Infomation about it's sidevm if exists
Used as request type in: PhactoryAPI.DcapHandoverAcceptChallenge
Used as response type in: PhactoryAPI.DcapHandoverCreateChallenge
@codec scale phala_types::DcapHandoverChallenge<chain::BlockNumber>
Used as request type in: PhactoryAPI.DcapHandoverStart
Used as response type in: PhactoryAPI.DcapHandoverAcceptChallenge
@codec scale phala_types::DcapChallengeHandlerInfo<chain::BlockNumber>
The sgx local attestation report of the client
Used as request type in: PhactoryAPI.DcapHandoverReceive
Used as response type in: PhactoryAPI.DcapHandoverStart
@codec scale phala_types::EncryptedWorkerKey
The sgx local attestation report
Used in:
Used in:
,The Gatekeeper role of the worker.
The master public key, empty if not a Gatekeeper
Used as response type in: PhactoryAPI.AddEndpoint, PhactoryAPI.GetEndpointInfo, PhactoryAPI.RefreshEndpointSigningTime, PhactoryAPI.SignEndpointInfo
@codec scale phala_types::WorkerEndpointPayload
Used as request type in: PhactoryAPI.HandoverAcceptChallenge
Used as response type in: PhactoryAPI.HandoverCreateChallenge
@codec scale phala_types::HandoverChallenge<chain::BlockNumber>
Used as request type in: PhactoryAPI.HandoverStart
Used as response type in: PhactoryAPI.HandoverAcceptChallenge
@codec scale phala_types::ChallengeHandlerInfo<chain::BlockNumber>
The sgx attestation on the challenge handler hash
Used as request type in: PhactoryAPI.HandoverReceive
Used as response type in: PhactoryAPI.HandoverStart
@codec scale phala_types::EncryptedWorkerKey
The sgx attestation on the encrypted worker key hash
Counters for HTTP egress.
Used in:
The number of HTTP requests sent.
The number of failed HTTP requests.
The number of HTTP requests for each status code.
HTTP egress statistics for contracts.
Used in:
Overall HTTP egress statistics.
HTTP egress statistics for each contract.
Used in:
,Used as response type in: PhactoryAPI.GetRuntimeInfo, PhactoryAPI.InitRuntime
@codec scale phala_types::WorkerRegistrationInfoV2<chain::AccountId>
The hash of the first synced relaychain header. @codec scale chain::Hash
The worker's public key. @codec scale phala_types::WorkerPublicKey
@codec scale phala_types::EcdhPublicKey
The sgx attestation
Used in:
The current heap usage of Rust codes.
The peak heap usage of Rust codes.
The entire peak heap memory usage of the enclave.
The memory left.
The peak heap usage of Rust codes in a recent short-term.
Parameters for the RPC ConfigNetwork
Used as request type in: PhactoryAPI.ConfigNetwork
Used as field type in:
The SOCKS5 proxy for outbound tcp connections.
The SOCKS5 proxy for outbound tcp connections to a i2p address.
Counters for queries.
Used in:
Total number of queries.
The number of dropped queries.
The served time in milliseconds.
Statistics for queries.
Used in:
Overall query statistics.
Statistics of query for each contract.
Used in:
Used as request type in: PhactoryAPI.SaveClusterState
Used as response type in: PhactoryAPI.GenerateClusterStateRequest
The pubkey for the worker to receive the state.
The state must later than this block number.
Signature to ensure the request is from the dest worker.
Used as request type in: PhactoryAPI.LoadClusterState
Used as response type in: PhactoryAPI.SaveClusterState
The block number of the saved state.
The filename to download the state.
Infomation about a sidevm
Used in:
Sidevm state. running/stopped
The blake2 256 hash of the current running sidevm.
The start time of the instance.
The latest stop reason if stopped
The max memory pages configuration
The vital_capacity configuration
Run until the given block number
The max code size configuration
Used in:
,The certificate of the signer
The signature type
The signature of the data
Supported signature types. Each signature type also has its corresponding "WrapBytes" version as defined in Polkadot.js: https://github.com/polkadot-js/extension/blob/e4ce268b1cad5e39e75a2195e3aa6d0344de7745/packages/extension-dapp/src/wrapBytes.ts In wrapped version, the message will have tags wrapped around the actual message (`<Bytes>{msg}</Bytes>`). This was introduced in Polkadot.js to reduce the risk it's abused to sign regular transaction. However, we have to support it as well because it's the only message format the Polkadot.js Extension can sign.
Used in:
Response to SyncHeader & SyncParaHeader.
Used as response type in: PhactoryAPI.DispatchBlocks, PhactoryAPI.SyncHeader, PhactoryAPI.SyncParaHeader, PhactoryAPI.TakeCheckpoint
The final actual block number synced to.
Basic information for the initialized runtime
Used in:
Whether the worker has been registered on-chain.
Public key of the worker.
ECDH public key of the worker.
Status of gatekeeper
The number of clusters created
The number of contracts deployed
The max supported consensus version used of this version of pRuntime
The block that the pruntime loaded the genesis state from.
Used in:
next: 22
Used in:
Used in:
Used in: