trTransferAsset
tta
Http, Websocket, command line
post
url
address: /api/transaction/trTransferAsset
interface TrTransferAsset extends TransactionCommonParams{
/**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;
/**Name of the transferred equity, composed of uppercase letters, 3-5 characters */
assetType: string;
/**The amount of transferred equity, composed of 0-9 and excluding the decimal point, must be greater than 0 */
amount: string;
/**The receiving account address of the event, base58-encoded hexadecimal string */
recipientId: string;
}
type TrTransferAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete transfer event */
result: BFMetaCore.TransactionJSON<BFMetaCore.TransferAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trTransferAssetWithSign
Http, Websocket
post
url
address: /api/transaction/trTransferAssetWithSign
interface PackageTrTransferAssetParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
interface PackageTrTransferAssetRespParam = {
/**Success */
success: true;
result: {
/** The buffer generated by the event body, base64 string */
buffer: string
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
transferAsset
Http, Websocket
post
url
address: /api/transaction/send/transferAsset
interface SendTrTransferAssetParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature?: string;
}
type SendTrTransferAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete transfer event */
result: BFMetaCore.TransactionJSON<BFMetaCore.TransferAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSignature
tsi
Http, Websocket, command line
post
url
address: /api/transaction/trSignature
interface TrSignature extends TransactionCommonParams{
newSecondSecret: string;
}
type TrSignatureRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Setup Security Password Events */
result: BFMetaCore.TransactionJSON<BFMetaCore.SignatureAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSignatureWithSign
Http, Websocket
post
url
address: /api/transaction/trSignatureWithSign
interface PackageTrSignatureParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
interface PackageTrSignatureRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
signature
Http, Websocket
post
url
address: /api/transaction/send/trSignature
interface SendTrSignatureParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrSignatureRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Setup Security Password Events */
result: BFMetaCore.TransactionJSON<BFMetaCore.SignatureAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trUsername
tusr
Http, Websocket, command line
post
url
address: /api/transaction/trUsername
interface TrUsernam extends TransactionCommonParams{
/**User name string, composed of uppercase and lowercase letters, numbers, and underscores, 1-20 characters, cannot contain this chain name */
alias: string;
}
type TrUsernameRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete set username event */
result: BFMetaCore.TransactionJSON<BFMetaCore.UsernameAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trUsernameWithSign
Http, Websocket
post
url
address: /api/transaction/trUsernameWithSign
interface PackageTrUsernameParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrUsernameRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
username
Http, Websocket
post
url
address: /api/transaction/send/username
interface SendTrUsernameParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrUsernameRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete set username event */
result: BFMetaCore.TransactionJSON<BFMetaCore.UsernameAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trDelegate
tdeg
Http, Websocket, command line
post
url
address: /api/transaction/trDelegate
interface TrDelegate extends TransactionCommonParams {
}
type TrDelegateRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Registration for Trustee Events */
result: BFMetaCore.TransactionJSON<BFMetaCore.DelegateAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trDelegateWithSign
Http, Websocket
post
url
address: /api/transaction/trDelegateWithSign
interface PackageTrDelegateParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrDelegateRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
delegate
Http, Websocket
post
url
address: /api/transaction/send/delegate
interface SendTrDelegateParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrDelegateRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Registration for Trustee Events */
result: BFMetaCore.TransactionJSON<BFMetaCore.DelegateAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trAcceptVote
tav
Http, Websocket, command line
post
url
address: /api/transaction/trAcceptVote
interface TrAcceptVote extends TransactionCommonParams {
}
type TrAcceptVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Receive voting Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.AcceptVoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trAcceptVoteWithSign
Http, Websocket
post
url
address: /api/transaction/trAcceptVoteWithSign
interface PackageTrAcceptVoteParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrAcceptVoteRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
acceptVote
Http, Websocket
post
url
address: /api/transaction/send/acceptVote
interface SendTrAcceptVoteParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrAcceptVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Receive Poll Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.AcceptVoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trRejectVote
trv
Http, Websocket, command line
post
url
address: /api/transaction/trRejectVote
interface TrRejectVote extends TransactionCommonParams {
}
type TrRejectVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete downvote event */
result: BFMetaCore.TransactionJSON<BFMetaCore.RejectVoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trRejectVoteWithSign
Http, Websocket
post
url
address: /api/transaction/trRejectVoteWithSign
interface PackageTrRejectVoteParam {
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrRejectVoteRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
rejectVote
Http, Websocket
post
url
address: /api/transaction/send/rejectVote
interface SendTrRejectVoteParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrRejectVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete downvote event */
result: BFMetaCore.TransactionJSON<BFMetaCore.RejectVoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trVote
tv
Http, Websocket, command line
post
url
address: /api/transaction/trVote
interface TrVote extends TransactionCommonParams {
/**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;
}
type TrVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**complete voting event */
result: BFMetaCore.TransactionJSON<BFMetaCore.VoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trVoteWithSign
Http, Websocket
post
url
address: /api/transaction/trVoteWithSign
interface PackageTrVoteParam {
/**The buffer generated by the event body without signature is generated by trVote */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrVoteRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
vote
Http, Websocket
post
url
address: /api/transaction/send/vote
interface SendTrCommonParam {
/**The buffer that needs to be signed is converted to a base64 string */
buffer: string;
/**Signature of the transaction */
signature: string;
/**Security signature of the transaction */
signSignature: string;
}
type SendTrVoteRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete voting event */
result: BFMetaCore.TransactionJSON<BFMetaCore.VoteAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trDapp
Interface abbreviation:tda
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trDapp
Request parameters:
interface TrDapp extends TransactionCommonParams {
/**dappid, composed of uppercase letters or numbers, 8 characters, the last digit is the check digit */
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: BFChainCore.DAPP_TYPE;
/**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 excluding decimal points, must be greater than 0 */
amount?: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrDappRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete release dapp event */
result: BFMetaCore.TransactionJSON<BFMetaCore.DAppAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trDappWithSign
Http, Websocket
post
url
address: /api/transaction/trDappWithSign
interface PackageTrDappParam {
/**The buffer generated by the event body without signature, generated by trDapp */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrDappRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
dapp
Http, Websocket
post
url
address: /api/transaction/send/dapp
interface SendTrDappParam {
/**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;
}
type SendTrDappRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete and complete release dapp event */
result: BFMetaCore.TransactionJSON<BFMetaCore.DAppAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trDappPurchasing
Interface abbreviation:tdap
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trDappPurchasing
Request parameters:
interface TrDappPurchasing extends TransactionCommonParams{
/**The release event signature of the purchased dappid, a 128-byte hexadecimal string */
transactionSignature: string;
}
type TrDappPurchasingRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete dapp purchase event */
result: BFMetaCore.TransactionJSON<BFMetaCore.DAppPurchasingAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trDappPurchasingWithSign
Http, Websocket
post
url
address: /api/transaction/trDappPurchasingWithSign
interface PackageTrDappPurchasingParam {
/**The buffer generated by the event body without signature is generated by trDappPurchasing */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrDappPurchasingRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
dappPurchasing
Http, Websocket
post
url
address: /api/transaction/send/dappPurchasing
interface SendTrDappPurchasingParam {
/**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;
}
type SendTrDappPurchasingRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete dapp purchase event */
result: BFMetaCore.TransactionJSON<BFMetaCore.DAppPurchasingAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trMark
Interface abbreviation:tmr
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trMark
Request parameters:
interface TrMark extends TransactionCommonParams{
/**The release event signature of the purchased dappid, a 128-byte hexadecimal string */
transactionSignature: string;
/**The content of the certificate is any string */
content: string;
/**Deposit type, any string, used to distinguish deposit certificates */
action: string;
}
type TrMarkRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**complete proof of events */
result: BFMetaCore.TransactionJSON<BFMetaCore.MarkAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trMarkWithSign
Http, Websocket
post
url
address: /api/transaction/trMarkWithSign
interface PackageTrMarkParam {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrMarkRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
mark
Http, Websocket
post
url
address: /api/transaction/send/mark
interface SendTrMarkParam {
/**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;
}
type SendTrMarkRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**The complete attestation event */
result: BFMetaCore.TransactionJSON<BFMetaCore.MarkAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trIssueAsset
Interface abbreviation:tia
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trIssueAsset
Request parameters:
interface TrIssueAsset extends TransactionCommonParams{
/**Name of equity, 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 receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrIssueAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token Release Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueAssetWithSign
Http, Websocket
post
url
address: /api/transaction/trIssueAssetWithSign
interface PackageTrIssueAssetParam {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrIssueAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
issueAsset
Http, Websocket
post
url
address: /api/transaction/send/issueAsset
interface SendTrIssueAssetParam {
/**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;
}
type SendTrIssueAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token Release Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trDestroyAsset
Interface abbreviation:tdya
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trDestroyAsset
Request parameters:
interface TrDestoryAsset extends TransactionCommonParams{
/**Destroyed equity name, composed of uppercase letters, 3-5 characters */
assetType: string;
/**The amount of equity to be destroyed, composed of 0-9 and excluding the decimal point, must be greater than 0 */
amount: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
trDestroyAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trDestroyAssetWithSign
interface PackageTrDestoryAssetParam {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
destroyAsset
Http, Websocket
post
url
address: /api/transaction/send/destroyAsset
interface SendTrDestoryAssetParam {
/**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:none
Introduction
The full name of the interface: trToExchangeAsset
Interface abbreviation:ttea
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trToExchangeAsset
Request parameters:
interface TrToExchangeAsset extends TransactionCommonParams{
/**Encryption key group, if the key is filled in, the event that accepts the exchange of rights and interests must carry a signature pair generated by a certain key */
ciphertexts?: string[];
interface TrToExchangeAsset extends TransactionCommonParams{
/**The public key array generated by the encryption key */
cipherPublicKeys: string[];
/**The source chain network identifier of the equity used for exchange, consisting of uppercase letters or digits, 5 characters, the last digit is the check digit */
toExchangeSource: string;
/**The source chain network identifier of the equity being exchanged, consisting of uppercase letter or number, 5 characters, the last digit is check the digit */
beExchangeSource: string;
/**The source name of the equity used for exchange, consisting of lowercase letters, 3-8 digits */
toExchangeChainName: string;
/**The source chain name of the equity being exchanged, consisting of lowercase letters, 3-8 digits */
beExchangeChainName: string;
/**The name of the equity used for exchange, consisting of uppercase letter, 3-5 digits */
toExchangeAsset: string;
/**The name of the equity being exchanged,consisting of uppercase letter, 3-5 digits */
beExchangeAsset: string;
/**The number of equity used for exchange, consisting of 0-9 and excluding the decimal point, must be greater than 0 */
toExchangeNumber: string;
/**The exchange ratio of equity */
exchangeRate: BFMeta.RateJSON<string>;
}
type TrToExchangeAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token Exchange Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trToExchangeAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trToExchangeAssetWithSign
interface PackageTrToExchangeAssetParam {
/** Buffer generated by event body without signature, generated by trMark */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrToExchangeAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
toExchangeAsset
Http, Websocket
post
url
address: /api/transaction/send/toExchangeAsset
interface SendTrToExchangeAssetParam {
/**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;
}
type SendTrToExchangeAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete equity exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
Introduction
The full name of the interface: trBeExchangeAsset
Interface abbreviation:tbea
Callable methods: Http, Websocket, command line
Calling method: post
Interface url
address: /api/transaction/trBeExchangeAsset
Request parameters:
interface TrBeExchangeAsset extends TransactionCommonParams{
/**to event signature, a 128-byte hexadecimal string */
transactionSignature: string;
/**The amount of token used for exchange. The amount of token consists of ten numbers from 0-9. The amount of token does not include a decimal point and must be greater than 0 */
beExchangeNumber: string;
/**The amount of token obtained by the exchange, the amount of token is composed of a total of ten numbers from 0-9, the amount of token does not include the decimal point and must be greater than 0 */
toExchangeNumber: string;
/**Encryption key, if the encryption key is filled in the token exchange event, you must carry the specified key of a token exchange event to generate a key signature pair */
ciphertext?: string;
/**to event originating account address, base58-encoded hexadecimal string */
recipientId: string;
}
type TrBeExchangeAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Accept Stake Exchange Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trBeExchangeAssetWithSign
Http, Websocket, command line
post
url
address: /api/transaction/trBeExchangeAssetWithSign
interface PackageTrBeExchangeAssetParam {
/** The buffer generated by the event body, base64 string */
buffer: string;
/**Event signature */
signature: string;
}
type PackageTrBeExchangeAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
beExchangeAsset
Http, Websocket
post
url
address: /api/transaction/send/destroyAsset
interface SendTrBeExchangeAssetParam {
/**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;
}
type SendTrBeExchangeAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Accept Stake Exchange Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trToExchangeSpecAsset
ttesa
Http,Websocket,command line
post
url
address:/api/transaction/trToExchangeSpecAsset
interface TrToExchangeSpecAsset extends TransactionCommonParams{
/**Encryption key group, if the key is filled in, the event of accepting asset exchange must carry a signature pair generated by a certain key */
ciphertexts?: string[];
}
type TrToExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete asset exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeSpecialAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trToExchangeSpecAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trToExchangeSpecAssetWithSign
interface PackageTrToExchangeSpecAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrToExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
toExchangeSpecAsset
Http,Websocket
post
url
address:/api/transaction/send/toExchangeSpecAsset
interface SendTrToExchangeSpecAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrToExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete asset exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeSpecialAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trBeExchangeSpecAsset
tbesa
Http,Websocket,command line
post
url
address:/api/transaction/trBeExchangeSpecAsset
interface TrBeExchangeSpecAsset extends TransactionCommonParams{
/**The signature of the to event, a 128-byte hexadecimal string */
transactionSignature: string;
/**Encryption key, if the asset exchange event fills in the encryption key, it must carry the specified key of an asset exchange event to generate a key signature pair */
ciphertext?: string;
}
type TrBeExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete accept asset exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeSpecialAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trBeExchangeSpecAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trBeExchangeSpecAssetWithSign
interface PackageTrBeExchangeSpecAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrBeExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
beExchangeSpecAsset
Http,Websocket
post
url
address:/api/transaction/send/beExchangeSpecAsset
interface SendTrBeExchangeSpecAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrBeExchangeSpecAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete accept asset exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeSpecialAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trGiftAsset
tga
Http,Websocket,command line
post
url
address:/api/transaction/trGiftAsset
interface TrGiftAsset extends TransactionCommonParams{
/**Encryption key group, if the key is filled in, the event of receiving token exchange must carry a signature pair generated by a certain key */
ciphertexts?: string[];
}
type TrGiftAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token gift event (red envelope event) */
result: BFMetaCore.TransactionJSON<BFMetaCore.GiftAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trGiftAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trGiftAssetWithSign
interface PackageTrGiftAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrGiftAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
giftAsset
Http,Websocket
post
url
address:/api/transaction/send/giftAsset
interface SendTrGiftAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrGiftAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete rights and interests gift event (red envelope event) */
result: BFMetaCore.TransactionJSON<BFMetaCore.GiftAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trGrabAsset
tgra
Http,Websocket,command line
post
url
address:/api/transaction/trGrabAsset
interface TrGrabAsset extends TransactionCommonParams{
/**The number of gift benefits received, consisting of 0-9 and excluding decimal points */
amount?: string;
/**The signature of the block where the gift event is located, a 128-byte hexadecimal string */
blockSignature: string;
/**The signature of the gift event, a 128-byte hexadecimal string */
transactionSignature: string;
/**Encryption key, if the encryption key is filled in the token donation event, it must carry a specified key of an token exchange event to generate a key signature pair */
ciphertext?: string;
}
type TrGrabAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**A complete event of receiving rights and interests (the event of grabbing red envelopes) */
result: BFMetaCore.TransactionJSON<BFMetaCore.GrabAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trGrabAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trGrabAssetWithSign
interface PackageTrGrabAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrGrabAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
grabAsset
Http,Websocket
post
url
address:/api/transaction/send/grabAsset
interface SendTrGrabAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrGrabAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete event of receiving token (grabbing red envelope event) */
result: BFMetaCore.TransactionJSON<BFMetaCore.GrabAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trTrustAsset
ttra
Http,Websocket,command line
post
url
address:/api/transaction/trTrustAsset
interface TrTrustAsset extends TransactionCommonParams {
/** Witness account address array, base58-encoded hexadecimal string array */
trustees: string[];
/**The number of witness signatures required when signing for receipt, consisting of 0-9, must be greater than 0, and the maximum value is the number of designated trustees + 2 */
numberOfSignFor: number;
/**The chain name of the witnessed equity, composed of lowercase letters, 3-8 digits */
sourceChainName: string;
/**The network identifier of the chain to which the witnessed equity belongs, composed of uppercase letters or numbers, 5 characters, and the last digit is the check digit */
sourceChainMagic: string;
/**The witness's equity name, composed of uppercase letters, 3-5 characters */
assetType: string;
/**The number of witnessed equity, composed of 0-9 and excluding the decimal point, must be greater than 0 */
amount: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrTrustAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token delegation event */
result: BFMetaCore.TransactionJSON<BFMetaCore.TrustAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trTrustAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trTrustAssetWithSign
interface PackageTrGrabAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrGrabAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
trustAsset
Http,Websocket
post
url
address:/api/transaction/send/trustAsset
interface SendTrTrustAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrTrustAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete token delegation event */
result: BFMetaCore.TransactionJSON<BFMetaCore.TrustAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSignForAsset
tsfa
Http,Websocket,command line
post
url
address:/api/transaction/trSignForAsset
interface TrSignForAsset extends TransactionCommonParams{
/**The signature of the delegated event, a 128-byte hexadecimal string */
transactionSignature: string;
}
type TrSignForAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete sign-in token entrustment event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SignForAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSignForAssetWithSign
Http,Websocket
post
url
address:/api/transaction/trSignForAssetWithSign
interface PackageTrSignForAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrSignForAssetRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
signForAsset
Http,Websocket
post
url
address:/api/transaction/send/signForAsset
interface SendTrSignForAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrSignForAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete sign-in token entrustment event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SignForAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trEmigrateAsset
tema
Http,Websocket,command line
post
url
address:/api/transaction/trEmigrateAsset
interface TrEmigrateAsset extends TransactionCommonParams{
/**Credential version */
version: string;
/**Creation time of moving out certificate Date.now().getTimes() */
timestamp: number;
/**The unique identifier version+custom format of the migration chain, currently it is version/magic/chainName/genesisBlockSignature */
fromChainId: string;
/**The unique identifier version+custom format of the imported chain, currently it is version/magic/chainName/genesisBlockSignature */
toChainId: string;
/**Unique ID of the originating account,version/address */
fromId: string;
/**Unique ID of the receiving account, version/address */
toId: string;
/**Tokens to move out:version/assetType */
assetId: string;
/**Number of tokens transferred out,0-9 Consists of and does not contain a decimal point, which must be greater than 0 */
assetPrealnum: string;
/**Signature of Originating account ,version/publicKey-signature/secondPublicKey-signSignature */
signature: string;
/**Signature of the outbound chain, version/publicKey-signature/secondPublicKey-signSignature */
fromAuthSignature: string;
}
type TrEmigrateAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Entire token relocation event */
result: BFMetaCore.TransactionJSON<BFMetaCore.EmigrateAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trImmigrateAsset
tima
Http,Websocket,command line
post
url
address:/api/transaction/trImmigrateAsset
interface TrImmigrateAsset extends TransactionCommonParams{
/**Credential version */
version: string;
/**Creation time of moving out certificate Date.now().getTimes() */
timestamp: number;
/**The unique identifier version+custom format of the migration chain, currently it is version/magic/chainName/genesisBlockSignature */
fromChainId: string;
/**The unique identifier version+custom format of the imported chain, currently it is version/magic/chainName/genesisBlockSignature */
toChainId: string;
/**Unique ID of the originating account,version/address */
fromId: string;
/**Unique ID of the receiving account, version/address */
toId: string;
/**Tokens to move out:version/assetType */
assetId: string;
/**Number of tokens transferred out,0-9 Consists of and does not contain a decimal point, which must be greater than 0 */
assetPrealnum: string;
/**Signature of Originating account , version/publicKey-signature/secondPublicKey-signSignature */
signature: string;
/**Signature of the outbound chain, version/publicKey-signature/secondPublicKey-signSignature */
fromAuthSignature: string;
/**Authorized signature header of the migration chain version */
toAuthSignature: string;
}
type TrImmigrateAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete tokens migration event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ImmigrateAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trLocationName
tln
Http,Websocket,command line
post
url
address:/api/transaction/trLocationName
interface TrLocationName extends TransactionCommonParams {
/**The name of the registration/deregistration, 2-1024 characters, the maximum length of each level domain name is 128 characters, the first level domain name can only be composed of lowercase letters, and the beginning and end of the second level and above can only be lowercase letters or numbers It can contain an underscore in the middle, and the root domain name must be the chain name of this chain*/
name: string;
/**Operation type, it can only be 0 or 1, 0 means registration position name, 1 means deregistration position name */
operationType: BFMeta.LOCATION_NAME_OPERATION_TYPE;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrLocationNameRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete registration and cancellation of LNS events */
result: BFMetaCore.TransactionJSON<BFMetaCore.LocationNameAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trLocationNameWithSign
Http,Websocket
post
url
address:/api/transaction/trLocationNameWithSign
interface PackageTrLocationNameParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrLocationNameRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
locationName
Http,Websocket
post
url
address:/api/transaction/send/locationName
interface SendTrImmigrateAssetParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrImmigrateAssetRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete tokens migration event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ImmigrateAssetAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSetLnsManager
tslm
Http,Websocket,command line
post
url
address:/api/transaction/trSetLnsManager
interface TrSetLnsManager extends TransactionCommonParams {
/**Bit name, 2-1024 characters, the maximum length of each level domain name is 128 characters, the first level domain name can only be composed of lowercase letters, the beginning and end of the second level and above can only be composed of lowercase letters or numbers, and the middle can be Contains an underscore, the root domain name must be the chain name of this chain*/
name: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrSetLnsManagerRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**complete set LNS administrator event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SetLnsManagerAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSetLnsManagerWithSign
Http,Websocket
post
url
address:/api/transaction/trSetLnsManagerWithSign
interface PackageTrSetLnsManagerParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrSetLnsManagerRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
setLnsManager
Http,Websocket
post
url
address:/api/transaction/send/setLnsManager
interface SendTrSetLnsManagerParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrSetLnsManagerRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete set LNS administrator event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SetLnsManagerAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSetLnsRecordValue
tslns
Http,Websocket,command line
post
url
address:/api/transaction/trSetLnsRecordValue
interface TrSetLnsRecordValue extends TransactionCommonParams {
/**Bit name, 2-1024 characters, the maximum length of each level domain name is 128 characters, the first level domain name can only be composed of lowercase letters, the beginning and end of the second level and above can only be composed of lowercase letters or numbers, and the middle can be Contains an underscore, the root domain name must be the chain name of this chain*/
name: string;
/**Operation type, can only be 0 or 1 or 2, 0 means add, 1 means delete, 2 means update */
operationType: BFMeta.RECORD_OPERATION_TYPE;
/**Added analytical value, the analytical value type can only be A or AAAA or LNG_LAT or BLOCK_CHAIN_ACCOUNT_ADDRESS, A means ipV4, AAAA means ipV6, LNG_LAT means latitude and longitude, BLOCK_CHAIN_ACCOUNT_ADDRESS means the address of the chain account, the underscore is the analytic value type, underscore The following is the analytical value, optional, required when the operation type is 0 or 2*/
addRecord?: LocationNameRecordJSON;
/**Deleted analytical value, the analytical value type can only be A or AAAA or LNG_LAT or BLOCK_CHAIN_ACCOUNT_ADDRESS, A means ipV4, AAAA means ipV6, LNG_LAT means latitude and longitude, BLOCK_CHAIN_ACCOUNT_ADDRESS means the address of the chain account, the underscore is the analytic value type, underscore The following is the analytical value, optional, required when the operation type is 1 or 2*/
deleteRecord?: LocationNameRecordJSON;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrSetLnsRecordValueRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Completely set LNS parsing value event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SetLnsRecordValueAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trSetLnsRecordValueWithSign
Http,Websocket
post
url
address:/api/transaction/trSetLnsRecordValueWithSign
interface PackageTrSetLnsRecordValueParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrSetLnsRecordValueRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
setLnsRecordValue
Http,Websocket
post
url
address:/api/transaction/send/setLnsRecordValue
interface SendTrSetLnsRecordValueParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrSetLnsRecordValueRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Completely set bit name parsing value event */
result: BFMetaCore.TransactionJSON<BFMetaCore.SetLnsRecordValueAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntityFactory
tief
Http,Websocket,command line
post
url
address:/api/transaction/trIssueEntityFactory
interface TrIssueEntityFactory extends TransactionCommonParams {
/**Non-homogeneous asset template */
factoryId: string;
/**The number of non-homogeneous assets allowed to be issued */
entityPrealnum: string;
/**The amount of main equity frozen when non-homogeneous assets are issued, which will be unfroze when being destroyed*/
entityFrozenAssetPrealnum: string;
/**The amount of main equity used to purchase the template */
purchaseAssetPrealnum: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntityFactoryWithSign
Http,Websocket
post
url
address:/api/transaction/trIssueEntityFactoryWithSign
interface PackageTrIssueEntityFactoryParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
issueEntityFactory
Http,Websocket
post
url
address:/api/transaction/send/issueEntityFactory
interface SendTrIssueEntityFactoryParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntityFactoryV1
tief1
Http,Websocket,command line
post
url
address:/api/transaction/trIssueEntityFactoryV1
interface TrIssueEntityFactory extends TransactionCommonParams {
/**Non-homogeneous asset template */
factoryId: string;
/**The number of non-homogeneous assets allowed to be issued */
entityPrealnum: string;
/**The amount of main equity frozen when non-homogeneous assets are issued, which will be unfroze when being destroyed */
entityFrozenAssetPrealnum: string;
/**The amount of main equity used to purchase the template */
purchaseAssetPrealnum: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntityFactoryWithSignV1
Http,Websocket
post
url
address:/api/transaction/trIssueEntityFactoryWithSignV1
issueEntityFactoryV1
Http,Websocket
post
url
address:/api/transaction/send/issueEntityFactoryV1
interface SendTrIssueEntityFactoryParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntity
tie
Http,Websocket,command line
post
url
address:/api/transaction/trIssueEntity
interface TrIssueEntityFactory extends TransactionCommonParams {
/**非同质权益模板,3-15 个字符,小写字母或数字组成 */
factoryId: string;
/**不包含非同质权益模板的非同质权益,3-30 个字符,小写字母或数字组成 */
entityId: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
type TrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trIssueEntityWithSign
Http,Websocket
post
url
address:/api/transaction/trIssueEntityWithSign
interface PackageTrIssueEntityParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrIssueEntityRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
issueEntity
Http,Websocket
post
url
address:/api/transaction/send/issueEntity
interface SendTrIssueEntityFactoryParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrIssueEntityFactoryRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete issue Asset / Token template event */
result: BFMetaCore.TransactionJSON<BFMetaCore.IssueEntityFactoryAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trDestoryEntity
tde
Http,Websocket,command line
post
url
address:/api/transaction/trDestoryEntity
interface TrDestoryEntity extends TransactionCommonParams{
/**DP/NFT to be destroyed */
entityId: string;
}
trDestoryEntityWithSign
Http,Websocket
post
url
address:/api/transaction/trDestoryEntityWithSign
interface PackageTrDestoryEntityParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
destoryEntity
Http,Websocket
post
url
address:/api/transaction/send/destoryEntity
interface SendTrDestoryEntityParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trToExchangeAny
tteay
Http,Websocket,command line
post
url
address:/api/transaction/trToExchangeAny
interface TrToExchangeAny extends TransactionCommonParams{
/**Asset/stake source chain network identifier for exchange, composed of uppercase letters or numbers, 5 characters, the last digit is a check digit */
toExchangeSource: string;
/**The asset/equity source chain network identifier to be exchanged, composed of uppercase letters or numbers, 5 characters, the last bit is a check digit */
beExchangeSource: string;
/**Asset/equity source chain name for exchange, composed of lowercase letters, 5-10 digits */
toExchangeChainName: string;
/**The name of the source chain of the asset/equity to be exchanged, composed of lowercase letters, 5-10 digits */
beExchangeChainName: string;
/**The type of asset used for exchange, 1 dappid, 2 digits 3 entityId 4 equity 5 */
toExchangeParentAssetType: number;
/**The type of asset being exchanged, 1 dappid, 2 digits 3 entityId 4 equity 5 */
beExchangeParentAssetType: number;
/**The stake name used for exchange, which may be entityId, dappid, bit name or stake name */
toExchangeAssetType: string;
/**The asset/equity name to be exchanged, which may be entityId, dappid, bit name or equity name */
beExchangeAssetType: string;
/**The number of rights and interests used for exchange or exchange, composed of 0-9 and does not contain decimal points */
toExchangeAssetPrealnum: string;
/**The amount of equity to be exchanged or exchanged, consisting of 0-9 and not including decimal points */
beExchangeAssetPrealnum?: string;
/**asset weight for exchange */
toExchangeAssetWeight?: string;
/**Weight of Assets Swapped */
beExchangeAssetWeight?: string;
/**Issue the signature of the entityId event, a 128-byte hexadecimal string */
transactionSignature?: string;
/**Encryption key group, if the key is filled in, the event of accepting asset exchange must carry a signature pair generated by a certain key*/
ciphertexts?: string[];
}
type TrToExchangeAnyRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Arbitrary Asset Swap Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeAnyAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trToExchangeAnyWithSign
Http,Websocket
post
url
address:/api/transaction/trToExchangeAnyWithSign
interface PackageTrToExchangeAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrToExchangeAnyRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
toExchangeAny
Http,Websocket
post
url
address:/api/transaction/send/toExchangeAny
interface SendTrToExchangeAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrToExchangeAnyRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Arbitrary Asset Swap Event */
result: BFMetaCore.TransactionJSON<BFMetaCore.ToExchangeAnyAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trBeExchangeAny
tbeay
Http,Websocket,command line
post
url
address:/api/transaction/trBeExchangeAny
interface TrBeExchangeAny extends TransactionCommonParams{
/**Issue the signature of the entityId event, a 128-byte hexadecimal string */
issueEntityTransactionSignature?: string;
/**The signature of the to event, a 128-byte hexadecimal string */
transactionSignature: string;
/**The number of rights and interests used for exchange or exchange, composed of 0-9 and does not contain decimal points */
toExchangeAssetPrealnum: string;
/**The amount of equity to be exchanged or exchanged, consisting of 0-9 and not including decimal points */
beExchangeAssetPrealnum?: string;
/**Encryption key, if the asset exchange event fills in the encryption key, it must carry the specified key of an asset exchange event to generate a key signature pair */
ciphertext?: string;
/**The name of the asset being exchanged */
assetType?: string;
}
type TrBeExchangeAnyRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Completely accept any asset exchange event*/
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeAnyAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trBeExchangeAnyWithSign
Http,Websocket
post
url
address:/api/transaction/trBeExchangeAnyWithSign
interface PackageTrBeExchangeAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
type PackageTrBeExchangeAnyRespParam = {
/**Success */
success: true;
/**Package result */
result: {
/**The buffer generated by the event body, base64 string */
buffer: string;
};
} | {
/**Fail */
success: false;
/**Error message */
message: string;
}
beExchangeAny
Http,Websocket
post
url
address:/api/transaction/send/beExchangeAny
interface SendTrBeExchangeAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
type SendTrBeExchangeAnyRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Completely accept any asset exchange event */
result: BFMetaCore.TransactionJSON<BFMetaCore.BeExchangeAnyAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}
trTransferAny
ttay
Http,Websocket,command line
post
url
address:/api/transaction/trTransferAny
interface TrTransferAny extends TransactionCommonParams{
/**Issue the signature of the entityId event, a 128-byte hexadecimal string */
transactionSignature?: string;
/**The amount of equity transferred, consisting of 0-9 without decimal points, must be greater than 0 */
amount?: string;
/**The type of equity transferred, composed of uppercase letters, 3-8 characters */
assetType?: string;
/**The type of asset to be transferred, 1 dappid, 2 digits 3 entityId 4 equity */
parentAssetType?: import("./").PARENT_ASSET_TYPE;
/**The name of the chain to which the transferred rights and interests belong, composed of lowercase letters, 5-10 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 a check digit */
sourceChainMagic?: string;
/**The receiving account address of the event, base58 encoded hexadecimal string */
recipientId: string;
}
trTransferAnyWithSign
Http,Websocket
post
url
address:/api/transaction/trTransferAnyWithSign
interface PackageTrTransferAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
transferAny
Http,Websocket
post
url
address:/api/transaction/send/transferAny
interface SendTrTransferAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trGiftAny
tgay
Http,Websocket,command line
post
url
address:/api/transaction/trGiftAny
interface TrGiftAny extends TransactionCommonParams{
/**The signature of the event that issued entityId, a 128-byte hexadecimal string */
transactionSignature?: string;
/**The chain network identifier of the gifted rights and interests, composed of uppercase letters or numbers, 5 characters, the last one is a check digit */
sourceChainMagic?: string;
/**The name of the chain to which the gifted rights and interests belong, composed of lowercase letters, 5-10 characters*/
sourceChainName?: string;
/**The type of asset to be transferred, 1 dappid, 2 digits 3 entityId 4 equity */
parentAssetType?: import("./").PARENT_ASSET_TYPE;
/**The gift type, composed of uppercase letters, 3-8 characters */
assetType?: string;
/**The number of rights and interests given away, consisting of 0-9 and excluding decimal points, must be greater than 0 */
amount?: string;
/**The number of times that can be received, consisting of 0-9 and not including the decimal point, must be greater than 0 */
totalGrabableTimes?: number;
/**The block interval from the initiation of the equity donation event to the beginning of being signed, consisting of 0-9 and excluding decimal points, optional, must be less than or equal to the validity period of the event */
numberOfBeginUnfrozenBlocks?: number;
/**Receiving rules, can only be 0, 1 or 2, 0 means average distribution, 1 means random distribution according to the address of any account, 2 means random distribution according to the account address in the recipient list */
giftDistributionRule?: number;
/**Encryption key group, if the key is filled in, the event of receiving equity exchange must carry a signature pair generated by a certain key */
ciphertexts?: string[];
/**Tax information */
taxInformation?: {
/**Tax collector */
taxCollector: string;
/**Payment amount */
taxAssetPrealnum: string;
};
}
trGiftAnyWithSign
Http,Websocket
post
url
address:/api/transaction/trGiftAnyWithSign
interface PackageTrGiftAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
giftAny
Http,Websocket
post
url
address:/api/transaction/send/giftAny
interface SendTrGiftAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trGrabAny
tgray
Http,Websocket,command line
post
url
address:/api/transaction/trGrabAny
interface TrGrabAny extends TransactionCommonParams{
/**The number of gift benefits received, consisting of 0-9 and excluding decimal points */
amount?: string;
/**The signature of the block where the gift event is located, a 128-byte hexadecimal string */
blockSignature: string;
/**The signature of the gift event, a 128-byte hexadecimal string */
transactionSignature: string;
/**Encryption key, if the encryption key is filled in the equity donation event, it must carry a specified key of an equity exchange event to generate a key signature pair */
ciphertext?: string;
}
trGrabAnyWithSign
Http,Websocket
post
url
address:/api/transaction/trGrabAnyWithSign
interface PackageTrGrabAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
grabAny
Http,Websocket
post
url
address:/api/transaction/send/grabAny
interface SendTrGrabAnyParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trIssueEntityMultiV1
tiem1
Http,Websocket,command line
post
url
address:/api/transaction/trIssueEntityMultiV1
interface TrIssueEntityMultiV1 extends TransactionCommonParams{
/**DP/NFT template, 3-15 characters, composed of lowercase letters or numbers */
factoryId: string;
entityStructList: {
/**DP/NFT that does not contain NFT templates, 3-30 characters, composed of lowercase letters or numbers */
entityId: string;
/**Royalties that need to be paid for the circulation of DP/NFT */
taxAssetPrealnum?: string;
}[];
}
trIssueEntityMultiWithSignV1
Http,Websocket
post
url
address:/api/transaction/trIssueEntityMultiWithSignV1
interface PackageTrIssueEntityMultiV1Param{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
issueEntityMultiV1
Http,Websocket
post
url
address:/api/transaction/send/issueEntityMultiV1
interface SendTrIssueEntityMultiV1Param{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trToExchangeAnyMulti
tteaym
Http,Websocket,command line
post
url
address:/api/transaction/trToExchangeAnyMulti
interface TrToExchangeAnyMulti extends TransactionCommonParams{
/**Assets for exchange */
toExchangeAssets: {
/**Asset source chain network identifier for exchange, composed of uppercase letters or numbers, 5 characters, the last bit is a check digit */
toExchangeSource?: string;
/**Asset source chain name for exchange, composed of lowercase letters, 5-10 digits */
toExchangeChainName?: string;
/**Asset name for exchange */
toExchangeAssetType: string;
/**The number of assets used for exchange, consisting of 0-9 and not including decimal points */
toExchangeAssetPrealnum: string;
/**Exchange ratio, required for Fungible Token exchange */
assetExchangeWeightRatio?: {
/**Token Weight for Swap */
toExchangeAssetWeight: string;
/**Weight of Tokens Swapped */
beExchangeAssetWeight: string;
};
/**Tax information */
taxInformation?: {
/**Tax collector */
taxCollector: string;
/**Payment amount */
taxAssetPrealnum: string;
};
}[];
/**Assets being exchanged */
beExchangeAsset: {
/**The asset source chain network identifier to be exchanged, composed of uppercase letters or numbers, 5 characters, the last one is a check digit */
beExchangeSource?: string;
/**The asset source chain name to be exchanged, composed of lowercase letters, 5-10 digits*/
beExchangeChainName?: string;
/**The name of the asset being exchanged */
beExchangeAssetType: string;
/**The number of assets to be exchanged, consisting of 0-9 without a decimal point, required for the exchange of non-homogeneous assets */
beExchangeAssetPrealnum?: string;
/**Tax information */
taxInformation?: {
/**Tax collector */
taxCollector: string;
/**Payment amount */
taxAssetPrealnum: string;
};
};
/**Encryption key group, if the key is filled in, the event of receiving equity exchange must carry a signature pair generated by a certain key */
ciphertexts?: string[];
}
trToExchangeAnyMultiWithSign
Http,Websocket
post
url
address:/api/transaction/trToExchangeAnyMultiWithSign
interface PackageTrToExchangeAnyMultiParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
toExchangeAnyMulti
Http,Websocket
post
url
address:/api/transaction/send/toExchangeAnyMulti
interface SendTrToExchangeAnyMultiParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trBeExchangeAnyMulti
tbeaym
Http,Websocket,command line
post
url
address:/api/transaction/trBeExchangeAnyMulti
interface TrBeExchangeAnyMulti extends TransactionCommonParams{
/**The signature of a batch of arbitrary asset exchange events, a 128-byte hexadecimal string */
transactionSignature: string;
/**Assets for exchange*/
toExchangeAssets: {
/**Asset source chain network identifier for exchange, composed of uppercase letters or numbers, 5 characters, the last bit is a check digit */
toExchangeSource?: string;
/**Asset source chain name for exchange, composed of lowercase letters, 5-10 digits */
toExchangeChainName?: string;
/**Asset name for exchange */
toExchangeAssetType: string;
/**The number of assets used for exchange, consisting of 0-9 and not including decimal points */
toExchangeAssetPrealnum: string;
/**Exchange ratio, required for Fungible Token exchange */
assetExchangeWeightRatio?: {
/**Token Weight for Swap */
toExchangeAssetWeight: string;
/**Weight of Tokens Swapped */
beExchangeAssetWeight: string;
};
/**Tax information */
taxInformation?: {
/**Tax collector */
taxCollector: string;
/**Payment amount */
taxAssetPrealnum: string;
};
}[];
/**Assets being exchanged */
beExchangeAsset: {
/**The asset source chain network identifier to be exchanged, composed of uppercase letters or numbers, 5 characters, the last one is a check digit */
beExchangeSource?: string;
/**The asset source chain name to be exchanged, composed of lowercase letters, 5-10 digits */
beExchangeChainName?: string;
/**The name of the asset being exchanged */
beExchangeAssetType: string;
/**The number of assets to be exchanged, consisting of 0-9 without a decimal point, required for the exchange of non-homogeneous assets */
beExchangeAssetPrealnum?: string;
/**Tax information */
taxInformation?: {
/**Tax collector */
taxCollector: string;
/**Payment amount */
taxAssetPrealnum: string;
};
};
/**Encryption key, if the encryption key is filled in the equity donation event, it must carry a specified key of an equity exchange event to generate a key signature pair */
ciphertext?: string;
}
trBeExchangeAnyMultiWithSign
Http,Websocket
post
url
address:/api/transaction/trBeExchangeAnyMultiWithSign
interface PackageTrBeExchangeAnyMultiParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
}
beExchangeAnyMulti
Http,Websocket
post
url
address:/api/transaction/send/beExchangeAnyMulti
interface SendTrBeExchangeAnyMultiParam{
/**The buffer generated by the event body, base64 string */
buffer: string;
/**Signature of the event */
signature: string;
/**Security signature of the event */
signSignature?: string;
}
trRegisterChain
trc
Http,Websocket,command line
post
url
address:/api/transaction/trRegisterChain
type TrRegisterChain = TrCommonParam
type TrRegisterChainRespParam = {
/**Success */
success: true;
/**Minimum Fee */
minFee: number;
/**Complete Registration Chain Events */
result: BFMetaCore.TransactionJSON<BFMetaCore.RegisterChainAssetJSON>;
} | {
/**Fail */
success: false;
/**Error message */
message: string;
/**Minimum Fee */
minFee: number;
/**Error code */
code?: string;
}