addSafeDelegate
Adds a new delegate for a given Safe address.
Usage
_12import { AddSafeDelegateProps } from '@safe-global/api-kit'_12import { apiKit } from './setup.ts'_12_12const config: AddSafeDelegateProps = {_12 safeAddress: '0x...', // Optional_12 delegateAddress: '0x...',_12 delegatorAddress: '0x...',_12 label: 'abc',_12 signer_12}_12_12const config = await apiKit.addSafeDelegate(config)
Returns
Promise<SafeDelegateResponse>
The configuration of the new Safe delegate.
Parameters
config.safeAddress
(Optional)
- Type:
string
The Safe address.
_10const config = await apiKit.addSafeDelegate({_10 safeAddress: '0x...',_10 delegateAddress: '0x...',_10 delegatorAddress: '0x...',_10 label: 'abc',_10 signer_10})
config.delegateAddress
- Type:
string
The delegate address that will be added.
_10const config = await apiKit.addSafeDelegate({_10 delegateAddress: '0x...',_10 delegatorAddress: '0x...',_10 label: 'abc',_10 signer_10})
config.delegatorAddress
- Type:
string
The delegator address.
_10const config = await apiKit.addSafeDelegate({_10 delegateAddress: '0x...',_10 delegatorAddress: '0x...',_10 label: 'abc',_10 signer_10})
config.label
- Type:
string
The custom label.
_10const config = await apiKit.addSafeDelegate({_10 delegateAddress: '0x...',_10 delegatorAddress: '0x...',_10 label: 'abc',_10 signer_10})
config.signer
- Type:
Signer
The signer.
_10const config = await apiKit.addSafeDelegate({_10 delegateAddress: '0x...',_10 delegatorAddress: '0x...',_10 label: 'abc',_10 signer_10})