Search
Search

Transaction: 4cWURiU...rbUG

Delegator
Status
Failed
Transaction Fee
0.00029 
Deposit Value
0 
Gas Used
3 Tgas
Attached Gas
3 Tgas
Created
February 04, 2024 at 8:23:04am
Hash
4cWURiU786nLwogPzGjTRog7DGz3uzucYHUesi9ZrbUG

Actions

Actions delegated for arvilco.near:
Called method: 'set' in contract: social.near
Arguments:
{ "data": { "arvilco.near": { "widget": { "2BestSwapBOScomponent-fork": { "": "// Suponiendo que \"keys\" se ajusta para incluir solo el identificador de \"ETHUSD\"\nlet keys = [\n \"identificador_para_ETHUSD\", // Asegúrate de reemplazar esto con el identificador real de ETHUSD\n];\n\nlet price_data = Near.view(\"priceoracle.near\", \"get_price_data\", {});\nlet assets = Near.view(\"oracle-prices.near\", \"get_config\", { keys });\n\nlet price_data_prepared = [];\nprice_data.prices.map(\n (data) => (price_data_prepared[data.asset_id] = data.price)\n);\n\nlet prices = assets\n .map((asset) => {\n let asset_account_id = asset[0];\n let asset_name = asset[1].token_name;\n let asset_decimals = asset[1].decimals;\n\n // Asegurarse de procesar solo el activo que corresponde a ETHUSD\n if (asset_name === \"ETHUSD\") {\n let asset_price = price_data_prepared[asset_account_id];\n let price = new Big(asset_price.multiplier).div(\n new Big(10).pow(asset_price.decimals - asset_decimals)\n );\n\n return (\n <table style={{ tableLayout: \"fixed\" }}>\n <tr></tr>\n <tr>\n <td style={{ width: \"130px\" }}>\n <div style={{ color: \"#6E757C\" }}>{asset_name}</div>\n </td>\n <td style={{ width: \"130px\" }}>\n <div style={{ color: \"#6E757C\", textAlign: \"right\" }}>\n ${price.toFixed(2).replace(/\\d(?=(\\d{3})+\\.)/g, \"$&,\")}\n </div>\n </td>\n </tr>\n </table>\n );\n }\n })\n .filter(Boolean); // Filtrar elementos no definidos o nulos\n\nreturn (\n <div\n class=\"container\"\n style={{\n background: \"#F8F9FA\",\n borderRadius: \"12px\",\n width: \"260px\",\n margin: \"auto\",\n padding: \"16px\",\n }}\n >\n <h5 style={{ color: \"black\", textAlign: \"center\" }}>Coin Price Data</h5>\n <div>\n <table style={{ color: \"#6E757C\", tableLayout: \"fixed\" }}>\n <tr>\n <th style={{ width: \"130px\" }}>Asset</th>\n <th style={{ width: \"130px\", textAlign: \"right\" }}>Price</th>\n </tr>\n </table>\n {prices}\n </div>\n </div>\n);\n" } } } } }

Transaction Execution Plan

Convert Transaction To Receipt
Gas Burned:
2 Tgas
Tokens Burned:
0.00026 
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
308 Ggas
Tokens Burned:
0.00003 
Actions delegated for arvilco.near:
Called method: 'set' in contract: social.near
Arguments:
{ "data": { "arvilco.near": { "widget": { "2BestSwapBOScomponent-fork": { "": "// Suponiendo que \"keys\" se ajusta para incluir solo el identificador de \"ETHUSD\"\nlet keys = [\n \"identificador_para_ETHUSD\", // Asegúrate de reemplazar esto con el identificador real de ETHUSD\n];\n\nlet price_data = Near.view(\"priceoracle.near\", \"get_price_data\", {});\nlet assets = Near.view(\"oracle-prices.near\", \"get_config\", { keys });\n\nlet price_data_prepared = [];\nprice_data.prices.map(\n (data) => (price_data_prepared[data.asset_id] = data.price)\n);\n\nlet prices = assets\n .map((asset) => {\n let asset_account_id = asset[0];\n let asset_name = asset[1].token_name;\n let asset_decimals = asset[1].decimals;\n\n // Asegurarse de procesar solo el activo que corresponde a ETHUSD\n if (asset_name === \"ETHUSD\") {\n let asset_price = price_data_prepared[asset_account_id];\n let price = new Big(asset_price.multiplier).div(\n new Big(10).pow(asset_price.decimals - asset_decimals)\n );\n\n return (\n <table style={{ tableLayout: \"fixed\" }}>\n <tr></tr>\n <tr>\n <td style={{ width: \"130px\" }}>\n <div style={{ color: \"#6E757C\" }}>{asset_name}</div>\n </td>\n <td style={{ width: \"130px\" }}>\n <div style={{ color: \"#6E757C\", textAlign: \"right\" }}>\n ${price.toFixed(2).replace(/\\d(?=(\\d{3})+\\.)/g, \"$&,\")}\n </div>\n </td>\n </tr>\n </table>\n );\n }\n })\n .filter(Boolean); // Filtrar elementos no definidos o nulos\n\nreturn (\n <div\n class=\"container\"\n style={{\n background: \"#F8F9FA\",\n borderRadius: \"12px\",\n width: \"260px\",\n margin: \"auto\",\n padding: \"16px\",\n }}\n >\n <h5 style={{ color: \"black\", textAlign: \"center\" }}>Coin Price Data</h5>\n <div>\n <table style={{ color: \"#6E757C\", tableLayout: \"fixed\" }}>\n <tr>\n <th style={{ width: \"130px\" }}>Asset</th>\n <th style={{ width: \"130px\", textAlign: \"right\" }}>Price</th>\n </tr>\n </table>\n {prices}\n </div>\n </div>\n);\n" } } } } }
Failure:
{
  "type": "action",
  "error": {
    "type": "delegateActionInvalidNonce",
    "akNonce": 112044338000002,
    "delegateNonce": 112044338000002
  }
}
No logs
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
223 Ggas
Tokens Burned:
0 
Transferred 0.0201  to relay…tform.near
Empty result
No logs