Difference between two gas in result object

What is the difference between gasUsed :9315 and gas: 1579000 inside tx?
result:
{ callerId: ‘ak_FHZrEbRmanKUe9ECPXVNTLLpRP2SeQCLCT6Vnvs9JuVu78J7V’,
callerNonce: 80,
contractId: ‘ct_VFiE9xDEawQVw32srDaoGcNV9t1zndoi12YshoawFmWxC3D99’,
gasPrice: 1000000000,
gasUsed: 9315,
height: 12826,
log: [ [Object] ],
returnType: ‘ok’,
returnValue: ‘cb_KWR1ZSA+IGZhcmUC052c’ },
txData:
{ blockHash: ‘mh_23kiRiyREPg1B96faNYnTu3VjQVkdf1XbUnN48zaWJvXcc2jHb’,
blockHeight: 12826,
hash: ‘th_xyA3cPMwjvLdHsGV4bLhD4mQ8JmoU26pvCfxQZuM6i29PXcD1’,
signatures:
[ ‘sg_5dQsVSzPtJ2hBBMEbofq9RoeaEbSSK8VZZDPgQEWQcpJz82kCP5rghujJJY9YW52wjzsSuPR24yvXLm2zzZj1RBS774Lz’ ],
tx:
{ abiVersion: 3,
amount: 0,
callData:
‘cb_KxH9OO5xawINQkxSFXNtYWxsbyRvgibQnwEBAL4dEsD+Ptek/4Ec05nnnV15AF37S+lw7VlmeLjj0QwnUC2rxjWRMTxs9N4HVYi28UXPg9xGE08ISpwWZ5tnUwNLQ+zk’,
callerId: ‘ak_FHZrEbRmanKUe9ECPXVNTLLpRP2SeQCLCT6Vnvs9JuVu78J7V’,
contractId: ‘ct_VFiE9xDEawQVw32srDaoGcNV9t1zndoi12YshoawFmWxC3D99’,
fee: 183720000000000,
gas: 1579000,
gasPrice: 1000000000,
nonce: 80,
type: ‘ContractCallTx’,
version: 1 },
rawTx:
‘tx_+QECCwH4QrhAI19362H920UEVF4/h+4eENAv1vNsIOcTK7cJkIf3/IEu8/YfYCL5bvOoAQQ4cb0BR0iUzTd7W/gWnMnKyV9XBri6+LgrAaEBIG/wf5nqUXt6Ao2oiE+zmaLj+FeS/kGJZpkboJsZLJFQoQVAJ0Dg3Q+DTer7saGup0B9XXdtzav3r2CVqgNaA+P/cgOGpxelVpAAAACDGBf4hDuaygC4XCsR/TjucWsCDUJMUhVzbWFsbG8kb4Im0J8BAQC+HRLA/j7XpP+BHNOZ551deQBd+0vpcO1ZZni449EMJ1Atq8Y1kTE8bPTeB1WItvFFz4PcRhNPCEqcFmebZ1MDhgW+tA==’ },
decode: [Function: decode],
decodedResult: ‘due > fare’ }

the one is the provided gas limit, the other one is the gas that has actually been used in processing

2 Likes