-
Notifications
You must be signed in to change notification settings - Fork 1
Transactions
Transaction means transferring cryptocurrency between two addresses. Transaction must be confirmed by a digital signature and a public key. This info will get you familiar with how to perform transaction in the MetaHash network.
Each transaction performed in the MetaHash network has its own status.
There are the following transaction status:
ok - transaction has been performed successfully,
error - transaction failed with an error,
pending - the first status: transaction is pending,
module_not_set - appropriate module that can process this transaction, this status is only for JacaScript transactions.
Request via get-tx method allows to find out the transaction status by transaction hash in the status field. Learn more about get-tx method.
Besides, this request returns IntStatus field containing description of transaction type in the number format applicable in the MetaHash network. There are the following transaction types:
TX STATE
TX_STATE_APPROVE = 1; // block approve transaction
TX_STATE_FEE = 2; // fee in the current block (apart from the amount fee)
TX_STATE_ACCEPT = 20; // transaction accepted (data & move)
TX_STATE_WRONG_DATA = 40; // transaction completed, but data method rejected
TX_STATE_FORGING = 100; // forging transaction
TX_STATE_FORGING_W = 101; // wallet reward forging transaction
TX_STATE_FORGING_N = 102; // node reward forging transaction
TX_STATE_FORGING_C = 103; // coin reward forging transaction
TX_STATE_FORGING_R = 104; // random reward forging transaction
TX_STATE_FORGING_DAPP = 110; // distributed applications reward forging transaction
TX_STATE_FORGING_TEAM = 127; // team reward transaction
TX_STATE_FORGING_FOUNDER = 128; // founder round B
TX_STATE_STATE = 200; // state block transaction
TX_STATE_TECH_NODE_STAT = 0x1101; // node statistic
TX REJECT REASON
TX_REJECT_ZERO = 0xff01; // attempt to perform transaction with zero balance
TX_REJECT_INSUFFICIENT_FEE = 0xff02; // not enough fee to complete transaction
TX_REJECT_INSUFFICIENT_FUNDS = 0xff03; // not enough funds to complete transaction
TX_REJECT_INVALID_NONCE = 0xff04; // invalid nonce
TX_REJECT_INSUFFICIENT_FUNDS_EXT = 0xff05; // not enough funds to complete transaction (including delegated funds)
TX_REJECT_FOUNDER_LIMIT = 0xff06; // available limit on transferring founders is exceeded
TX_REJECT_INVALID_WALLET = 0x0404; // invalid sender or recipient address format
