import request from '@/api/config'

export const callJsonRpc = (method: string, params: any = []) => {
    const requestData = {
        jsonrpc: '2.0',
        method,
        params,
        id: 1,
    }
    return request({
        method: 'POST',
        data: requestData,
    })
}
