diff --git a/docs/build/api/schema/directives/include.mdx b/docs/build/api/schema/directives/include.mdx index 5f175454e..677531344 100644 --- a/docs/build/api/schema/directives/include.mdx +++ b/docs/build/api/schema/directives/include.mdx @@ -5,30 +5,61 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Directs the executor to include this field or fragment only when the `if` argument is true. + ```graphql directive @include( if: Boolean! -) +) on + | FIELD + | FRAGMENT_SPREAD + | INLINE_FRAGMENT ``` + + ### Arguments -#### [include.if](#)[`Boolean!`](/build/api/schema/scalars/boolean) +#### [include.if](#)[`Boolean!`](/build/api/schema/scalars/boolean) +> +> > Included when true. > - - diff --git a/docs/build/api/schema/directives/skip.mdx b/docs/build/api/schema/directives/skip.mdx index 2739f14f3..a443c405b 100644 --- a/docs/build/api/schema/directives/skip.mdx +++ b/docs/build/api/schema/directives/skip.mdx @@ -5,30 +5,61 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Directs the executor to skip this field or fragment when the `if` argument is true. + ```graphql directive @skip( if: Boolean! -) +) on + | FIELD + | FRAGMENT_SPREAD + | INLINE_FRAGMENT ``` + + ### Arguments -#### [skip.if](#)[`Boolean!`](/build/api/schema/scalars/boolean) +#### [skip.if](#)[`Boolean!`](/build/api/schema/scalars/boolean) +> +> > Skipped when true. > - - diff --git a/docs/build/api/schema/enums/error-context.mdx b/docs/build/api/schema/enums/error-context.mdx index 9ca755314..5bc5b5b12 100644 --- a/docs/build/api/schema/enums/error-context.mdx +++ b/docs/build/api/schema/enums/error-context.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Transaction error context + ```graphql enum ErrorContext { INVALID_TRANSACTION @@ -23,13 +49,19 @@ enum ErrorContext { ``` + + ### Values -#### [ErrorContext.INVALID_TRANSACTION](#) +#### [ErrorContext.INVALID_TRANSACTION](#) +> +> > Transaction is invalid > -#### [ErrorContext.NETWORK_ISSUE](#) +#### [ErrorContext.NETWORK_ISSUE](#) +> +> > Network problem > @@ -37,7 +69,5 @@ enum ErrorContext { ### Member of -[`TransactionError`](/build/api/schema/objects/transaction-error) - - +[`TransactionError`](/build/api/schema/objects/transaction-error) diff --git a/docs/build/api/schema/enums/sort-order.mdx b/docs/build/api/schema/enums/sort-order.mdx index 55e641596..ffacd82e6 100644 --- a/docs/build/api/schema/enums/sort-order.mdx +++ b/docs/build/api/schema/enums/sort-order.mdx @@ -5,17 +5,43 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + SortOrder represents the order of the result possible values are ASC or DESC + ```graphql enum SortOrder { ASC @@ -24,13 +50,19 @@ enum SortOrder { ``` + + ### Values -#### [SortOrder.ASC](#) +#### [SortOrder.ASC](#) +> +> > Ascending order > -#### [SortOrder.DESC](#) +#### [SortOrder.DESC](#) +> +> > Descending order > @@ -38,7 +70,5 @@ enum SortOrder { ### Member of -[`transactionChain`](/build/api/schema/queries/transaction-chain) - - +[`transactionChain`](/build/api/schema/queries/transaction-chain) diff --git a/docs/build/api/schema/generated.md b/docs/build/api/schema/generated.md index 650c7ddba..0dbd77721 100644 --- a/docs/build/api/schema/generated.md +++ b/docs/build/api/schema/generated.md @@ -16,4 +16,4 @@ Use the docs in the sidebar to find out how to use the schema: - **Allowed operations**: queries and mutations. - **Schema-defined types**: scalars, objects, enums, interfaces, unions, and input objects. -Generated on 09/06/2023 13:56:15. +Generated on 6/20/2024, 4:15:30 PM. diff --git a/docs/build/api/schema/objects/authorized-key.mdx b/docs/build/api/schema/objects/authorized-key.mdx index 12f5cd8a3..45fd78d07 100644 --- a/docs/build/api/schema/objects/authorized-key.mdx +++ b/docs/build/api/schema/objects/authorized-key.mdx @@ -5,17 +5,43 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [AuthorizedKey] represents a authorized public key with the encrypted secret key for this given key. By decrypting this secret key, the authorized public key will be able to decrypt its related secret + ```graphql type AuthorizedKey { encryptedSecretKey: Hex @@ -24,13 +50,19 @@ type AuthorizedKey { ``` + + ### Fields -#### [AuthorizedKey.encryptedSecretKey](#)[`Hex`](/build/api/schema/scalars/hex) +#### [AuthorizedKey.encryptedSecretKey](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > -#### [AuthorizedKey.publicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [AuthorizedKey.publicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > @@ -38,7 +70,5 @@ type AuthorizedKey { ### Member of -[`Ownership`](/build/api/schema/objects/ownership) - - +[`Ownership`](/build/api/schema/objects/ownership) diff --git a/docs/build/api/schema/objects/balance.mdx b/docs/build/api/schema/objects/balance.mdx index f9033c902..5d39100a1 100644 --- a/docs/build/api/schema/objects/balance.mdx +++ b/docs/build/api/schema/objects/balance.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Balance] represents a ledger balance. @@ -18,6 +43,7 @@ It includes: - UCO: uco balance - token: token balances + ```graphql type Balance { token: [TokenBalance] @@ -26,13 +52,19 @@ type Balance { ``` + + ### Fields -#### [Balance.token](#)[`[TokenBalance]`](/build/api/schema/objects/token-balance) +#### [Balance.token](#)[`[TokenBalance]`](/build/api/schema/objects/token-balance) +> +> > > -#### [Balance.uco](#)[`Int`](/build/api/schema/scalars/int) +#### [Balance.uco](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -40,11 +72,9 @@ type Balance { ### Returned by -[`balance`](/build/api/schema/queries/balance) +[`balance`](/build/api/schema/queries/balance) ### Member of -[`Transaction`](/build/api/schema/objects/transaction) - - +[`Transaction`](/build/api/schema/objects/transaction) diff --git a/docs/build/api/schema/objects/beacon-chain-summary.mdx b/docs/build/api/schema/objects/beacon-chain-summary.mdx index 6e3f973ee..1c515987c 100644 --- a/docs/build/api/schema/objects/beacon-chain-summary.mdx +++ b/docs/build/api/schema/objects/beacon-chain-summary.mdx @@ -5,55 +5,97 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Beacon Chain Summary] represents the beacon chain aggregate for a certain date + ```graphql type BeaconChainSummary { availabilityAddingTime: Int p2pAvailabilities: P2pAvailabilities summaryTime: Timestamp transactionSummaries( - limit: PosInteger - pagingOffset: NonNegInteger -): [TransactionSummary] + limit: PosInteger + pagingOffset: NonNegInteger + ): [TransactionSummary] version: Int } ``` + + ### Fields -#### [BeaconChainSummary.availabilityAddingTime](#)[`Int`](/build/api/schema/scalars/int) +#### [BeaconChainSummary.availabilityAddingTime](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [BeaconChainSummary.p2pAvailabilities](#)[`P2pAvailabilities`](/build/api/schema/scalars/p2-p-availabilities) +#### [BeaconChainSummary.p2pAvailabilities](#)[`P2pAvailabilities`](/build/api/schema/scalars/p2-p-availabilities) +> +> > > -#### [BeaconChainSummary.summaryTime](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [BeaconChainSummary.summaryTime](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [BeaconChainSummary.transactionSummaries](#)[`[TransactionSummary]`](/build/api/schema/objects/transaction-summary) +#### [BeaconChainSummary.transactionSummaries](#)[`[TransactionSummary]`](/build/api/schema/objects/transaction-summary) +> +> +> +> ##### [BeaconChainSummary.transactionSummaries.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> > -> ##### [BeaconChainSummary.transactionSummaries.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) > > -##### [BeaconChainSummary.transactionSummaries.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +##### [BeaconChainSummary.transactionSummaries.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +> +> > > -#### [BeaconChainSummary.version](#)[`Int`](/build/api/schema/scalars/int) +#### [BeaconChainSummary.version](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -61,7 +103,5 @@ type BeaconChainSummary { ### Returned by -[`beaconChainSummary`](/build/api/schema/queries/beacon-chain-summary) - - +[`beaconChainSummary`](/build/api/schema/queries/beacon-chain-summary) diff --git a/docs/build/api/schema/objects/consumed-inputs.mdx b/docs/build/api/schema/objects/consumed-inputs.mdx new file mode 100644 index 000000000..d4c1365a6 --- /dev/null +++ b/docs/build/api/schema/objects/consumed-inputs.mdx @@ -0,0 +1,124 @@ +--- +id: consumed-inputs +title: ConsumedInputs +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +[ConsumedInputs] represents the inputs consumed by the transaction +It includes: +- From: transaction which send the amount of assets +- Amount: asset amount +- Type: UCO / token / state / call +- token address: address of the token if the type is token +- token id: It is the id for a token which is allocated when the token is minted. +- Timestamp: Date time when the UTXO created/manipulated +- Protocol Version: Version of the UTXO data structure +- State: It is the state of a smart contract + + +```graphql +type ConsumedInputs { + amount: Int + from: Address + protocolVersion: Int + state: State + timestamp: Timestamp + tokenAddress: Address + tokenId: Int + type: String +} +``` + + + + +### Fields + +#### [ConsumedInputs.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> +> +> + +#### [ConsumedInputs.from](#)[`Address`](/build/api/schema/scalars/address) +> +> +> +> + +#### [ConsumedInputs.protocolVersion](#)[`Int`](/build/api/schema/scalars/int) +> +> +> +> + +#### [ConsumedInputs.state](#)[`State`](/build/api/schema/scalars/state) +> +> +> +> + +#### [ConsumedInputs.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> +> +> + +#### [ConsumedInputs.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> +> +> + +#### [ConsumedInputs.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> +> +> + +#### [ConsumedInputs.type](#)[`String`](/build/api/schema/scalars/string) +> +> +> +> + + + +### Member of + +[`LedgerOperations`](/build/api/schema/objects/ledger-operations) + diff --git a/docs/build/api/schema/objects/cross-validation-stamp.mdx b/docs/build/api/schema/objects/cross-validation-stamp.mdx index 3a6d40b01..a3ffc932e 100644 --- a/docs/build/api/schema/objects/cross-validation-stamp.mdx +++ b/docs/build/api/schema/objects/cross-validation-stamp.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [CrossValidationStamp] represents the approval of the validation stamp by a cross validation node. @@ -18,6 +43,7 @@ It includes: - Signature: signature of the validation stamp - Node public key: cross validation node's public key + ```graphql type CrossValidationStamp { nodePublicKey: PublicKey @@ -26,13 +52,19 @@ type CrossValidationStamp { ``` + + ### Fields -#### [CrossValidationStamp.nodePublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [CrossValidationStamp.nodePublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [CrossValidationStamp.signature](#)[`Hex`](/build/api/schema/scalars/hex) +#### [CrossValidationStamp.signature](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > @@ -40,7 +72,5 @@ type CrossValidationStamp { ### Member of -[`Transaction`](/build/api/schema/objects/transaction) - - +[`Transaction`](/build/api/schema/objects/transaction) diff --git a/docs/build/api/schema/objects/data.mdx b/docs/build/api/schema/objects/data.mdx index 21a59bef9..eeb76ed49 100644 --- a/docs/build/api/schema/objects/data.mdx +++ b/docs/build/api/schema/objects/data.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TransactionData] represents the data section for every transaction. @@ -21,8 +46,10 @@ It includes: - Ownership: authorization/delegations containing list of secrets and their authorized public keys to proof the ownership - Recipients: For non asset transfers, the list of recipients of the transaction (e.g Smart contract interactions) + ```graphql type Data { + actionRecipients: [Recipient] code: String content: Content ledger: Ledger @@ -32,33 +59,49 @@ type Data { ``` + + ### Fields -#### [Data.code](#)[`String`](/build/api/schema/scalars/string) +#### [Data.actionRecipients](#)[`[Recipient]`](/build/api/schema/objects/recipient) > > - -#### [Data.content](#)[`Content`](/build/api/schema/scalars/content) > > -#### [Data.ledger](#)[`Ledger`](/build/api/schema/objects/ledger) +#### [Data.code](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Data.ownerships](#)[`[Ownership]`](/build/api/schema/objects/ownership) +#### [Data.content](#)[`Content`](/build/api/schema/scalars/content) +> +> > > -#### [Data.recipients](#)[`[Address]`](/build/api/schema/scalars/address) +#### [Data.ledger](#)[`Ledger`](/build/api/schema/objects/ledger) +> +> > > +#### [Data.ownerships](#)[`[Ownership]`](/build/api/schema/objects/ownership) +> +> +> +> +#### [Data.recipients](#)[`[Address]`](/build/api/schema/scalars/address) +> +> +> +> -### Member of -[`Transaction`](/build/api/schema/objects/transaction) +### Member of +[`Transaction`](/build/api/schema/objects/transaction) diff --git a/docs/build/api/schema/objects/endpoint.mdx b/docs/build/api/schema/objects/endpoint.mdx index e0112ff96..0ee1f7aef 100644 --- a/docs/build/api/schema/objects/endpoint.mdx +++ b/docs/build/api/schema/objects/endpoint.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Endpoint] represents a network node's endpoint + ```graphql type Endpoint { ip: String @@ -23,13 +49,19 @@ type Endpoint { ``` + + ### Fields -#### [Endpoint.ip](#)[`String`](/build/api/schema/scalars/string) +#### [Endpoint.ip](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Endpoint.port](#)[`Int`](/build/api/schema/scalars/int) +#### [Endpoint.port](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -37,7 +69,5 @@ type Endpoint { ### Returned by -[`nearestEndpoints`](/build/api/schema/queries/nearest-endpoints) - - +[`nearestEndpoints`](/build/api/schema/queries/nearest-endpoints) diff --git a/docs/build/api/schema/objects/error-details.mdx b/docs/build/api/schema/objects/error-details.mdx new file mode 100644 index 000000000..f807656d0 --- /dev/null +++ b/docs/build/api/schema/objects/error-details.mdx @@ -0,0 +1,80 @@ +--- +id: error-details +title: ErrorDetails +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +Details about the error + + +```graphql +type ErrorDetails { + code: Int + data: ErrorData + message: String +} +``` + + + + +### Fields + +#### [ErrorDetails.code](#)[`Int`](/build/api/schema/scalars/int) +> +> +> +> + +#### [ErrorDetails.data](#)[`ErrorData`](/build/api/schema/scalars/error-data) +> +> +> +> + +#### [ErrorDetails.message](#)[`String`](/build/api/schema/scalars/string) +> +> +> +> + + + +### Member of + +[`TransactionError`](/build/api/schema/objects/transaction-error) + diff --git a/docs/build/api/schema/objects/ledger-operations.mdx b/docs/build/api/schema/objects/ledger-operations.mdx index 410ad8e81..509c4becb 100644 --- a/docs/build/api/schema/objects/ledger-operations.mdx +++ b/docs/build/api/schema/objects/ledger-operations.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [LedgerOperations] represents the ledger operations performed by the transaction @@ -19,8 +44,10 @@ It includes: - Unspent outputs: remaining unspent outputs - Fee: transaction fee + ```graphql type LedgerOperations { + consumedInputs: [ConsumedInputs] fee: Int transactionMovements: [TransactionMovement] unspentOutputs: [UnspentOutput] @@ -28,25 +55,37 @@ type LedgerOperations { ``` + + ### Fields -#### [LedgerOperations.fee](#)[`Int`](/build/api/schema/scalars/int) +#### [LedgerOperations.consumedInputs](#)[`[ConsumedInputs]`](/build/api/schema/objects/consumed-inputs) > > - -#### [LedgerOperations.transactionMovements](#)[`[TransactionMovement]`](/build/api/schema/objects/transaction-movement) > > -#### [LedgerOperations.unspentOutputs](#)[`[UnspentOutput]`](/build/api/schema/objects/unspent-output) +#### [LedgerOperations.fee](#)[`Int`](/build/api/schema/scalars/int) +> +> > > +#### [LedgerOperations.transactionMovements](#)[`[TransactionMovement]`](/build/api/schema/objects/transaction-movement) +> +> +> +> +#### [LedgerOperations.unspentOutputs](#)[`[UnspentOutput]`](/build/api/schema/objects/unspent-output) +> +> +> +> -### Member of -[`ValidationStamp`](/build/api/schema/objects/validation-stamp) +### Member of +[`ValidationStamp`](/build/api/schema/objects/validation-stamp) diff --git a/docs/build/api/schema/objects/ledger.mdx b/docs/build/api/schema/objects/ledger.mdx index fe6f9a29a..4f527bffe 100644 --- a/docs/build/api/schema/objects/ledger.mdx +++ b/docs/build/api/schema/objects/ledger.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Ledger] represents the ledger operations to perform + ```graphql type Ledger { token: TokenLedger @@ -23,13 +49,19 @@ type Ledger { ``` + + ### Fields -#### [Ledger.token](#)[`TokenLedger`](/build/api/schema/objects/token-ledger) +#### [Ledger.token](#)[`TokenLedger`](/build/api/schema/objects/token-ledger) +> +> > > -#### [Ledger.uco](#)[`UcoLedger`](/build/api/schema/objects/uco-ledger) +#### [Ledger.uco](#)[`UcoLedger`](/build/api/schema/objects/uco-ledger) +> +> > > @@ -37,7 +69,5 @@ type Ledger { ### Member of -[`Data`](/build/api/schema/objects/data) - - +[`Data`](/build/api/schema/objects/data) diff --git a/docs/build/api/schema/objects/node.mdx b/docs/build/api/schema/objects/node.mdx index 426ef9e6c..670a3f75d 100644 --- a/docs/build/api/schema/objects/node.mdx +++ b/docs/build/api/schema/objects/node.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Node] represents a node in the network + ```graphql type Node { authorizationDate: Timestamp @@ -34,57 +60,85 @@ type Node { ``` + + ### Fields -#### [Node.authorizationDate](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [Node.authorizationDate](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [Node.authorized](#)[`Boolean`](/build/api/schema/scalars/boolean) +#### [Node.authorized](#)[`Boolean`](/build/api/schema/scalars/boolean) +> +> > > -#### [Node.available](#)[`Boolean`](/build/api/schema/scalars/boolean) +#### [Node.available](#)[`Boolean`](/build/api/schema/scalars/boolean) +> +> > > -#### [Node.averageAvailability](#)[`Float`](/build/api/schema/scalars/float) +#### [Node.averageAvailability](#)[`Float`](/build/api/schema/scalars/float) +> +> > > -#### [Node.enrollmentDate](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [Node.enrollmentDate](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [Node.firstPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [Node.firstPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [Node.geoPatch](#)[`String`](/build/api/schema/scalars/string) +#### [Node.geoPatch](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Node.ip](#)[`String`](/build/api/schema/scalars/string) +#### [Node.ip](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Node.lastPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [Node.lastPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [Node.networkPatch](#)[`String`](/build/api/schema/scalars/string) +#### [Node.networkPatch](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Node.originPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [Node.originPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [Node.port](#)[`Int`](/build/api/schema/scalars/int) +#### [Node.port](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [Node.rewardAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [Node.rewardAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > @@ -92,7 +146,5 @@ type Node { ### Returned by -[`nodes`](/build/api/schema/queries/nodes) - - +[`nodes`](/build/api/schema/queries/nodes) diff --git a/docs/build/api/schema/objects/oracle-data.mdx b/docs/build/api/schema/objects/oracle-data.mdx index cfe66fe73..c67b7f9bd 100644 --- a/docs/build/api/schema/objects/oracle-data.mdx +++ b/docs/build/api/schema/objects/oracle-data.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [OracleData] represents an oracle data. + ```graphql type OracleData { services: OracleServices @@ -23,13 +49,19 @@ type OracleData { ``` + + ### Fields -#### [OracleData.services](#)[`OracleServices`](/build/api/schema/objects/oracle-services) +#### [OracleData.services](#)[`OracleServices`](/build/api/schema/objects/oracle-services) +> +> > > -#### [OracleData.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [OracleData.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > @@ -37,7 +69,5 @@ type OracleData { ### Returned by -[`oracleData`](/build/api/schema/queries/oracle-data) [`oracleUpdate`](/build/api/schema/subscriptions/oracle-update) - - +[`oracleData`](/build/api/schema/queries/oracle-data) [`oracleUpdate`](/build/api/schema/subscriptions/oracle-update) diff --git a/docs/build/api/schema/objects/oracle-services.mdx b/docs/build/api/schema/objects/oracle-services.mdx index c664d9179..acf62d899 100644 --- a/docs/build/api/schema/objects/oracle-services.mdx +++ b/docs/build/api/schema/objects/oracle-services.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + No description + ```graphql type OracleServices { uco: UcoData @@ -22,9 +48,13 @@ type OracleServices { ``` + + ### Fields -#### [OracleServices.uco](#)[`UcoData`](/build/api/schema/objects/uco-data) +#### [OracleServices.uco](#)[`UcoData`](/build/api/schema/objects/uco-data) +> +> > > @@ -32,7 +62,5 @@ type OracleServices { ### Member of -[`OracleData`](/build/api/schema/objects/oracle-data) - - +[`OracleData`](/build/api/schema/objects/oracle-data) diff --git a/docs/build/api/schema/objects/ownership.mdx b/docs/build/api/schema/objects/ownership.mdx index 5efdf5ff7..8b6632d9e 100644 --- a/docs/build/api/schema/objects/ownership.mdx +++ b/docs/build/api/schema/objects/ownership.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Ownership] represents a block to set a secret and the authorized public keys able to decrypt the secret + ```graphql type Ownership { authorizedPublicKeys: [AuthorizedKey] @@ -23,13 +49,19 @@ type Ownership { ``` + + ### Fields -#### [Ownership.authorizedPublicKeys](#)[`[AuthorizedKey]`](/build/api/schema/objects/authorized-key) +#### [Ownership.authorizedPublicKeys](#)[`[AuthorizedKey]`](/build/api/schema/objects/authorized-key) +> +> > > -#### [Ownership.secret](#)[`Hex`](/build/api/schema/scalars/hex) +#### [Ownership.secret](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > @@ -37,7 +69,5 @@ type Ownership { ### Member of -[`Data`](/build/api/schema/objects/data) [`Token`](/build/api/schema/objects/token) - - +[`Data`](/build/api/schema/objects/data) [`Token`](/build/api/schema/objects/token) diff --git a/docs/build/api/schema/objects/recipient.mdx b/docs/build/api/schema/objects/recipient.mdx new file mode 100644 index 000000000..95360f6b1 --- /dev/null +++ b/docs/build/api/schema/objects/recipient.mdx @@ -0,0 +1,80 @@ +--- +id: recipient +title: Recipient +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +[Recipient] represents a Smart Contract call + + +```graphql +type Recipient { + action: String + address: Hex + args: RecipientArgs +} +``` + + + + +### Fields + +#### [Recipient.action](#)[`String`](/build/api/schema/scalars/string) +> +> +> +> + +#### [Recipient.address](#)[`Hex`](/build/api/schema/scalars/hex) +> +> +> +> + +#### [Recipient.args](#)[`RecipientArgs`](/build/api/schema/scalars/recipient-args) +> +> +> +> + + + +### Member of + +[`Data`](/build/api/schema/objects/data) + diff --git a/docs/build/api/schema/objects/shared-secrets.mdx b/docs/build/api/schema/objects/shared-secrets.mdx index 9655602bc..35536cc4a 100644 --- a/docs/build/api/schema/objects/shared-secrets.mdx +++ b/docs/build/api/schema/objects/shared-secrets.mdx @@ -5,18 +5,44 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [SharedSecrets] represents the public shared secret information It includes: - The storage nonce public key: Public Key to encrypt data for the node, so they will be able to decrypt it (mostly for smart contract authorized key) + ```graphql type SharedSecrets { storageNoncePublicKey: PublicKey @@ -24,9 +50,13 @@ type SharedSecrets { ``` + + ### Fields -#### [SharedSecrets.storageNoncePublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [SharedSecrets.storageNoncePublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > @@ -34,7 +64,5 @@ type SharedSecrets { ### Returned by -[`sharedSecrets`](/build/api/schema/queries/shared-secrets) - - +[`sharedSecrets`](/build/api/schema/queries/shared-secrets) diff --git a/docs/build/api/schema/objects/token-balance.mdx b/docs/build/api/schema/objects/token-balance.mdx index 95b94add6..938ede36e 100644 --- a/docs/build/api/schema/objects/token-balance.mdx +++ b/docs/build/api/schema/objects/token-balance.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [tokenBalance] represents a token ledger balance. @@ -19,6 +44,7 @@ It includes: - Amount: amount of token - Token ID: ID of the token + ```graphql type TokenBalance { address: Address @@ -28,17 +54,25 @@ type TokenBalance { ``` + + ### Fields -#### [TokenBalance.address](#)[`Address`](/build/api/schema/scalars/address) +#### [TokenBalance.address](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TokenBalance.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [TokenBalance.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TokenBalance.tokenId](#)[`Int`](/build/api/schema/scalars/int) +#### [TokenBalance.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -46,7 +80,5 @@ type TokenBalance { ### Member of -[`Balance`](/build/api/schema/objects/balance) - - +[`Balance`](/build/api/schema/objects/balance) diff --git a/docs/build/api/schema/objects/token-ledger.mdx b/docs/build/api/schema/objects/token-ledger.mdx index 195a7eff6..58b07f69b 100644 --- a/docs/build/api/schema/objects/token-ledger.mdx +++ b/docs/build/api/schema/objects/token-ledger.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TokenLedger] represents the transfers to perform on the UCO ledger + ```graphql type TokenLedger { transfers: [TokenTransfer] @@ -22,9 +48,13 @@ type TokenLedger { ``` + + ### Fields -#### [TokenLedger.transfers](#)[`[TokenTransfer]`](/build/api/schema/objects/token-transfer) +#### [TokenLedger.transfers](#)[`[TokenTransfer]`](/build/api/schema/objects/token-transfer) +> +> > > @@ -32,7 +62,5 @@ type TokenLedger { ### Member of -[`Ledger`](/build/api/schema/objects/ledger) - - +[`Ledger`](/build/api/schema/objects/ledger) diff --git a/docs/build/api/schema/objects/token-transfer.mdx b/docs/build/api/schema/objects/token-transfer.mdx index b33e47651..08b130e33 100644 --- a/docs/build/api/schema/objects/token-transfer.mdx +++ b/docs/build/api/schema/objects/token-transfer.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TokenTransfer] represents the an asset transfer + ```graphql type TokenTransfer { amount: Int @@ -25,21 +51,31 @@ type TokenTransfer { ``` + + ### Fields -#### [TokenTransfer.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [TokenTransfer.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TokenTransfer.to](#)[`Address`](/build/api/schema/scalars/address) +#### [TokenTransfer.to](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TokenTransfer.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [TokenTransfer.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TokenTransfer.tokenId](#)[`Int`](/build/api/schema/scalars/int) +#### [TokenTransfer.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -47,7 +83,5 @@ type TokenTransfer { ### Member of -[`TokenLedger`](/build/api/schema/objects/token-ledger) - - +[`TokenLedger`](/build/api/schema/objects/token-ledger) diff --git a/docs/build/api/schema/objects/token.mdx b/docs/build/api/schema/objects/token.mdx index ad75444cf..2cc05c6de 100644 --- a/docs/build/api/schema/objects/token.mdx +++ b/docs/build/api/schema/objects/token.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [token] represents a token metadata. @@ -26,6 +51,7 @@ It includes: - ownerships: authorization/delegations containing list of secrets and their authorized public keys to proof the ownership - id: Unique identification of the token on the chain + ```graphql type Token { collection: [TokenProperties] @@ -42,45 +68,67 @@ type Token { ``` + + ### Fields -#### [Token.collection](#)[`[TokenProperties]`](/build/api/schema/scalars/token-properties) +#### [Token.collection](#)[`[TokenProperties]`](/build/api/schema/scalars/token-properties) +> +> > > -#### [Token.decimals](#)[`Int`](/build/api/schema/scalars/int) +#### [Token.decimals](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [Token.genesis](#)[`Address`](/build/api/schema/scalars/address) +#### [Token.genesis](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [Token.id](#)[`String`](/build/api/schema/scalars/string) +#### [Token.id](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Token.name](#)[`String`](/build/api/schema/scalars/string) +#### [Token.name](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Token.ownerships](#)[`[Ownership]`](/build/api/schema/objects/ownership) +#### [Token.ownerships](#)[`[Ownership]`](/build/api/schema/objects/ownership) +> +> > > -#### [Token.properties](#)[`TokenProperties`](/build/api/schema/scalars/token-properties) +#### [Token.properties](#)[`TokenProperties`](/build/api/schema/scalars/token-properties) +> +> > > -#### [Token.supply](#)[`Int`](/build/api/schema/scalars/int) +#### [Token.supply](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [Token.symbol](#)[`String`](/build/api/schema/scalars/string) +#### [Token.symbol](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Token.type](#)[`String`](/build/api/schema/scalars/string) +#### [Token.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > @@ -88,7 +136,5 @@ type Token { ### Returned by -[`token`](/build/api/schema/queries/token) - - +[`token`](/build/api/schema/queries/token) diff --git a/docs/build/api/schema/objects/transaction-attestation.mdx b/docs/build/api/schema/objects/transaction-attestation.mdx index 40cacfa80..cb28f38b6 100644 --- a/docs/build/api/schema/objects/transaction-attestation.mdx +++ b/docs/build/api/schema/objects/transaction-attestation.mdx @@ -5,17 +5,43 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TransactionAttestation] represents an attestation when a transaction is successfully validated and stored. Few attestations can be received with differents confirmations to ensure a better security of the replication. + ```graphql type TransactionAttestation { address: Address @@ -25,17 +51,25 @@ type TransactionAttestation { ``` + + ### Fields -#### [TransactionAttestation.address](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionAttestation.address](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionAttestation.maxConfirmations](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionAttestation.maxConfirmations](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionAttestation.nbConfirmations](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionAttestation.nbConfirmations](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -43,7 +77,5 @@ type TransactionAttestation { ### Returned by -[`transactionConfirmed`](/build/api/schema/subscriptions/transaction-confirmed) - - +[`transactionConfirmed`](/build/api/schema/subscriptions/transaction-confirmed) diff --git a/docs/build/api/schema/objects/transaction-error.mdx b/docs/build/api/schema/objects/transaction-error.mdx index 0652e371f..efb5dc604 100644 --- a/docs/build/api/schema/objects/transaction-error.mdx +++ b/docs/build/api/schema/objects/transaction-error.mdx @@ -5,44 +5,87 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TransactionError] represents an error. + ```graphql type TransactionError { address: Address context: ErrorContext - reason: String + error: ErrorDetails + reason: String @deprecated } ``` + + ### Fields -#### [TransactionError.address](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionError.address](#)[`Address`](/build/api/schema/scalars/address) > > - -#### [TransactionError.context](#)[`ErrorContext`](/build/api/schema/enums/error-context) > > -#### [TransactionError.reason](#)[`String`](/build/api/schema/scalars/string) +#### [TransactionError.context](#)[`ErrorContext`](/build/api/schema/enums/error-context) +> +> > > +#### [TransactionError.error](#)[`ErrorDetails`](/build/api/schema/objects/error-details) +> +> +> +> +#### [TransactionError.reason](#)[`String`](/build/api/schema/scalars/string) +> +> +> :::caution DEPRECATED +> Field error.message will replace reason +> ::: +> +> +> -### Returned by -[`transactionError`](/build/api/schema/subscriptions/transaction-error) +### Returned by +[`transactionError`](/build/api/schema/subscriptions/transaction-error) diff --git a/docs/build/api/schema/objects/transaction-input.mdx b/docs/build/api/schema/objects/transaction-input.mdx index b5dcbe27c..772fb9c77 100644 --- a/docs/build/api/schema/objects/transaction-input.mdx +++ b/docs/build/api/schema/objects/transaction-input.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TransactionInput] represents the inputs from the transaction @@ -23,6 +48,7 @@ It includes: - Timestamp: Date time when the inputs was generated - token id: It is the id for a token which is allocated when the token is minted. + ```graphql type TransactionInput { amount: Int @@ -36,33 +62,49 @@ type TransactionInput { ``` + + ### Fields -#### [TransactionInput.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionInput.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionInput.from](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionInput.from](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionInput.spent](#)[`Boolean`](/build/api/schema/scalars/boolean) +#### [TransactionInput.spent](#)[`Boolean`](/build/api/schema/scalars/boolean) +> +> > > -#### [TransactionInput.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [TransactionInput.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [TransactionInput.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionInput.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionInput.tokenId](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionInput.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionInput.type](#)[`String`](/build/api/schema/scalars/string) +#### [TransactionInput.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > @@ -70,11 +112,9 @@ type TransactionInput { ### Returned by -[`transactionInputs`](/build/api/schema/queries/transaction-inputs) +[`transactionInputs`](/build/api/schema/queries/transaction-inputs) ### Member of -[`Transaction`](/build/api/schema/objects/transaction) - - +[`Transaction`](/build/api/schema/objects/transaction) diff --git a/docs/build/api/schema/objects/transaction-movement.mdx b/docs/build/api/schema/objects/transaction-movement.mdx index 214ee93b7..f8947b53b 100644 --- a/docs/build/api/schema/objects/transaction-movement.mdx +++ b/docs/build/api/schema/objects/transaction-movement.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [TransactionMovement] represents ledger transaction movement @@ -21,6 +46,7 @@ It includes: - token address: address of the token if the type is token - token id: It is the id for a token which is allocated when the token is minted. + ```graphql type TransactionMovement { amount: Int @@ -32,25 +58,37 @@ type TransactionMovement { ``` + + ### Fields -#### [TransactionMovement.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionMovement.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionMovement.to](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionMovement.to](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionMovement.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionMovement.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionMovement.tokenId](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionMovement.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionMovement.type](#)[`String`](/build/api/schema/scalars/string) +#### [TransactionMovement.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > @@ -58,7 +96,5 @@ type TransactionMovement { ### Member of -[`LedgerOperations`](/build/api/schema/objects/ledger-operations) - - +[`LedgerOperations`](/build/api/schema/objects/ledger-operations) diff --git a/docs/build/api/schema/objects/transaction-summary.mdx b/docs/build/api/schema/objects/transaction-summary.mdx index d0d5b085d..3d62dedf3 100644 --- a/docs/build/api/schema/objects/transaction-summary.mdx +++ b/docs/build/api/schema/objects/transaction-summary.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Transaction Summary] Represents transaction header or extract to summarize it + ```graphql type TransactionSummary { address: Address @@ -22,34 +48,48 @@ type TransactionSummary { movementsAddresses: [Address] timestamp: Timestamp type: String - validationStampChecksum: Hash + validationStampChecksum: Sha256Hash } ``` + + ### Fields -#### [TransactionSummary.address](#)[`Address`](/build/api/schema/scalars/address) +#### [TransactionSummary.address](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionSummary.fee](#)[`Int`](/build/api/schema/scalars/int) +#### [TransactionSummary.fee](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [TransactionSummary.movementsAddresses](#)[`[Address]`](/build/api/schema/scalars/address) +#### [TransactionSummary.movementsAddresses](#)[`[Address]`](/build/api/schema/scalars/address) +> +> > > -#### [TransactionSummary.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [TransactionSummary.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [TransactionSummary.type](#)[`String`](/build/api/schema/scalars/string) +#### [TransactionSummary.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [TransactionSummary.validationStampChecksum](#)[`Hash`](/build/api/schema/scalars/hash) +#### [TransactionSummary.validationStampChecksum](#)[`Sha256Hash`](/build/api/schema/scalars/sha-256-hash) +> +> > > @@ -57,7 +97,5 @@ type TransactionSummary { ### Member of -[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) - - +[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) diff --git a/docs/build/api/schema/objects/transaction.mdx b/docs/build/api/schema/objects/transaction.mdx index 1b13ea6c0..071407ba4 100644 --- a/docs/build/api/schema/objects/transaction.mdx +++ b/docs/build/api/schema/objects/transaction.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Transaction] represents a unitary transaction in the Archethic network. + ```graphql type Transaction { address: Address @@ -23,9 +49,9 @@ type Transaction { crossValidationStamps: [CrossValidationStamp] data: Data inputs( - limit: PosInteger - pagingOffset: NonNegInteger -): [TransactionInput] + limit: PosInteger + pagingOffset: NonNegInteger + ): [TransactionInput] originSignature: Hex previousAddress: Address previousPublicKey: PublicKey @@ -37,63 +63,95 @@ type Transaction { ``` + + ### Fields -#### [Transaction.address](#)[`Address`](/build/api/schema/scalars/address) +#### [Transaction.address](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [Transaction.balance](#)[`Balance`](/build/api/schema/objects/balance) +#### [Transaction.balance](#)[`Balance`](/build/api/schema/objects/balance) +> +> > > -#### [Transaction.chainLength](#)[`Int`](/build/api/schema/scalars/int) +#### [Transaction.chainLength](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [Transaction.crossValidationStamps](#)[`[CrossValidationStamp]`](/build/api/schema/objects/cross-validation-stamp) +#### [Transaction.crossValidationStamps](#)[`[CrossValidationStamp]`](/build/api/schema/objects/cross-validation-stamp) +> +> > > -#### [Transaction.data](#)[`Data`](/build/api/schema/objects/data) +#### [Transaction.data](#)[`Data`](/build/api/schema/objects/data) +> +> > > -#### [Transaction.inputs](#)[`[TransactionInput]`](/build/api/schema/objects/transaction-input) +#### [Transaction.inputs](#)[`[TransactionInput]`](/build/api/schema/objects/transaction-input) +> +> +> +> ##### [Transaction.inputs.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> > -> ##### [Transaction.inputs.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) > > -##### [Transaction.inputs.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +##### [Transaction.inputs.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +> +> > > -#### [Transaction.originSignature](#)[`Hex`](/build/api/schema/scalars/hex) +#### [Transaction.originSignature](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > -#### [Transaction.previousAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [Transaction.previousAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [Transaction.previousPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [Transaction.previousPublicKey](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [Transaction.previousSignature](#)[`Hex`](/build/api/schema/scalars/hex) +#### [Transaction.previousSignature](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > -#### [Transaction.type](#)[`String`](/build/api/schema/scalars/string) +#### [Transaction.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Transaction.validationStamp](#)[`ValidationStamp`](/build/api/schema/objects/validation-stamp) +#### [Transaction.validationStamp](#)[`ValidationStamp`](/build/api/schema/objects/validation-stamp) +> +> > > -#### [Transaction.version](#)[`Int`](/build/api/schema/scalars/int) +#### [Transaction.version](#)[`Int`](/build/api/schema/scalars/int) +> +> > > @@ -101,7 +159,5 @@ type Transaction { ### Returned by -[`lastTransaction`](/build/api/schema/queries/last-transaction) [`networkTransactions`](/build/api/schema/queries/network-transactions) [`transaction`](/build/api/schema/queries/transaction) [`transactionChain`](/build/api/schema/queries/transaction-chain) [`transactions`](/build/api/schema/queries/transactions) - - +[`lastTransaction`](/build/api/schema/queries/last-transaction) [`networkTransactions`](/build/api/schema/queries/network-transactions) [`transaction`](/build/api/schema/queries/transaction) [`transactionChain`](/build/api/schema/queries/transaction-chain) [`transactions`](/build/api/schema/queries/transactions) diff --git a/docs/build/api/schema/objects/uco-data.mdx b/docs/build/api/schema/objects/uco-data.mdx index 0502a5ed7..e7e33e907 100644 --- a/docs/build/api/schema/objects/uco-data.mdx +++ b/docs/build/api/schema/objects/uco-data.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + No description + ```graphql type UcoData { eur: Float @@ -23,13 +49,19 @@ type UcoData { ``` + + ### Fields -#### [UcoData.eur](#)[`Float`](/build/api/schema/scalars/float) +#### [UcoData.eur](#)[`Float`](/build/api/schema/scalars/float) +> +> > > -#### [UcoData.usd](#)[`Float`](/build/api/schema/scalars/float) +#### [UcoData.usd](#)[`Float`](/build/api/schema/scalars/float) +> +> > > @@ -37,7 +69,5 @@ type UcoData { ### Member of -[`OracleServices`](/build/api/schema/objects/oracle-services) - - +[`OracleServices`](/build/api/schema/objects/oracle-services) diff --git a/docs/build/api/schema/objects/uco-ledger.mdx b/docs/build/api/schema/objects/uco-ledger.mdx index 595364465..dcf9b29cd 100644 --- a/docs/build/api/schema/objects/uco-ledger.mdx +++ b/docs/build/api/schema/objects/uco-ledger.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [UCOLedger] represents the transfers to perform on the UCO ledger + ```graphql type UcoLedger { transfers: [UcoTransfer] @@ -22,9 +48,13 @@ type UcoLedger { ``` + + ### Fields -#### [UcoLedger.transfers](#)[`[UcoTransfer]`](/build/api/schema/objects/uco-transfer) +#### [UcoLedger.transfers](#)[`[UcoTransfer]`](/build/api/schema/objects/uco-transfer) +> +> > > @@ -32,7 +62,5 @@ type UcoLedger { ### Member of -[`Ledger`](/build/api/schema/objects/ledger) - - +[`Ledger`](/build/api/schema/objects/ledger) diff --git a/docs/build/api/schema/objects/uco-transfer.mdx b/docs/build/api/schema/objects/uco-transfer.mdx index 876365a7e..67a581771 100644 --- a/docs/build/api/schema/objects/uco-transfer.mdx +++ b/docs/build/api/schema/objects/uco-transfer.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [UCOTransfer] represents the an asset transfer + ```graphql type UcoTransfer { amount: Int @@ -23,13 +49,19 @@ type UcoTransfer { ``` + + ### Fields -#### [UcoTransfer.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [UcoTransfer.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [UcoTransfer.to](#)[`Address`](/build/api/schema/scalars/address) +#### [UcoTransfer.to](#)[`Address`](/build/api/schema/scalars/address) +> +> > > @@ -37,7 +69,5 @@ type UcoTransfer { ### Member of -[`UcoLedger`](/build/api/schema/objects/uco-ledger) - - +[`UcoLedger`](/build/api/schema/objects/uco-ledger) diff --git a/docs/build/api/schema/objects/unspent-output.mdx b/docs/build/api/schema/objects/unspent-output.mdx index 66bfe7e05..f22f2ec38 100644 --- a/docs/build/api/schema/objects/unspent-output.mdx +++ b/docs/build/api/schema/objects/unspent-output.mdx @@ -5,72 +5,116 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [UnspentOutput] represents the remaining unspent output of the transaction. It includes: - From: transaction which send the amount of assets - Amount: asset amount -- Type: UCO/token +- Type: UCO / token / state - token address: address of the token if the type is token - token id: It is the id for a token which is allocated when the token is minted. - Timestamp: Date time when the UTXO created/manipulated -- Version: Version of the UTXO data structure +- State: It is the state of a smart contract + ```graphql type UnspentOutput { amount: Int from: Address + state: State timestamp: Timestamp tokenAddress: Address tokenId: Int type: String - version: Int } ``` + + ### Fields -#### [UnspentOutput.amount](#)[`Int`](/build/api/schema/scalars/int) +#### [UnspentOutput.amount](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [UnspentOutput.from](#)[`Address`](/build/api/schema/scalars/address) +#### [UnspentOutput.from](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [UnspentOutput.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [UnspentOutput.state](#)[`State`](/build/api/schema/scalars/state) +> +> > > -#### [UnspentOutput.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [UnspentOutput.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [UnspentOutput.tokenId](#)[`Int`](/build/api/schema/scalars/int) +#### [UnspentOutput.tokenAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > -#### [UnspentOutput.type](#)[`String`](/build/api/schema/scalars/string) +#### [UnspentOutput.tokenId](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [UnspentOutput.version](#)[`Int`](/build/api/schema/scalars/int) +#### [UnspentOutput.type](#)[`String`](/build/api/schema/scalars/string) +> +> > > -### Member of +### Returned by -[`LedgerOperations`](/build/api/schema/objects/ledger-operations) +[`chainUnspentOutputs`](/build/api/schema/queries/chain-unspent-outputs) +### Member of +[`LedgerOperations`](/build/api/schema/objects/ledger-operations) diff --git a/docs/build/api/schema/objects/validation-stamp.mdx b/docs/build/api/schema/objects/validation-stamp.mdx index cb071b00b..bc1d9f5df 100644 --- a/docs/build/api/schema/objects/validation-stamp.mdx +++ b/docs/build/api/schema/objects/validation-stamp.mdx @@ -5,12 +5,37 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [ValidationStamp] represents the validation performs by the coordinator @@ -21,10 +46,11 @@ It includes: - Signature: Coordinator signature of the stamp - Protocol version: Version of the transaction validation protocol + ```graphql type ValidationStamp { ledgerOperations: LedgerOperations - proofOfIntegrity: Hash + proofOfIntegrity: VersionedHash proofOfWork: PublicKey protocolVersion: Int signature: Hex @@ -33,29 +59,43 @@ type ValidationStamp { ``` + + ### Fields -#### [ValidationStamp.ledgerOperations](#)[`LedgerOperations`](/build/api/schema/objects/ledger-operations) +#### [ValidationStamp.ledgerOperations](#)[`LedgerOperations`](/build/api/schema/objects/ledger-operations) +> +> > > -#### [ValidationStamp.proofOfIntegrity](#)[`Hash`](/build/api/schema/scalars/hash) +#### [ValidationStamp.proofOfIntegrity](#)[`VersionedHash`](/build/api/schema/scalars/versioned-hash) +> +> > > -#### [ValidationStamp.proofOfWork](#)[`PublicKey`](/build/api/schema/scalars/public-key) +#### [ValidationStamp.proofOfWork](#)[`PublicKey`](/build/api/schema/scalars/public-key) +> +> > > -#### [ValidationStamp.protocolVersion](#)[`Int`](/build/api/schema/scalars/int) +#### [ValidationStamp.protocolVersion](#)[`Int`](/build/api/schema/scalars/int) +> +> > > -#### [ValidationStamp.signature](#)[`Hex`](/build/api/schema/scalars/hex) +#### [ValidationStamp.signature](#)[`Hex`](/build/api/schema/scalars/hex) +> +> > > -#### [ValidationStamp.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [ValidationStamp.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > @@ -63,7 +103,5 @@ type ValidationStamp { ### Member of -[`Transaction`](/build/api/schema/objects/transaction) - - +[`Transaction`](/build/api/schema/objects/transaction) diff --git a/docs/build/api/schema/objects/version.mdx b/docs/build/api/schema/objects/version.mdx index 876477fd7..337314d7b 100644 --- a/docs/build/api/schema/objects/version.mdx +++ b/docs/build/api/schema/objects/version.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [Version] represents code, transaction and protocol version + ```graphql type Version { code: String @@ -24,17 +50,25 @@ type Version { ``` + + ### Fields -#### [Version.code](#)[`String`](/build/api/schema/scalars/string) +#### [Version.code](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Version.protocol](#)[`String`](/build/api/schema/scalars/string) +#### [Version.protocol](#)[`String`](/build/api/schema/scalars/string) +> +> > > -#### [Version.transaction](#)[`String`](/build/api/schema/scalars/string) +#### [Version.transaction](#)[`String`](/build/api/schema/scalars/string) +> +> > > @@ -42,7 +76,5 @@ type Version { ### Returned by -[`version`](/build/api/schema/queries/version) - - +[`version`](/build/api/schema/queries/version) diff --git a/docs/build/api/schema/queries/balance.mdx b/docs/build/api/schema/queries/balance.mdx index b6b26f7c3..738aef2df 100644 --- a/docs/build/api/schema/queries/balance.mdx +++ b/docs/build/api/schema/queries/balance.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find a balance from an address coming from the latest transaction on the chain + ```graphql balance( address: Address! @@ -22,22 +48,26 @@ balance( ``` + + ### Arguments -#### [balance.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [balance.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Balance`](/build/api/schema/objects/balance) +#### [`Balance`](/build/api/schema/objects/balance) +> +> > [Balance] represents a ledger balance. -It includes: -- UCO: uco balance -- token: token balances +> It includes: +> - UCO: uco balance +> - token: token balances > - - diff --git a/docs/build/api/schema/queries/beacon-chain-summary.mdx b/docs/build/api/schema/queries/beacon-chain-summary.mdx index bf7e1101f..cd9607545 100644 --- a/docs/build/api/schema/queries/beacon-chain-summary.mdx +++ b/docs/build/api/schema/queries/beacon-chain-summary.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to get the value of the summary of beacon chain at a specific time or the last value + ```graphql beaconChainSummary( timestamp: Timestamp @@ -22,19 +48,23 @@ beaconChainSummary( ``` + + ### Arguments -#### [beaconChainSummary.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [beaconChainSummary.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > ### Type -#### [`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) +#### [`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) +> +> > [Beacon Chain Summary] represents the beacon chain aggregate for a certain date > - - diff --git a/docs/build/api/schema/queries/chain-unspent-outputs.mdx b/docs/build/api/schema/queries/chain-unspent-outputs.mdx new file mode 100644 index 000000000..de21ff8ab --- /dev/null +++ b/docs/build/api/schema/queries/chain-unspent-outputs.mdx @@ -0,0 +1,93 @@ +--- +id: chain-unspent-outputs +title: chainUnspentOutputs +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +Query the network to retrieve the unspent output of a chain +(address should be the genesis address of the chain) + + +```graphql +chainUnspentOutputs( + address: Address! + limit: PosInteger + pagingOffset: Sha256Hash +): [UnspentOutput] +``` + + + + +### Arguments + +#### [chainUnspentOutputs.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> +> +> + +#### [chainUnspentOutputs.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> +> +> +> + +#### [chainUnspentOutputs.pagingOffset](#)[`Sha256Hash`](/build/api/schema/scalars/sha-256-hash) +> +> +> +> + +### Type + +#### [`UnspentOutput`](/build/api/schema/objects/unspent-output) +> +> +> [UnspentOutput] represents the remaining unspent output of the transaction. +> It includes: +> - From: transaction which send the amount of assets +> - Amount: asset amount +> - Type: UCO / token / state +> - token address: address of the token if the type is token +> - token id: It is the id for a token which is allocated when the token is minted. +> - Timestamp: Date time when the UTXO created/manipulated +> - State: It is the state of a smart contract +> + + + diff --git a/docs/build/api/schema/queries/genesis-address.mdx b/docs/build/api/schema/queries/genesis-address.mdx index 405328ed5..0b0886a7a 100644 --- a/docs/build/api/schema/queries/genesis-address.mdx +++ b/docs/build/api/schema/queries/genesis-address.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find the genesis address of a transaction + ```graphql genesisAddress( address: Address! @@ -22,21 +48,25 @@ genesisAddress( ``` + + ### Arguments -#### [genesisAddress.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [genesisAddress.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Address`](/build/api/schema/scalars/address) +#### [`Address`](/build/api/schema/scalars/address) +> +> > The [Address] scalar type represents a transaction's address. -The Address appears in a JSON response as Base16 formatted string. The parsed address will -be converted to a binary and any invalid address with an invalid algorithm or invalid size will be rejected +> The Address appears in a JSON response as Base16 formatted string. The parsed address will +> be converted to a binary and any invalid address with an invalid algorithm or invalid size will be rejected > - - diff --git a/docs/build/api/schema/queries/last-transaction.mdx b/docs/build/api/schema/queries/last-transaction.mdx index 6ae6d14ce..281e045b2 100644 --- a/docs/build/api/schema/queries/last-transaction.mdx +++ b/docs/build/api/schema/queries/last-transaction.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find the last transaction from an address + ```graphql lastTransaction( address: Address! @@ -22,19 +48,23 @@ lastTransaction( ``` + + ### Arguments -#### [lastTransaction.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [lastTransaction.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Transaction`](/build/api/schema/objects/transaction) +#### [`Transaction`](/build/api/schema/objects/transaction) +> +> > [Transaction] represents a unitary transaction in the Archethic network. > - - diff --git a/docs/build/api/schema/queries/nearest-endpoints.mdx b/docs/build/api/schema/queries/nearest-endpoints.mdx index d6ca9432a..d5cd9494d 100644 --- a/docs/build/api/schema/queries/nearest-endpoints.mdx +++ b/docs/build/api/schema/queries/nearest-endpoints.mdx @@ -5,28 +5,56 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + List the nearest endpoints nodes from the client's IP + ```graphql nearestEndpoints: [Endpoint] ``` + + ### Type -#### [`Endpoint`](/build/api/schema/objects/endpoint) +#### [`Endpoint`](/build/api/schema/objects/endpoint) +> +> > [Endpoint] represents a network node's endpoint > - - diff --git a/docs/build/api/schema/queries/network-transactions.mdx b/docs/build/api/schema/queries/network-transactions.mdx index ad97b6017..b6678c753 100644 --- a/docs/build/api/schema/queries/network-transactions.mdx +++ b/docs/build/api/schema/queries/network-transactions.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to list the transaction on the type + ```graphql networkTransactions( page: PosInteger @@ -23,23 +49,29 @@ networkTransactions( ``` + + ### Arguments -#### [networkTransactions.page](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +#### [networkTransactions.page](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> +> > > -#### [networkTransactions.type](#)[`TransactionType!`](/build/api/schema/scalars/transaction-type) +#### [networkTransactions.type](#)[`TransactionType!`](/build/api/schema/scalars/transaction-type) +> +> > > ### Type -#### [`Transaction`](/build/api/schema/objects/transaction) +#### [`Transaction`](/build/api/schema/objects/transaction) +> +> > [Transaction] represents a unitary transaction in the Archethic network. > - - diff --git a/docs/build/api/schema/queries/nodes.mdx b/docs/build/api/schema/queries/nodes.mdx index 70a535e74..4068fb767 100644 --- a/docs/build/api/schema/queries/nodes.mdx +++ b/docs/build/api/schema/queries/nodes.mdx @@ -5,28 +5,56 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + List all the nodes registered in the network + ```graphql nodes: [Node] ``` + + ### Type -#### [`Node`](/build/api/schema/objects/node) +#### [`Node`](/build/api/schema/objects/node) +> +> > [Node] represents a node in the network > - - diff --git a/docs/build/api/schema/queries/oracle-data.mdx b/docs/build/api/schema/queries/oracle-data.mdx index 05a45cbd6..76758492c 100644 --- a/docs/build/api/schema/queries/oracle-data.mdx +++ b/docs/build/api/schema/queries/oracle-data.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to get the value of an oracle at a specific time or the last value + ```graphql oracleData( timestamp: Timestamp @@ -22,19 +48,23 @@ oracleData( ``` + + ### Arguments -#### [oracleData.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +#### [oracleData.timestamp](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > ### Type -#### [`OracleData`](/build/api/schema/objects/oracle-data) +#### [`OracleData`](/build/api/schema/objects/oracle-data) +> +> > [OracleData] represents an oracle data. > - - diff --git a/docs/build/api/schema/queries/shared-secrets.mdx b/docs/build/api/schema/queries/shared-secrets.mdx index 2e7d27b6f..3fde00f08 100644 --- a/docs/build/api/schema/queries/shared-secrets.mdx +++ b/docs/build/api/schema/queries/shared-secrets.mdx @@ -5,30 +5,58 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to get the storage nonce public key + ```graphql sharedSecrets: SharedSecrets ``` + + ### Type -#### [`SharedSecrets`](/build/api/schema/objects/shared-secrets) +#### [`SharedSecrets`](/build/api/schema/objects/shared-secrets) +> +> > [SharedSecrets] represents the public shared secret information -It includes: -- The storage nonce public key: Public Key to encrypt data for the node, so they will be able to decrypt it (mostly for smart contract authorized key) +> It includes: +> - The storage nonce public key: Public Key to encrypt data for the node, so they will be able to decrypt it (mostly for smart contract authorized key) > - - diff --git a/docs/build/api/schema/queries/token.mdx b/docs/build/api/schema/queries/token.mdx index ef6573144..f071284cc 100644 --- a/docs/build/api/schema/queries/token.mdx +++ b/docs/build/api/schema/queries/token.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find a token's data + ```graphql token( address: Address! @@ -22,30 +48,34 @@ token( ``` + + ### Arguments -#### [token.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [token.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Token`](/build/api/schema/objects/token) +#### [`Token`](/build/api/schema/objects/token) +> +> > [token] represents a token metadata. -It includes: -- genesis: Genesis address to the token -- name: Name of the token -- symbol: Symbol of the token -- supply: Supply of the token -- type: Type of the token -- decimals: Number of decimals of the token -- properties: Properties of the token (if any) -- collection: List of properties for a collection (if any) -- ownerships: authorization/delegations containing list of secrets and their authorized public keys to proof the ownership -- id: Unique identification of the token on the chain +> It includes: +> - genesis: Genesis address to the token +> - name: Name of the token +> - symbol: Symbol of the token +> - supply: Supply of the token +> - type: Type of the token +> - decimals: Number of decimals of the token +> - properties: Properties of the token (if any) +> - collection: List of properties for a collection (if any) +> - ownerships: authorization/delegations containing list of secrets and their authorized public keys to proof the ownership +> - id: Unique identification of the token on the chain > - - diff --git a/docs/build/api/schema/queries/transaction-chain.mdx b/docs/build/api/schema/queries/transaction-chain.mdx index bd01a1b9c..28e76b3dd 100644 --- a/docs/build/api/schema/queries/transaction-chain.mdx +++ b/docs/build/api/schema/queries/transaction-chain.mdx @@ -5,46 +5,87 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find a transaction chain + ```graphql transactionChain( address: Address! + from: Timestamp order: SortOrder pagingAddress: Address ): [Transaction] ``` + + ### Arguments -#### [transactionChain.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [transactionChain.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > -#### [transactionChain.order](#)[`SortOrder`](/build/api/schema/enums/sort-order) +#### [transactionChain.from](#)[`Timestamp`](/build/api/schema/scalars/timestamp) +> +> > > -#### [transactionChain.pagingAddress](#)[`Address`](/build/api/schema/scalars/address) +#### [transactionChain.order](#)[`SortOrder`](/build/api/schema/enums/sort-order) +> +> +> +> + +#### [transactionChain.pagingAddress](#)[`Address`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Transaction`](/build/api/schema/objects/transaction) +#### [`Transaction`](/build/api/schema/objects/transaction) +> +> > [Transaction] represents a unitary transaction in the Archethic network. > - - diff --git a/docs/build/api/schema/queries/transaction-inputs.mdx b/docs/build/api/schema/queries/transaction-inputs.mdx index 92bfca4bc..412b41fae 100644 --- a/docs/build/api/schema/queries/transaction-inputs.mdx +++ b/docs/build/api/schema/queries/transaction-inputs.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to list the transaction inputs from an address + ```graphql transactionInputs( address: Address! @@ -24,35 +50,43 @@ transactionInputs( ``` + + ### Arguments -#### [transactionInputs.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [transactionInputs.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > -#### [transactionInputs.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +#### [transactionInputs.limit](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> +> > > -#### [transactionInputs.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +#### [transactionInputs.pagingOffset](#)[`NonNegInteger`](/build/api/schema/scalars/non-neg-integer) +> +> > > ### Type -#### [`TransactionInput`](/build/api/schema/objects/transaction-input) +#### [`TransactionInput`](/build/api/schema/objects/transaction-input) +> +> > [TransactionInput] represents the inputs from the transaction -It includes: -- From: transaction which send the amount of assets -- Amount: asset amount -- Type: UCO/token/Call -- token address: address of the token if the type is token -- Spent: determines if the input has been spent -- Timestamp: Date time when the inputs was generated -- token id: It is the id for a token which is allocated when the token is minted. +> It includes: +> - From: transaction which send the amount of assets +> - Amount: asset amount +> - Type: UCO/token/Call +> - token address: address of the token if the type is token +> - Spent: determines if the input has been spent +> - Timestamp: Date time when the inputs was generated +> - token id: It is the id for a token which is allocated when the token is minted. > - - diff --git a/docs/build/api/schema/queries/transaction.mdx b/docs/build/api/schema/queries/transaction.mdx index adae7fec1..7d31dd790 100644 --- a/docs/build/api/schema/queries/transaction.mdx +++ b/docs/build/api/schema/queries/transaction.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find a transaction + ```graphql transaction( address: Address! @@ -22,19 +48,23 @@ transaction( ``` + + ### Arguments -#### [transaction.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [transaction.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`Transaction`](/build/api/schema/objects/transaction) +#### [`Transaction`](/build/api/schema/objects/transaction) +> +> > [Transaction] represents a unitary transaction in the Archethic network. > - - diff --git a/docs/build/api/schema/queries/transactions.mdx b/docs/build/api/schema/queries/transactions.mdx index 26f50d998..32eebd436 100644 --- a/docs/build/api/schema/queries/transactions.mdx +++ b/docs/build/api/schema/queries/transactions.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Query the network to find all the transactions locally stored + ```graphql transactions( page: PosInteger @@ -22,19 +48,23 @@ transactions( ``` + + ### Arguments -#### [transactions.page](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +#### [transactions.page](#)[`PosInteger`](/build/api/schema/scalars/pos-integer) +> +> > > ### Type -#### [`Transaction`](/build/api/schema/objects/transaction) +#### [`Transaction`](/build/api/schema/objects/transaction) +> +> > [Transaction] represents a unitary transaction in the Archethic network. > - - diff --git a/docs/build/api/schema/queries/version.mdx b/docs/build/api/schema/queries/version.mdx index 9d986211d..52fcc88c1 100644 --- a/docs/build/api/schema/queries/version.mdx +++ b/docs/build/api/schema/queries/version.mdx @@ -5,28 +5,56 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + List protocol, transaction and code versions + ```graphql version: Version ``` + + ### Type -#### [`Version`](/build/api/schema/objects/version) +#### [`Version`](/build/api/schema/objects/version) +> +> > [Version] represents code, transaction and protocol version > - - diff --git a/docs/build/api/schema/scalars/address.mdx b/docs/build/api/schema/scalars/address.mdx index 66ea25444..7510cbbd1 100644 --- a/docs/build/api/schema/scalars/address.mdx +++ b/docs/build/api/schema/scalars/address.mdx @@ -5,18 +5,44 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Address] scalar type represents a transaction's address. The Address appears in a JSON response as Base16 formatted string. The parsed address will be converted to a binary and any invalid address with an invalid algorithm or invalid size will be rejected + ```graphql scalar Address ``` @@ -24,13 +50,13 @@ scalar Address -### Returned by -[`genesisAddress`](/build/api/schema/queries/genesis-address) -### Member of +### Returned by -[`balance`](/build/api/schema/queries/balance) [`Data`](/build/api/schema/objects/data) [`genesisAddress`](/build/api/schema/queries/genesis-address) [`lastTransaction`](/build/api/schema/queries/last-transaction) [`Node`](/build/api/schema/objects/node) [`Token`](/build/api/schema/objects/token) [`token`](/build/api/schema/queries/token) [`TokenBalance`](/build/api/schema/objects/token-balance) [`TokenTransfer`](/build/api/schema/objects/token-transfer) [`Transaction`](/build/api/schema/objects/transaction) [`transaction`](/build/api/schema/queries/transaction) [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) [`transactionChain`](/build/api/schema/queries/transaction-chain) [`transactionConfirmed`](/build/api/schema/subscriptions/transaction-confirmed) [`TransactionError`](/build/api/schema/objects/transaction-error) [`transactionError`](/build/api/schema/subscriptions/transaction-error) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`transactionInputs`](/build/api/schema/queries/transaction-inputs) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UcoTransfer`](/build/api/schema/objects/uco-transfer) [`UnspentOutput`](/build/api/schema/objects/unspent-output) +[`genesisAddress`](/build/api/schema/queries/genesis-address) +### Member of +[`balance`](/build/api/schema/queries/balance) [`chainUnspentOutputs`](/build/api/schema/queries/chain-unspent-outputs) [`ConsumedInputs`](/build/api/schema/objects/consumed-inputs) [`Data`](/build/api/schema/objects/data) [`genesisAddress`](/build/api/schema/queries/genesis-address) [`lastTransaction`](/build/api/schema/queries/last-transaction) [`Node`](/build/api/schema/objects/node) [`Token`](/build/api/schema/objects/token) [`token`](/build/api/schema/queries/token) [`TokenBalance`](/build/api/schema/objects/token-balance) [`TokenTransfer`](/build/api/schema/objects/token-transfer) [`Transaction`](/build/api/schema/objects/transaction) [`transaction`](/build/api/schema/queries/transaction) [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) [`transactionChain`](/build/api/schema/queries/transaction-chain) [`transactionConfirmed`](/build/api/schema/subscriptions/transaction-confirmed) [`TransactionError`](/build/api/schema/objects/transaction-error) [`transactionError`](/build/api/schema/subscriptions/transaction-error) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`transactionInputs`](/build/api/schema/queries/transaction-inputs) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UcoTransfer`](/build/api/schema/objects/uco-transfer) [`UnspentOutput`](/build/api/schema/objects/unspent-output) diff --git a/docs/build/api/schema/scalars/boolean.mdx b/docs/build/api/schema/scalars/boolean.mdx index 81c0cd212..8a7f7aa68 100644 --- a/docs/build/api/schema/scalars/boolean.mdx +++ b/docs/build/api/schema/scalars/boolean.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The `Boolean` scalar type represents `true` or `false`. + ```graphql scalar Boolean ``` @@ -22,9 +48,9 @@ scalar Boolean -### Member of -[`include`](/build/api/schema/directives/include) [`Node`](/build/api/schema/objects/node) [`skip`](/build/api/schema/directives/skip) [`TransactionInput`](/build/api/schema/objects/transaction-input) +### Member of +[`include`](/build/api/schema/directives/include) [`Node`](/build/api/schema/objects/node) [`skip`](/build/api/schema/directives/skip) [`TransactionInput`](/build/api/schema/objects/transaction-input) diff --git a/docs/build/api/schema/scalars/content.mdx b/docs/build/api/schema/scalars/content.mdx index f718323d1..2bb8c6017 100644 --- a/docs/build/api/schema/scalars/content.mdx +++ b/docs/build/api/schema/scalars/content.mdx @@ -5,17 +5,43 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Content] scalar type represents transaction content. Depending if the content can displayed it will be rendered as plain text otherwise in hexadecimal + ```graphql scalar Content ``` @@ -23,9 +49,9 @@ scalar Content -### Member of -[`Data`](/build/api/schema/objects/data) +### Member of +[`Data`](/build/api/schema/objects/data) diff --git a/docs/build/api/schema/scalars/error-data.mdx b/docs/build/api/schema/scalars/error-data.mdx new file mode 100644 index 000000000..c224ee497 --- /dev/null +++ b/docs/build/api/schema/scalars/error-data.mdx @@ -0,0 +1,57 @@ +--- +id: error-data +title: ErrorData +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +Date returned with the error. +It could be any type (string, map, list, number or null) + + +```graphql +scalar ErrorData +``` + + + + + + +### Member of + +[`ErrorDetails`](/build/api/schema/objects/error-details) + diff --git a/docs/build/api/schema/scalars/float.mdx b/docs/build/api/schema/scalars/float.mdx index ba7f02969..4b4b606b1 100644 --- a/docs/build/api/schema/scalars/float.mdx +++ b/docs/build/api/schema/scalars/float.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). + ```graphql scalar Float ``` @@ -22,9 +48,9 @@ scalar Float -### Member of -[`Node`](/build/api/schema/objects/node) [`UcoData`](/build/api/schema/objects/uco-data) +### Member of +[`Node`](/build/api/schema/objects/node) [`UcoData`](/build/api/schema/objects/uco-data) diff --git a/docs/build/api/schema/scalars/hex.mdx b/docs/build/api/schema/scalars/hex.mdx index c3028d4b1..b8c46959b 100644 --- a/docs/build/api/schema/scalars/hex.mdx +++ b/docs/build/api/schema/scalars/hex.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Hex] scalar type represents an hexadecimal + ```graphql scalar Hex ``` @@ -22,9 +48,9 @@ scalar Hex -### Member of -[`AuthorizedKey`](/build/api/schema/objects/authorized-key) [`CrossValidationStamp`](/build/api/schema/objects/cross-validation-stamp) [`Ownership`](/build/api/schema/objects/ownership) [`Transaction`](/build/api/schema/objects/transaction) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) +### Member of +[`AuthorizedKey`](/build/api/schema/objects/authorized-key) [`CrossValidationStamp`](/build/api/schema/objects/cross-validation-stamp) [`Ownership`](/build/api/schema/objects/ownership) [`Recipient`](/build/api/schema/objects/recipient) [`Transaction`](/build/api/schema/objects/transaction) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) diff --git a/docs/build/api/schema/scalars/int.mdx b/docs/build/api/schema/scalars/int.mdx index 1c51dbbe7..2af56953e 100644 --- a/docs/build/api/schema/scalars/int.mdx +++ b/docs/build/api/schema/scalars/int.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. + ```graphql scalar Int ``` @@ -22,9 +48,9 @@ scalar Int -### Member of -[`Balance`](/build/api/schema/objects/balance) [`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) [`Endpoint`](/build/api/schema/objects/endpoint) [`LedgerOperations`](/build/api/schema/objects/ledger-operations) [`Node`](/build/api/schema/objects/node) [`Token`](/build/api/schema/objects/token) [`TokenBalance`](/build/api/schema/objects/token-balance) [`TokenTransfer`](/build/api/schema/objects/token-transfer) [`Transaction`](/build/api/schema/objects/transaction) [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UcoTransfer`](/build/api/schema/objects/uco-transfer) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) +### Member of +[`Balance`](/build/api/schema/objects/balance) [`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) [`ConsumedInputs`](/build/api/schema/objects/consumed-inputs) [`Endpoint`](/build/api/schema/objects/endpoint) [`ErrorDetails`](/build/api/schema/objects/error-details) [`LedgerOperations`](/build/api/schema/objects/ledger-operations) [`Node`](/build/api/schema/objects/node) [`Token`](/build/api/schema/objects/token) [`TokenBalance`](/build/api/schema/objects/token-balance) [`TokenTransfer`](/build/api/schema/objects/token-transfer) [`Transaction`](/build/api/schema/objects/transaction) [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UcoTransfer`](/build/api/schema/objects/uco-transfer) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) diff --git a/docs/build/api/schema/scalars/non-neg-integer.mdx b/docs/build/api/schema/scalars/non-neg-integer.mdx index c5bdd787b..15e3ff2f1 100644 --- a/docs/build/api/schema/scalars/non-neg-integer.mdx +++ b/docs/build/api/schema/scalars/non-neg-integer.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Non Negative Integer] scalar type represents a non negative number + ```graphql scalar NonNegInteger ``` @@ -22,9 +48,9 @@ scalar NonNegInteger -### Member of -[`transactionInputs`](/build/api/schema/queries/transaction-inputs) +### Member of +[`transactionInputs`](/build/api/schema/queries/transaction-inputs) diff --git a/docs/build/api/schema/scalars/p2-p-availabilities.mdx b/docs/build/api/schema/scalars/p2-p-availabilities.mdx index 7ca53003a..0418ddc72 100644 --- a/docs/build/api/schema/scalars/p2-p-availabilities.mdx +++ b/docs/build/api/schema/scalars/p2-p-availabilities.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + No description + ```graphql scalar P2pAvailabilities ``` @@ -22,9 +48,9 @@ scalar P2pAvailabilities -### Member of -[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) +### Member of +[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) diff --git a/docs/build/api/schema/scalars/pos-integer.mdx b/docs/build/api/schema/scalars/pos-integer.mdx index 146c59f98..6dbbd6f95 100644 --- a/docs/build/api/schema/scalars/pos-integer.mdx +++ b/docs/build/api/schema/scalars/pos-integer.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Positive Integer] scalar type represents a positive number + ```graphql scalar PosInteger ``` @@ -22,9 +48,9 @@ scalar PosInteger -### Member of -[`networkTransactions`](/build/api/schema/queries/network-transactions) [`transactionInputs`](/build/api/schema/queries/transaction-inputs) [`transactions`](/build/api/schema/queries/transactions) +### Member of +[`chainUnspentOutputs`](/build/api/schema/queries/chain-unspent-outputs) [`networkTransactions`](/build/api/schema/queries/network-transactions) [`transactionInputs`](/build/api/schema/queries/transaction-inputs) [`transactions`](/build/api/schema/queries/transactions) diff --git a/docs/build/api/schema/scalars/public-key.mdx b/docs/build/api/schema/scalars/public-key.mdx index a168e22df..da0421c13 100644 --- a/docs/build/api/schema/scalars/public-key.mdx +++ b/docs/build/api/schema/scalars/public-key.mdx @@ -5,18 +5,44 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [PublicKey] scalar type represents a public key. The PublicKey appears in a JSON response as Base16 formatted string. The parsed public key will be converted to a binary and any invalid address with an invalid algorithm or invalid size will be rejected + ```graphql scalar PublicKey ``` @@ -24,9 +50,9 @@ scalar PublicKey -### Member of -[`AuthorizedKey`](/build/api/schema/objects/authorized-key) [`CrossValidationStamp`](/build/api/schema/objects/cross-validation-stamp) [`Node`](/build/api/schema/objects/node) [`SharedSecrets`](/build/api/schema/objects/shared-secrets) [`Transaction`](/build/api/schema/objects/transaction) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) +### Member of +[`AuthorizedKey`](/build/api/schema/objects/authorized-key) [`CrossValidationStamp`](/build/api/schema/objects/cross-validation-stamp) [`Node`](/build/api/schema/objects/node) [`SharedSecrets`](/build/api/schema/objects/shared-secrets) [`Transaction`](/build/api/schema/objects/transaction) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) diff --git a/docs/build/api/schema/scalars/recipient-args.mdx b/docs/build/api/schema/scalars/recipient-args.mdx new file mode 100644 index 000000000..6d342f6e4 --- /dev/null +++ b/docs/build/api/schema/scalars/recipient-args.mdx @@ -0,0 +1,56 @@ +--- +id: recipient-args +title: RecipientArgs +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +[Recipient Args] represents the args of a named action call + + +```graphql +scalar RecipientArgs +``` + + + + + + +### Member of + +[`Recipient`](/build/api/schema/objects/recipient) + diff --git a/docs/build/api/schema/scalars/sha-256-hash.mdx b/docs/build/api/schema/scalars/sha-256-hash.mdx new file mode 100644 index 000000000..dd0026033 --- /dev/null +++ b/docs/build/api/schema/scalars/sha-256-hash.mdx @@ -0,0 +1,56 @@ +--- +id: sha-256-hash +title: Sha256Hash +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +No description + + +```graphql +scalar Sha256Hash +``` + + + + + + +### Member of + +[`chainUnspentOutputs`](/build/api/schema/queries/chain-unspent-outputs) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) + diff --git a/docs/build/api/schema/scalars/state.mdx b/docs/build/api/schema/scalars/state.mdx new file mode 100644 index 000000000..fc22f612a --- /dev/null +++ b/docs/build/api/schema/scalars/state.mdx @@ -0,0 +1,56 @@ +--- +id: state +title: State +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +[State] represents the smart contract state + + +```graphql +scalar State +``` + + + + + + +### Member of + +[`ConsumedInputs`](/build/api/schema/objects/consumed-inputs) [`UnspentOutput`](/build/api/schema/objects/unspent-output) + diff --git a/docs/build/api/schema/scalars/string.mdx b/docs/build/api/schema/scalars/string.mdx index 8d3d7b4f1..97c53ea7a 100644 --- a/docs/build/api/schema/scalars/string.mdx +++ b/docs/build/api/schema/scalars/string.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. + ```graphql scalar String ``` @@ -22,9 +48,9 @@ scalar String -### Member of -[`Data`](/build/api/schema/objects/data) [`Endpoint`](/build/api/schema/objects/endpoint) [`Node`](/build/api/schema/objects/node) [`Token`](/build/api/schema/objects/token) [`Transaction`](/build/api/schema/objects/transaction) [`TransactionError`](/build/api/schema/objects/transaction-error) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`Version`](/build/api/schema/objects/version) +### Member of +[`ConsumedInputs`](/build/api/schema/objects/consumed-inputs) [`Data`](/build/api/schema/objects/data) [`Endpoint`](/build/api/schema/objects/endpoint) [`ErrorDetails`](/build/api/schema/objects/error-details) [`Node`](/build/api/schema/objects/node) [`Recipient`](/build/api/schema/objects/recipient) [`Token`](/build/api/schema/objects/token) [`Transaction`](/build/api/schema/objects/transaction) [`TransactionError`](/build/api/schema/objects/transaction-error) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionMovement`](/build/api/schema/objects/transaction-movement) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`Version`](/build/api/schema/objects/version) diff --git a/docs/build/api/schema/scalars/timestamp.mdx b/docs/build/api/schema/scalars/timestamp.mdx index 35a3cf536..1b98c1fab 100644 --- a/docs/build/api/schema/scalars/timestamp.mdx +++ b/docs/build/api/schema/scalars/timestamp.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [Timestamp] scalar type represents a UNIX timestamp in seconds + ```graphql scalar Timestamp ``` @@ -22,9 +48,9 @@ scalar Timestamp -### Member of -[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) [`beaconChainSummary`](/build/api/schema/queries/beacon-chain-summary) [`Node`](/build/api/schema/objects/node) [`OracleData`](/build/api/schema/objects/oracle-data) [`oracleData`](/build/api/schema/queries/oracle-data) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) +### Member of +[`BeaconChainSummary`](/build/api/schema/objects/beacon-chain-summary) [`beaconChainSummary`](/build/api/schema/queries/beacon-chain-summary) [`ConsumedInputs`](/build/api/schema/objects/consumed-inputs) [`Node`](/build/api/schema/objects/node) [`OracleData`](/build/api/schema/objects/oracle-data) [`oracleData`](/build/api/schema/queries/oracle-data) [`transactionChain`](/build/api/schema/queries/transaction-chain) [`TransactionInput`](/build/api/schema/objects/transaction-input) [`TransactionSummary`](/build/api/schema/objects/transaction-summary) [`UnspentOutput`](/build/api/schema/objects/unspent-output) [`ValidationStamp`](/build/api/schema/objects/validation-stamp) diff --git a/docs/build/api/schema/scalars/token-properties.mdx b/docs/build/api/schema/scalars/token-properties.mdx index 197d3c92c..08dabad02 100644 --- a/docs/build/api/schema/scalars/token-properties.mdx +++ b/docs/build/api/schema/scalars/token-properties.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + [tokenProperties] represents a token's properties + ```graphql scalar TokenProperties ``` @@ -22,9 +48,9 @@ scalar TokenProperties -### Member of -[`Token`](/build/api/schema/objects/token) +### Member of +[`Token`](/build/api/schema/objects/token) diff --git a/docs/build/api/schema/scalars/transaction-type.mdx b/docs/build/api/schema/scalars/transaction-type.mdx index 6b3d829d1..dcf04f2aa 100644 --- a/docs/build/api/schema/scalars/transaction-type.mdx +++ b/docs/build/api/schema/scalars/transaction-type.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + The [TransactionType] scalar type represents a transaction type + ```graphql scalar TransactionType ``` @@ -22,9 +48,9 @@ scalar TransactionType -### Member of -[`networkTransactions`](/build/api/schema/queries/network-transactions) +### Member of +[`networkTransactions`](/build/api/schema/queries/network-transactions) diff --git a/docs/build/api/schema/scalars/versioned-hash.mdx b/docs/build/api/schema/scalars/versioned-hash.mdx new file mode 100644 index 000000000..4b5987d23 --- /dev/null +++ b/docs/build/api/schema/scalars/versioned-hash.mdx @@ -0,0 +1,59 @@ +--- +id: versioned-hash +title: VersionedHash +hide_table_of_contents: false +--- + + +export const Bullet = () => <> ●  + +export const SpecifiedBy = (props) => <>Specification + +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + + + +The [Hash] scalar type represents a cryptographic hash used in +the Archethic network with an identification byte to specify from which algorithm the hash was generated. +The Hash appears in a JSON response as Base16 formatted string. The parsed hash will +be converted to a binary and any invalid hash with an invalid algorithm or invalid size will be rejected + + +```graphql +scalar VersionedHash +``` + + + + + + +### Member of + +[`ValidationStamp`](/build/api/schema/objects/validation-stamp) + diff --git a/docs/build/api/schema/subscriptions/oracle-update.mdx b/docs/build/api/schema/subscriptions/oracle-update.mdx index dbc40d6b6..506dd51fe 100644 --- a/docs/build/api/schema/subscriptions/oracle-update.mdx +++ b/docs/build/api/schema/subscriptions/oracle-update.mdx @@ -5,28 +5,56 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Subscribe to be notified when a new oracle data is stored + ```graphql oracleUpdate: OracleData ``` + + ### Type -#### [`OracleData`](/build/api/schema/objects/oracle-data) +#### [`OracleData`](/build/api/schema/objects/oracle-data) +> +> > [OracleData] represents an oracle data. > - - diff --git a/docs/build/api/schema/subscriptions/transaction-confirmed.mdx b/docs/build/api/schema/subscriptions/transaction-confirmed.mdx index 44b8419dd..aaf89176e 100644 --- a/docs/build/api/schema/subscriptions/transaction-confirmed.mdx +++ b/docs/build/api/schema/subscriptions/transaction-confirmed.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Subscribe to be notified when a transaction is stored (if acted as welcome node) + ```graphql transactionConfirmed( address: Address! @@ -22,20 +48,24 @@ transactionConfirmed( ``` + + ### Arguments -#### [transactionConfirmed.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [transactionConfirmed.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) +#### [`TransactionAttestation`](/build/api/schema/objects/transaction-attestation) +> +> > [TransactionAttestation] represents an attestation when a transaction is successfully validated and stored. -Few attestations can be received with differents confirmations to ensure a better security of the replication. +> Few attestations can be received with differents confirmations to ensure a better security of the replication. > - - diff --git a/docs/build/api/schema/subscriptions/transaction-error.mdx b/docs/build/api/schema/subscriptions/transaction-error.mdx index bbe5e3251..d8fe955ce 100644 --- a/docs/build/api/schema/subscriptions/transaction-error.mdx +++ b/docs/build/api/schema/subscriptions/transaction-error.mdx @@ -5,16 +5,42 @@ hide_table_of_contents: false --- - export const Bullet = () => <> ●  export const SpecifiedBy = (props) => <>Specification -export const Badge = (props) => <>{props.text} +export const Badge = (props) => <>{props.text} + +import { useState } from 'react'; + +export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => { + const [open, setOpen] = useState(startOpen); + return ( +
+ { + e.preventDefault(); + setOpen((open) => !open); + }} + style={{ listStyle:'none' }} + > + {open ? dataOpen : dataClose} + + {open && children} +
+ ); +}; + + + + + + Subscribe to be notified when a transaction is on error + ```graphql transactionError( address: Address! @@ -22,19 +48,23 @@ transactionError( ``` + + ### Arguments -#### [transactionError.address](#)[`Address!`](/build/api/schema/scalars/address) +#### [transactionError.address](#)[`Address!`](/build/api/schema/scalars/address) +> +> > > ### Type -#### [`TransactionError`](/build/api/schema/objects/transaction-error) +#### [`TransactionError`](/build/api/schema/objects/transaction-error) +> +> > [TransactionError] represents an error. > - -