aa.setSettlement(userOperation, opSender)
(Static Method)
Feature
Returns a user operation with settlement added.
Parameters
object
| instance
userOperation,
string
opSender, // account address of operation sender
Return Value
object
HintedObject of UserOperation
const opSender = "0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca";
const userOp = mitum.aa.setSettlement(userOperation, opSender);
console.log(userOp);
// output
{
_hint: 'mitum-currency-transfer-operation-v0.0.1',
fact: {
_hint: 'mitum-currency-transfer-operation-fact-v0.0.1',
hash: '6ugMXG2hjtypFhVw1BQGTfVRkoDjuPSH8pRzzbj9heBf',
token: 'MjAyNC0xMi0xMCAwMjoxNDozOC4yNDQgKzAwMDAgVVRD',
sender: '0x0F96D08AF80b9fC86378B6478Fd77780625636Edfca',
items: [ [Object] ]
},
extension: {
authentication: {
_hint: 'mitum-extension-base-authentication-v0.0.1',
contract: '0xdC521b33609647F949427A2330c136EfC3171535fca',
authentication_id: 'did:dxd:0x5279AebbF6e284594521d44612157147dF5ff248fca#auth_key',
proof_data: ''
},
settlement: {
_hint: 'mitum-extension-base-settlement-v0.0.1',
op_sender: '0x4526f3D0EdC63D9EaeCD94D56551e0f061CFCa47fca'
},
},
hash: '',
signs: []
}
Last updated