OBJECT

Mutation

link GraphQL Schema definition

  • type Mutation {
  • # Create a new account
  • #
  • # Arguments
  • # description: The description of the account
  • # passphrase: User provided passphrase used to encrypt/decrypt
  • # secret during transactions
  • # trust_auth_required: Set the flag requiring other trustors to
  • # be authorized before trusting this account's assets
  • # pre_authorize_transactions: Set the flag requiring this account
  • # to use pre-authorized transactions
  • # home_domain: Set the home domain for the account
  • createAccount(
  • description: String,
  • passphrase: String!,
  • trust_auth_required: Boolean,
  • pre_authorize_transactions: Boolean,
  • home_domain: String
  • ): Account
  • # Create a new account from an existing Account
  • #
  • # Arguments
  • # description: The description of the account
  • # source_public_key: Public Key of the source account
  • # source_secret: Secret of the source account
  • # passphrase: User provided passphrase used to encrypt/decrypt
  • # secret during transactions
  • # initial_balance: Initial balance to seed the account with
  • # trust_auth_required: Set the flag requiring other trustors to
  • # be authorized before trusting this account's assets
  • # pre_authorize_transactions: Set the flag requiring this account
  • # to use pre-authorized transactions
  • # home_domain: Set the home domain for the account
  • createAccountFromSource(
  • description: String,
  • source_public_key: String!,
  • source_secret: String!,
  • passphrase: String!,
  • initial_balance: String!,
  • trust_auth_required: Boolean,
  • pre_authorize_transactions: Boolean,
  • home_domain: String
  • ): Account
  • # Create a new asset owned by an existing Account
  • #
  • # Arguments
  • # asset_code: Alphanumeric code that uniquely identifies the
  • # asset
  • # asset_issuer: Public key of the asset issuer (creator)
  • # description: The description of the asset
  • createAsset(
  • asset_code: String!,
  • asset_issuer: String!,
  • description: String
  • ): Asset
  • # Initiate a signer transaction
  • #
  • # Arguments
  • # public_key: Public key of the owner of the account
  • # signer: Public key of the signer to add to the account
  • # weight: Weight assigned to the added signer for transactions on
  • # this account
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createSignerTransaction(
  • public_key: String!,
  • signer: String!,
  • weight: Int!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for establishing thresholds and weights for account
  • # transactions
  • #
  • # Arguments
  • # public_key: Public key of the owner of the account
  • # weight: Master key signing weight for the account
  • # low: Signing weight for low threshold transactions on the
  • # account
  • # medium: Signing weight for medium threshold transactions on the
  • # account
  • # high: Signing weight for high threshold transactions on the
  • # account
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createWeightThresholdTransaction(
  • public_key: String!,
  • weight: Int!,
  • low: Int!,
  • medium: Int!,
  • high: Int!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Create a payment for a given account
  • #
  • # Arguments
  • # sender_public_key: Public key of the owner of the account
  • # receiver_public_key: Public key of the recipient of the poyment
  • # asset_code: Alphanumeric code that uniquely identifies the
  • # asset
  • # asset_issuer: Public key of the issuer of the asset
  • # amount: Amount of the asset to distribute
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createPayment(
  • sender_public_key: String!,
  • receiver_public_key: String!,
  • asset_code: String!,
  • asset_issuer: String!,
  • amount: String!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for allowing trust of a given asset
  • #
  • # Arguments
  • # asset_issuer: Public key of the issuer of the asset
  • # asset_code: Alphanumeric code that uniquely identifies the
  • # asset
  • # trustor_public_key: Public key of the trustor of the asset
  • # authorize_trust: Boolean indicating whether or not to allow
  • # (revoke) trust
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createAllowTrustTransaction(
  • asset_issuer: String!,
  • asset_code: String!,
  • trustor_public_key: String!,
  • authorize_trust: Boolean!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for establishing trust for a given asset
  • #
  • # Arguments
  • # trustor_public_key: Public key of the owner of the account
  • # asset_code: Alphanumeric code that uniquely identifies the
  • # asset
  • # asset_issuer: Public key of the issuer of the asset
  • # limit: Maximum amount of the asset to trust
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createTrustTransaction(
  • trustor_public_key: String!,
  • asset_code: String!,
  • asset_issuer: String!,
  • limit: String!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for creating an offer to buy/sell/exchange an asset
  • #
  • # Arguments
  • # public_key: Public key of the account
  • # sell_asset_code: Alphanumeric code that identifies the asset
  • # being sold
  • # sell_asset_issuer: Public key issuer of the asset being offered
  • # for sale
  • # sell_amount: Amount of the asset being offered for sale
  • # buy_asset_code: Alphanumeric code that identifies the asset
  • # being bought
  • # buy_asset_issuer: Public key issuer of the asset being bought
  • # buy_amount: Amount of the asset being bought
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createOffer(
  • public_key: String!,
  • sell_asset_code: String!,
  • sell_asset_issuer: String,
  • sell_amount: String!,
  • buy_asset_code: String!,
  • buy_asset_issuer: String,
  • buy_amount: String!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for updating an existing offer to buy/sell/exchange an
  • # asset
  • #
  • # Arguments
  • # public_key: Public key of the account
  • # offer_id: Offer ID of the existing offer that is being updated
  • # sell_asset_code: Alphanumeric code that identifies the asset
  • # being sold
  • # sell_asset_issuer: Public key issuer of the asset being offered
  • # for sale
  • # sell_amount: Amount of the asset being offered for sale
  • # buy_asset_code: Alphanumeric code that identifies the asset
  • # being bought
  • # buy_asset_issuer: Public key issuer of the asset being bought
  • # buy_amount: Amount of the asset being bought
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • updateOffer(
  • public_key: String!,
  • offer_id: String!,
  • sell_asset_code: String!,
  • sell_asset_issuer: String,
  • sell_amount: String!,
  • buy_asset_code: String!,
  • buy_asset_issuer: String,
  • buy_amount: String!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Initiate a transaction for deleting an existing offer to buy/sell/exchange an
  • # asset
  • #
  • # Arguments
  • # public_key: Public key of the account
  • # offer_id: Offer ID of the existing offer that is being deleted
  • # sell_asset_code: Alphanumeric code that identifies the asset
  • # being sold
  • # sell_asset_issuer: Public key issuer of the asset being offered
  • # for sale
  • # buy_asset_code: Alphanumeric code that identifies the asset
  • # being bought
  • # buy_asset_issuer: Public key issuer of the asset being bought
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • deleteOffer(
  • public_key: String!,
  • offer_id: String!,
  • sell_asset_code: String!,
  • sell_asset_issuer: String,
  • buy_asset_code: String!,
  • buy_asset_issuer: String,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Arguments
  • # public_key: Public key of the account
  • # flag_operation: Flag operation
  • # flag_to_set: Flag to set
  • # pre_authorize_transaction: Optional flag making this a
  • # pre-authorized transaction
  • createFlagTransaction(
  • public_key: String!,
  • flag_operation: String!,
  • flag_to_set: String!,
  • pre_authorize_transaction: Boolean
  • ): Transaction
  • # Arguments
  • # public_key: Public key of the owner of the transaction
  • # passphrase: User provided passphrase used to decrypt account
  • # secret during transactions
  • # transaction_id: Transaction id that uniquely identifies the
  • # transaction to sign
  • signTransaction(
  • public_key: String!,
  • passphrase: String!,
  • transaction_id: String!
  • ): Transaction
  • # Arguments
  • # public_key: Public key of the owner of the transaction
  • # passphrase: User provided passphrase used to decrypt account
  • # secret during transactions
  • # transaction_id: Transaction id that uniquely identifies the
  • # transaction to pre-authorize
  • # final_approver: Public key of approver that can perform final
  • # submission of pre-authorized transaction
  • preAuthorizeTransaction(
  • public_key: String!,
  • passphrase: String!,
  • transaction_id: String!,
  • final_approver: String!
  • ): Transaction
  • # Arguments
  • # transaction_id: Transaction id that uniquely identifies the
  • # pre-authorized transaction to submit
  • # final_approver: Public key of approver performing final
  • # submission of pre-authorized transaction
  • submitPreAuthorizedTransaction(
  • transaction_id: String!,
  • final_approver: String!
  • ): Transaction
  • }

link Require by

This element is not required by anyone