Skip to main content

metadata.proto

path sdk/metadata.proto

package m10.sdk.metadata


Messages

AccountCurrency

AccountCurrency represents a currency and amount associated with a specific account.

NameTypeDescription
operatorstringThe operator of the account.
currencystringThe currency code (e.g., USD, EUR).
account_idbytesThe ledger account ID.
amountuint64The amount of the currency.

Attachment

Attachment represents a file or object linked to a transaction.

NameTypeDescription
object_idstringID of the attached object.
typeAttachment.AttachmentTypeType of the attachment.

Contract

Contract represents metadata for a smart contract.

NameTypeDescription
transactionsbytesLedger transactions to be processed, serialized as `CreateLedgerTransfers`.
endorsementsrepeated EndorsementEndorsements of the contract by authorized parties. Can be signed by multiple parties.

Deposit

Metadata for a deposit (issue) transaction.

NameTypeDescription
bank_account_idstringThe bank account the deposit is from.

Endorsement

Approval of a contract by a ledger.

NameTypeDescription
ledger_idstringThe ID of the endorsing ledger.
signaturem10.sdk.transaction.SignatureThe signature of the endorsement.

Fee

Fee is a placeholder for future fee-related metadata. Currently unused.

NameTypeDescription

Memo

Memo contains a plaintext message associated with a transaction.

NameTypeDescription
plaintextstringThe plaintext message.

OfflineTransfer

Metadata for an offline transfer.

NameTypeDescription
inputuint64Input value for the offline transfer.

PaymentRequest

Metadata for a payment request.

NameTypeDescription
transferm10.sdk.transaction.CreateTransferThe transfer details of a payment request.
statusPaymentRequest.PaymentRequestStatusThe current status of the payment request.

QuoteEvent

QuoteEvent represents an event related to a foreign exchange quote.

NameTypeDescription
requestQuoteRequestA quote request event.
proposalContractA quote proposal event.

QuoteRequest

QuoteRequest represents a request for a foreign exchange quote. Amount should be provided exclusively for either `base` or `target`.

NameTypeDescription
baseAccountCurrencyThe base currency and amount for the quote.
targetAccountCurrencyThe target currency for the quote.
memostringAn optional memo associated with the quote request.

RebalanceTransfer

Metadata for a rebalance transfer.

NameTypeDescription

SelfTransfer

SelfTransfer represents a transfer between accounts owned by the same user.

NameTypeDescription
from_account_namestringThe source account.
to_account_namestringThe destination account.

TokenWithdraw

Metadata for a token withdrawal.

NameTypeDescription

Withdraw

Metadata for a withdraw (redeem) transaction.

NameTypeDescription
bank_account_idstringThe bank account the withdrawal is to.

Enums

Attachment.AttachmentType

Enumerates the possible types of attachments.

NameNumberDescription
OBJECT0Generic object attachment.
IMAGE1Image attachment.

PaymentRequest.PaymentRequestStatus

Enumerates the possible statuses of a payment request.

NameNumberDescription
PENDING0The request is pending
DECLINED1The request has been declined
CANCELED2The request has been canceled
IN_PROGRESS3The request is currently being processed