@Shinto2000_twitter yeah already know that. As said before,
let meta_property = { "name": "Signup Bonus", "type": "company_to_user", "details": "Credit to get started." }; executeParams = { user_id: companyUserId, to: contractRuleAddress, raw_calldata: raw_calldata, // meta_property: meta_property };
executes correctly / but crashes when I uncomment meta_property line
this is exactly like the API specs, but please try to run your own examples from Node.js and you'll see it will fail
Hi @pyramus,
I have updated the sample code for node.js. They are working with meta_property
included.
https://dev.ost.com/platform/docs/api/?javascript#execute-a-transaction
meta_property
is, it should have value for all three attributes. None of the attributes can be empty. meta_property
as a parameter is optional.
details
is not allowed and will break the request. Might be handy to mention, because currently only a max length is specified as limitation to this specific child attribute in the API documentation.Here's my properties
meta_property = {
"name": "download" , //like, download
"type": "company_to_user", // user_to_user, company_to_user, user_to_company
"details" : "you are awesome" // memo field to add additional info about the transaction
}
Hi @Shinto2000_twitter,
You can use this api
https://dev.ost.com/platform/docs/api/?javascript#list-all-users
I'm using the https://dev.ost.com/platform/docs/api/#get-a-transaction-details, and getting the output: "node gettrans.js
{"success":true,"data":{"result_type":"transaction","transaction":{"id":"2ae140e0-cd62-4592-89a5-f1605004ba75","transaction_hash":"0x380c3b037077e1da5e60c82bc08ad45205d1f376ab56393e93b5b42a34135aa7","from":"0x2532b51c036b271cfd59a7f6c352beaa56408c2d","to":"0x1c68fa1f47e290e94c6117be8429da7b8803937e","nonce":655,"value":"0","gas_price":"1000000000","gas_used":109554,"transaction_fee":"109554000000000","block_confirmation":25995,"status":"SUCCESS","updated_timestamp":1564073348,"block_timestamp":1564073346,"block_number":3487084,"rule_name":"Direct Transfer","meta_property":{},"transfers":[{"from":"0x1c68fa1f47e290e94c6117be8429da7b8803937e","from_user_id":"9931e53a-83e6-4f9c-92c2-1e4319eab349","to":"0x18b1c66cb41c952c5982465588cf680b28432232","to_user_id":"a527c4d6-f572-458c-bf31-eba264cb5927","amount":"10000000000000000000000","kind":"transfer"}]}}}" .
How do i see values for the "meta_property": {}??
When i generated the transaction, i specifically added in meta property data:
meta_property = {
"name": "download" , //like, download
"type": "company_to_user", // user_to_user, company_to_user, user_to_company
"details" : "you are awesome" // memo field to add additional info about the transaction
}
Working on getting the OST Wallet React Native Sample App working with my test coin. It's working well with POP, but I'm not sure where to find the info I need for the demo-server-config.json file.
According to the github readme: "To use your own sandbox economy, scan the QR code of your sandbox economy and update the demo-server-config.json file. The QR contains json configuration."
Where exactly do I find the QR code?
Hello @ofcoursegary369_twitter Can you be more specific please?
Please join our public slack space at
https://email.ost.com/t?entity_type=2&entity_id=25622&email_pref_id=44821608&sent_id=1574424295&service_id=22436&redirect_url=https%3A%2F%2Fjoin.slack.com%2Ft%2Ftryost%2Fshared_invite%2FenQtNjk5MTI4NDY5MjIyLTFlZWYyODNhMjA0YmNmM2ZmMTJkZDM4MDU0NGJlNDc3ZWEwMjY5ZWNiNjNiZDcyOTIyZTljNGFmN2E2NzY2MDk