trTransferAsset
Http, Websocket, command line
post
url
address: /api/transaction/trTransferAsset
interface TrTransferAsset extends TrCommonParam {
/**The amount of transferred equity, composed of 0-9 and excluding the decimal point, must be greater than 0 */
amount: string;
/**The type of equity to be transferred, composed of uppercase letters, 3-5 characters */
assetType?: string;
/**The chain name of the transferred equity, composed of lowercase letters, 3-8 digits */
sourceChainName?: string;
/**The network identifier of the chain to which the transferred equity belongs, composed of uppercase letters or numbers, 5 characters, and the last digit is the check digit */
sourceChainMagic?: string;
/**The receiving account address of the event, base58-encoded hexadecimal string */
recipientId: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string
}
}
trTransferAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trTransferAssetWithSign
interface TrTransferAssetWithSign {
/**The buffer generated by the event body without signature is generated by TrTransferAsset */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string
}
}
transferAsset
Http, Websocket, command line
post
url
address: /api/transaction/send/transferAsset
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrTransferAsset {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trSignature
Http, Websocket, command line
post
url
address: /api/transaction/trSignature
interface TrSignature extends TrCommonParam {
/**New security password */
newSecondSecret: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trSignatureWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trSignatureWithSign
interface TrSignatureWithSign {
/**The buffer generated by the event body without signature is generated by trSignature */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
signature
Http, Websocket, command line
post
url
address: /api/transaction/send/trSignature
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrSignature {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trUsername
Http, Websocket, command line
post
url
address: /api/transaction/trUsername
interface TrUsername extends TrCommonParam {
/**User name string, composed of uppercase and lowercase letters, numbers, and underscores, 1-20 characters, cannot contain the name of the current chain */
alias: string;
}
interface TrUsername {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trUsernameWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trUsernameWithSign
interface TrUsernameWithSign {
/**The buffer generated by the event body without signature is generated by trUsername */
buffer: string;
/**Event signature */
signature: string;
}
interface TrUsername {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
username
Http, Websocket, command line
post
url
address: /api/transaction/send/username
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrUsername {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trDelegate
Http, Websocket, command line
post
url
address: /api/transaction/trDelegate
interface TrDelegate extends TrCommonParam {
}
interface TrDelegate {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trDelegateWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trDelegateWithSign
interface TrDelegateWithSign {
/**The buffer generated by the event body without signature is generated by trDelegate */
buffer: string;
/**Event signature */
signature: string;
}
interface SendTrDelegate {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
delegate
Http, Websocket, command line
post
url
address: /api/transaction/send/delegate
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface Delegate {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trAcceptVote
Http, Websocket, command line
post
url
address: /api/transaction/trAcceptVote
interface TrAcceptVote extends TrCommonParam {
}
interface TrAcceptVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trAcceptVoteWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trAcceptVoteWithSign
interface TrAcceptVoteWithSign {
/**The buffer generated by the event body without signature is generated by trAcceptVote */
buffer: string;
/**Event signature */
signature: string;
}
interface TrAcceptVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
acceptVote
Http, Websocket, command line
post
url
address: /api/transaction/send/acceptVote
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrAcceptVote {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trRejectVote
Http, Websocket, command line
post
url
address: /api/transaction/trRejectVote
interface TrRejectVote extends TrCommonParam {
}
interface TrRejectVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trRejectVoteWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trRejectVoteWithSign
interface TrRejectVoteWithSign {
/**The buffer generated by the event body without signature is generated by trRejectVote */
buffer: string;
/**Event signature */
signature: string;
}
interface TrRejectVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
rejectVote
Http, Websocket, command line
post
url
address: /api/transaction/send/rejectVote
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrRejectVote {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trVote
Http, Websocket, command line
post
url
address: /api/transaction/trVote
interface TrVote extends TrCommonParam {
/**The number of equity voted, composed of 0-9 and excluding the decimal point, allowed to be 0 */
equity: string;
/**The receiving account address of the event, base58-encoded hexadecimal string */
recipientId: string;
}
interface TrVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
trVoteWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trVoteWithSign
interface TrVoteWithSign {
/**The buffer generated by the event body without signature is generated by trVote */
buffer: string;
/**Event signature */
signature: string;
}
interface TrVote {
/**whether succeed */
success: boolean;
result: {
/** Buffer that needs to be signed */
buffer: Buffer
}
}
vote
Http, Websocket, command line
post
url
address: /api/transaction/send/vote
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: Buffer;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
interface SendTrVote {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trDapp
Http, Websocket, command line
post
url
address: /api/transaction/trDapp
interface TrDapp extends TrCommonParam {
/**Dappid without check digit, composed of uppercase letters or numbers, 7 characters */
newDappid: string;
/**The type of dappid can only be 0 or 1. 0 means this dappid is paid for use, 1 means this dappid is free to use */
type: number;
/**The number of rights and interests required to purchase the right to use dappid (if dappid is a paid application, it must be carried, if it is a free application, it does not need to be carried), composed of 0-9 and does not include a decimal point, and must be greater than 0 */
amount: string;
/**The receiving account address of the event, base58-encoded hexadecimal string */
recipientId?: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trDappWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trDappWithSign
interface TrDappWithSign {
/**The buffer generated by the event body without signature, generated by trDapp */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
dapp
Http, Websocket, command line
post
url
address: /api/transaction/send/dapp
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface Dapp {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
/**Complete release dapp event */
result: BFChainCore.TransactionJSON;
}
trDappPurchasing
Http, Websocket, command line
post
url
address: /api/transaction/trDappPurchasing
interface TrDappPurchasing extends TrCommonParam {
/**The receiving account address of the event, base58-encoded hexadecimal string */
recipientId: string;
/**The dappid to which the deposit certificate belongs, the uppercase letters get the array composition, 8 characters */
dappid: string;
/**The type of dappid can only be 0 or 1, 0 means dappid is a paid type, 1 means dappid is a free type */
type: number;
/**The number of equity spent to purchase dappid */
purchaseAsset: number;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trDappPurchasingWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trDappPurchasingWithSign
interface TrDappPurchasingWithSign {
/**The buffer generated by the event body without signature is generated by trDappPurchasing */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
dappPurchasing
Http, Websocket, command line
post
url
address: /api/transaction/send/dappPurchasing
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface SendTrDappPurchasing {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
/**Complete dappPurchasing event */
result: BFChainCore.TransactionJSON;
}
trMark
Http, Websocket, command line
post
url
address: /api/transaction/trMark
interface TrMark extends TrCommonParam {
/**Certificate content, any string */
content: string;
/**Certificate type, which is an arbitrary string, used to distinguish the certificate of deposit */
action: string;
/**The dappid to which the deposit certificate belongs, the uppercase letters get the array composition, 8 characters */
dappid: string;
/**The type of dappid can only be 0 or 1, 0 means dappid is a paid type, 1 means dappid is a free type */
type: number;
/**The number of equity spent to purchase dappid */
purchaseAsset?: number;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trMarkWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trMarkWithSign
interface TrMarkWithSign {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
mark
Http, Websocket, command line
post
url
address: /api/transaction/send/mark
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface SendTrMark {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
/**Complete mark event */
result: BFChainCore.TransactionJSON;
}
trIssueAsset
Http, Websocket, command line
post
url
address: /api/transaction/trIssueAsset
interface TrIssueAsset extends TrCommonParam{
/**The issued equity name, composed of uppercase letters, 3-5 characters */
assetType: string;
/**Total number of new equity issued. The number of equity consists of ten numbers from 0-9. The number of equity does not include a decimal point and must be greater than 0 */
expectedIssuedAssets: string;
/**The creation account address of the new equity, a base58-encoded hexadecimal string, the address must be transferred to the main equity of the chain to the originating account of this event */
recipientId: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trIssueAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trIssueAssetWithSign
interface TrIssueAssetWithSign {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
issueAsset
Http, Websocket, command line
post
url
address: /api/transaction/send/issueAsset
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface TrIssueAsset {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trDestroyAsset
Http, Websocket, command line
post
url
address: /api/transaction/trDestroyAsset
interface TrDestroyAsset extends TrCommonParam{
/**The number of equity to be destroyed, composed of 0-9 and excluding the decimal point, must be greater than 0 */
amount: string;
/**Destroyed equity name, composed of uppercase letters, 3-5 characters */
assetType: string;
/**The address of the equity issuing account, base58-encoded hexadecimal string */
recipientId: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trDestroyAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trDestroyAssetWithSign
interface TrDestroyAssetWithSign {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
-Return parameters:
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
destroyAsset
Http, Websocket, command line
post
url
address: /api/transaction/send/destroyAsset
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
-Return parameters:
interface TrDestroyAsset {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trToExchangeAsset
Http, Websocket, command line
post
url
address: /api/transaction/trToExchangeAsset
interface TrToExchangeAsset extends TrCommonParam{
/**The network identifier of the equity source chain used for exchange, composed of uppercase letters or numbers, 5 characters, and the last digit is the check digit */
toExchangeSource: string;
/**The network identifier of the equity source chain to be exchanged, composed of uppercase letters or numbers, 5 characters, and the last digit is the check digit */
beExchangeSource: string;
/**The name of the equity source chain used for exchange, composed of lowercase letters, 3-8 digits */
toExchangeChainName: string;
/**The name of the equity source chain to be exchanged, composed of lowercase letters, 3-8 digits */
beExchangeChainName: string;
/**The equity name used for exchange, composed of uppercase letters, 3-5 characters */
toExchangeAsset: string;
/**The name of the equity to be exchanged, composed of uppercase letters, 3-5 characters */
beExchangeAsset: string;
/**The amount of equity used for exchange, composed of 0-9 and excluding the decimal point, must be greater than 0 */
toExchangeNumber: string;
/**Used as the denominator of the exchange ratio with equity, a positive integer. Exchanged equity = exchange equity * exchange ratio */
prevWeight: string;
/** The numerator of the exchange ratio with the equity is a positive integer. Exchanged equity = exchange equity * exchange ratio */
nextWeight: string;
/**Encryption key group, if the key is filled in, the event receiving the equity exchange must carry a signature pair generated by a certain key */
ciphertexts?: string[];
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trToExchangeAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trToExchangeAssetWithSign
interface TrToExchangeAssetWithSign {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trToExchangeAsset
Http, Websocket, command line
post
url
address: /api/transaction/send/trToExchangeAsset
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface TrToExchangeAsset {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}
trBeExchangeAsset
Http, Websocket, command line
post
url
address: /api/transaction/trBeExchangeAsset
interface TrBeExchangeAsset extends TrCommonParam{
/**to event signature, a 128-byte hexadecimal string */
transactionSignature: string;
/**The amount of equity used for exchange. The amount of equity consists of ten numbers from 0-9. The amount of equity does not include a decimal point and must be greater than 0 */
beExchangeNumber: string;
/**The amount of equity obtained by the exchange, the amount of equity is composed of a total of ten numbers from 0-9, the amount of equity does not include the decimal point and must be greater than 0 */
toExchangeNumber: string;
/**Encryption key, if the encryption key is filled in the equity exchange event, you must carry the specified key of a equity exchange event to generate a key signature pair */
ciphertext?: string;
/**to event originating account address, base58-encoded hexadecimal string */
recipientId: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
trBeExchangeAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trBeExchangeAssetWithSign
interface TrBeExchangeAssetWithSign {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
interface TrCommonParamResponse {
/**whether succeed */
success: boolean;
result: {
/** The buffer that needs to be signed is converted to a base64 string */
buffer: string;
};
}
destroyAsset
Http, Websocket, command line
post
url
address: /api/transaction/send/destroyAsset
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
interface TrBeExchangeAsset {
/**whether succeed */
success: boolean;
/**Minimum handling fee */
minFee: number;
result: BFChainCore.TransactionJSON;
}