participateassetissue - Tron
participateassetissue. Creates a transaction to purchase a TRC10 token during its issuance period.
participateassetissue - tron [Value: 20CU]
Creates a transaction to purchase a TRC10 token during its issuance period.
Use cases
- Buy into a TRC10 token sale at its fixed TRX exchange rate
Constraints
- Only works while the token's issuance start_time/end_time window is active
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/participateassetissue \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "to_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "asset_name": "example", "amount": 1, "visible": true}'Response
200
{
"visible": false,
"txID": "1c2d37ad679f720266a0565d0170bcce2b4d096953badf5c848b85137005b5d4",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"amount": 1000000,
"asset_name": "31303035343136",
"owner_address": "41dd791d6b49e190062d650e6a23c575510d35f2f9",
"to_address": "41088a2bfcb1c7271029fd69a66859d55560895884"
},
"type_url": "type.googleapis.com/protocol.ParticipateAssetIssueContract"
},
"type": "ParticipateAssetIssueContract"
}
],
"ref_block_bytes": "2794",
"ref_block_hash": "ba3c3fb8fa06d426",
"expiration": 1777446312000,
"timestamp": 1777446253445
},
"raw_data_hex": "0a0227942208ba3c3fb8fa06d42640c0b0b9c0dd335a7d080912790a3a747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e506172746963697061746541737365744973737565436f6e7472616374123b0a1541dd791d6b49e190062d650e6a23c575510d35f2f9121541088a2bfcb1c7271029fd69a66859d555608958841a073130303534313620c0843d7085e7b5c0dd33"
}Request params
idinteger
jsonrpcstring
methodstring
object
owner_addressstring
[Required] The buyer's address
to_addressstring
[Required] The token issuer's address
asset_namestring
[Required] The TRC10 token's numeric asset ID
amountinteger
[Required] Amount of TRX to spend, in sun
Permission_idinteger
Multi-sig permission ID
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Creates a transaction to purchase a TRC10 token during its issuance period.Response params
object
visibleboolean
Indicates whether addresses in this transaction are represented in base58 format (true) or hex format (false).
txIDstring
The unique transaction hash (transaction ID), computed as the SHA256 of raw_data.
raw_dataobject
The unsigned transaction body containing the contract instruction and blockchain reference data.
object
contractarray_of_objects
The list of contract instructions to be executed by this transaction.
object
parameterobject
The typed payload describing the specific contract call being made.
object
valueobject
The decoded fields of the contract — here, a request to buy into an ongoing TRC10 fundraising.
object
amountinteger
The amount of TRX, in sun, being contributed to purchase the token during its fundraising period.
asset_namestring
The hex-encoded identifier of the TRC10 token being purchased.
owner_addressstring
The address contributing TRX to participate in the fundraising, in hex format.
to_addressstring
The address of the token's issuer, in hex format.
type_urlstring
The fully qualified protobuf type identifier describing which contract schema `value` should be decoded with.
typestring
The human-readable name of the contract type being executed (here, ParticipateAssetIssueContract).
ref_block_bytesstring
The last two bytes of the reference block number, used for transaction expiration and replay protection.
ref_block_hashstring
The last eight bytes of the reference block's hash, paired with ref_block_bytes for replay protection.
expirationinteger
Unix timestamp, in ms, after which this transaction is no longer valid and will be rejected by the network.
timestampinteger
Unix timestamp, in ms, marking when the transaction was created/signed by the client.
raw_data_hexstring
The hex-encoded serialized bytes of raw_data, used as the actual payload to sign and broadcast.