opnet
Version:
The perfect library for building Bitcoin-based applications.
22 lines (21 loc) • 1.13 kB
JavaScript
export var JSONRpcMethods;
(function (JSONRpcMethods) {
JSONRpcMethods["BLOCK_BY_NUMBER"] = "btc_blockNumber";
JSONRpcMethods["CHAIN_ID"] = "btc_chainId";
JSONRpcMethods["REORG"] = "btc_reorg";
JSONRpcMethods["GET_BLOCK_BY_HASH"] = "btc_getBlockByHash";
JSONRpcMethods["GET_BLOCK_BY_NUMBER"] = "btc_getBlockByNumber";
JSONRpcMethods["GAS"] = "btc_gas";
JSONRpcMethods["GET_TRANSACTION_BY_HASH"] = "btc_getTransactionByHash";
JSONRpcMethods["BROADCAST_TRANSACTION"] = "btc_sendRawTransaction";
JSONRpcMethods["TRANSACTION_PREIMAGE"] = "btc_preimage";
JSONRpcMethods["PUBLIC_KEY_INFO"] = "btc_publicKeyInfo";
JSONRpcMethods["GET_UTXOS"] = "btc_getUTXOs";
JSONRpcMethods["GET_BALANCE"] = "btc_getBalance";
JSONRpcMethods["BLOCK_WITNESS"] = "btc_blockWitness";
JSONRpcMethods["GET_TRANSACTION_RECEIPT"] = "btc_getTransactionReceipt";
JSONRpcMethods["GET_CODE"] = "btc_getCode";
JSONRpcMethods["GET_STORAGE_AT"] = "btc_getStorageAt";
JSONRpcMethods["CALL"] = "btc_call";
JSONRpcMethods["SIMULATE"] = "btc_simulate";
})(JSONRpcMethods || (JSONRpcMethods = {}));